Skip to content

Commit

Permalink
Add ci_matching_branch/ for bottle install jobs
Browse files Browse the repository at this point in the history
If the release-tools branch (RTOOLS_BRANCH) starts with
ci_matching_branch/ then try to check out a matching
branch from the osrf/homebrew-simulation tap for
bottle install jobs.

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed Sep 5, 2023
1 parent 78cfa9e commit 8121514
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions jenkins-scripts/lib/project-install-homebrew.bash
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ echo '# BEGIN SECTION: setup the osrf/simulation tap'
brew tap osrf/simulation
echo '# END SECTION'

if [[ -n "${RTOOLS_BRANCH}" ]] && \
python3 ${SCRIPT_DIR}/tools/detect_ci_matching_branch.py "${RTOOLS_BRANCH}"
then
echo "# BEGIN SECTION: trying to checkout branch ${RTOOLS_BRANCH} from osrf/simulation"
pushd $(brew --repo osrf/simulation)
git fetch origin ${RTOOLS_BRANCH} || true
git checkout ${RTOOLS_BRANCH} || true
popd
echo '# END SECTION'
fi

echo "# BEGIN SECTION: install ${BOTTLE_NAME}"
brew install --include-test ${BOTTLE_NAME}

Expand Down

0 comments on commit 8121514

Please sign in to comment.