I inherited a large project that uses BuildKite and I’m trying to pick my way through everything. One issue I’m encountering is that to make a release, multiple pieces have to be built first, and there have been a number of mysterious build failures that get resolved by just rerunning the build.
However, all the release behaviour - signing, pushing to the server, etc. is triggered by the presence of BUILDKITE_TAG, and I just noticed this does not get included when I hit Rebuild. This is making getting to a release build extremely difficult, as any failure forces me back to the start with a new tag, and the chances of a piece failing in this long process seem fairly high.
So I’m mostly just checking in. My assumption before poking at things is that a Rebuild is going to rerun the build with the exact same environment that created it, but that’s not what I’m observing. I saw this item: BUILDKITE_TRIGGER_FROM_* variables not set when Rebuild which I think is describing the same basic behaviour so it seems to be just the way BuildKite works, but I just wanted to make absolutely certain there’s no way for me to rerun a build with the same environment, because it’s making things very difficult.