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

Support default convention for dynamic pipeline generation #3118

Open
davidarcher opened this issue Dec 6, 2024 · 0 comments
Open

Support default convention for dynamic pipeline generation #3118

davidarcher opened this issue Dec 6, 2024 · 0 comments

Comments

@davidarcher
Copy link

Is your feature request related to a problem? Please describe.
I want to generate a pipeline dynamically but don't want to change the default pipeline defined in the Buildkite UI and don't want extra build steps for every build just to generate/upload dynamic pipelines.

Describe the solution you'd like
We show an example in the docs of:

$ ./script/dynamic_step_generator | buildkite-agent pipeline upload

My request is to have a conventional default for that behavior rather than requiring a custom pipeline to invoke it.

Add a default "dynamic pipeline generator script" to the list of pipeline files that the buildkite-agent automatically detects.

Specific name doesn't matter but buildkite.sh / .buildkite/pipeline.sh seems reasonable.

When buildkite-agent pipeline upload is run and a buildkite.sh or .buildkite/pipeline.sh file exists and is executable, execute it and take the output as a pipeline.

Describe alternatives you've considered

  • Living with having one CI job step to "upload pipeline" and then another immediately after to "generate and upload dynamic pipeline"
  • Editing each project in the Buildkite UI where we use dynamic pipelines to have a different default pipeline. This doesn't feel great for us as we really want the pipeline logic to fully live in the git repo.

Additional context
N/A

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

No branches or pull requests

1 participant