Skip to content

Commit

Permalink
feat: allow us to dev-build the master branch from a different pipe…
Browse files Browse the repository at this point in the history
…line branch
  • Loading branch information
favilo committed Sep 20, 2024
1 parent 711ea3c commit 2470a65
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .buildkite/dev-docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ tmp_dir=$(mktemp --directory)
pushd "$tmp_dir"
git clone https://github.com/elastic/rally
pushd rally
git checkout "${BUILD_FROM_BRANCH}"
# checkout the version from the buildkite branch, but build it from the branch we specified
if [[ ! -z "${BUILDKITE_BRANCH}" ]]; then
git checkout "${BUILDKITE_BRANCH}"
else
git checkout "${BUILD_FROM_BRANCH}"
fi
git --no-pager show

set -x
Expand Down

0 comments on commit 2470a65

Please sign in to comment.