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 19, 2024
1 parent cf7b649 commit 56db13b
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 56db13b

Please sign in to comment.