diff options
author | Jan Gelety <jgelety@cisco.com> | 2020-03-27 16:10:20 +0100 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2020-03-27 20:11:15 +0100 |
commit | 78dfa7380ea0361f3cc0f93dbc8c5b1c077e08d0 (patch) | |
tree | 4cd18b778885dede1ffe34c17b4e72637d1e0d7b /jjb/scripts/csit | |
parent | c678af5fb96143a161396ae97617b908cbc3fde1 (diff) |
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 <jgelety@cisco.com>
Diffstat (limited to 'jjb/scripts/csit')
-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" |