diff options
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/scripts/csit/perf-timed.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jjb/scripts/csit/perf-timed.sh b/jjb/scripts/csit/perf-timed.sh index 1ef068cdc..76fabd58f 100644 --- a/jjb/scripts/csit/perf-timed.sh +++ b/jjb/scripts/csit/perf-timed.sh @@ -19,6 +19,8 @@ set -exuo pipefail # # Variables read: # - WORKSPACE - Jenkins workspace to create csit subdirectory in. +# - GERRIT_BRANCH - Jenkins configured GERRIT_BRANCH parameter equal to required +# CSIT branch. # - CSIT_REF - Override ref of CSIT git repository to checkout. # Directories updated: # - ${WORKSPACE}/csit - Created, holding a checked out CSIT repository. @@ -31,7 +33,7 @@ if [[ -n "${CSIT_REF-}" ]]; then git fetch --depth=1 https://gerrit.fd.io/r/csit "${CSIT_REF}" git checkout FETCH_HEAD else - git checkout HEAD + git checkout "${GERRIT_BRANCH}" fi popd csit_entry_dir="${WORKSPACE}/csit/resources/libraries/bash/entry" |