diff --git a/jenkins-scripts/lib/project-install-homebrew.bash b/jenkins-scripts/lib/project-install-homebrew.bash index b9f35eaf5..164524883 100644 --- a/jenkins-scripts/lib/project-install-homebrew.bash +++ b/jenkins-scripts/lib/project-install-homebrew.bash @@ -46,6 +46,16 @@ echo '# BEGIN SECTION: setup the osrf/simulation tap' brew tap osrf/simulation echo '# END SECTION' +if 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}