Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [CI-15499]: Add build tool and lang for telemetry #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

smjt-h
Copy link
Contributor

@smjt-h smjt-h commented Jan 20, 2025

Add logic for parsing language and build tool after cloning codebase.
check if env var PLUGIN_BUILD_TOOL_FILE is set then write the content to that file
Parse metrics as separate file to be parsed and sent as telemetry details in step response.

posix/clone Outdated Show resolved Hide resolved
posix/clone Outdated Show resolved Hide resolved
fi


#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we changing it to bash?

posix/clone Show resolved Hide resolved
*.kt|*.kts) found_lang="Kotlin" ;;
*) found_lang="" ;;
esac
echo "$found_lang"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

json_content=$(cat <<EOF
{
"harness_lang": "$HARNESS_LANG",
"harness_build_tool": "$HARNESS_BUILD_TOOL"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just making sure these are lists. Repo can contain more than one language and build tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants