From 7f14c1c41b30d1f9f94958d1bde4dc6aafb991d5 Mon Sep 17 00:00:00 2001 From: Sam Warters Date: Thu, 25 Mar 2021 11:12:18 -0500 Subject: [PATCH] enable latest git in Jenkins environment The system installed version of git on Jenkins is very old and doesn't have all of the flags and commands we need. This PR adds adds a step to enable the latest installed git on Jenkins in the `activate_jenkins_env` function. --- internal/main | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/main b/internal/main index 5ceb9d8..f7bb913 100755 --- a/internal/main +++ b/internal/main @@ -482,6 +482,8 @@ function docker_make { # is useful when a new stage of the build needs to use some of the installed tools because each # pipeline stage starts with a fresh environment. function activate_jenkins_env { + # shellcheck disable=SC1091 + source /opt/rh/rh-git29/enable || fail "Failed to activate latest git on Jenkins." PATH="$PYENV_ROOT/bin:$PATH" pyenv local "$PYVERSION" || fail "Couldn't activate Python $PYVERSION" eval "$(pyenv init -)" || fail "Couldn't init pyenv"