- 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>
#
# 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.
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"