The pipeline trigger step is great, but sometimes we don’t know which pipelines we want to trigger until mid-way through a build.
Currently we solve this by using the REST API during the execution of a step to invoke a new build. The down side of this is that the triggered builds don’t show up in the Buildkite UI for the current build.
It would be awesome if there was a command in buildkite-agent
to do this. Something like:
buildkite-agent build create --pipeline my-pipeline \
--commit HEAD \
--branch master \
--message "my message" \
--env '{}' \
--meta-data '{}'
These build would be asynchronous to the current build.