I am working on deploying a large system from buildkite into another cluster.
I would like to trigger all my master builds Deploy steps so they just get published to the new cluster.
Is there a way to do this throught the api. i only find the rebuild but that i dont want to do i just want to run my Deploy step from a build.
I have gotten the build number and job number from the api now i just wish to do the retry, this would make it possible for me to automate the hole deployment to the new cluster.
- label: Original run only
command:
- echo "This is not a rebuild"
if: 'build.env("BUILDKITE_REBUILT_FROM_BUILD_ID") == null || build.env("BUILDKITE_REBUILT_FROM_BUILD_ID") == ""'
This way, the only job that will run during a rebuild will be the ones corresponding to steps that do not have that condition when you make a request to the Rebuild a build endpoint.