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

feat(trigger): Update configuration to pass a branch for datadog-agent execution #748

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chouetz
Copy link
Member

@chouetz chouetz commented Jan 24, 2025

What does this PR do?

"Tweak" the gitlab configuration to be able to run the downstream datadog-agent pipeline on a specific branch.

Motivation

Have a more flexible workflow

Possible Drawbacks / Trade-offs

Additional Notes

@chouetz chouetz requested a review from a team as a code owner January 24, 2025 15:49
Comment on lines +371 to +374
sed -i -e "s/CI_PIPELINE_ID/${CI_PIPELINE_ID}/g" \
-e "s/CI_COMMIT_SHORT_SHA/${CI_COMMIT_SHORT_SHA}/g" \
-e "s/ECR_TEST_ONLY/${ECR_TEST_ONLY}/g" \
-e "s/GIT_BRANCH/${GIT_BRANCH}/g" .gitlab/trigger_datadog_agent.yml
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need that? Wasn't just switching the job to manual with the addition of the GIT_BRANCH variable enough?

Copy link
Member Author

Choose a reason for hiding this comment

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

The job was already manual. But as a trigger job, you don't have access to the UI where you can set a variable. I might be wrong though, if you have a better solution I'm happy to use it

Copy link
Member

Choose a reason for hiding this comment

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

Did not know that trigger job do not let you change the value of the variable 😢

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.

2 participants