From 78dfa7380ea0361f3cc0f93dbc8c5b1c077e08d0 Mon Sep 17 00:00:00 2001 From: Jan Gelety Date: Fri, 27 Mar 2020 16:10:20 +0100 Subject: Fix csit branch for perf timed jobs - performance timed jobs in different csit branches need to be independent from other csit branches Change-Id: Iec841864cdab4374094042d27b3d68a30b7427a1 Signed-off-by: Jan Gelety --- jjb/scripts/csit/perf-timed.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'jjb/scripts/csit') 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" -- cgit 1.2.3-korg