summaryrefslogtreecommitdiffstats
path: root/jjb/scripts/csit/perf-timed.sh
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2021-10-01 13:32:52 -0400
committerDave Wallace <dwallacelf@gmail.com>2021-10-01 13:32:52 -0400
commit75e26c58e134d450b19b983ab50b6926b13b120d (patch)
tree574fb752bffaa910ba9c24a740d38eb4d7687fe9 /jjb/scripts/csit/perf-timed.sh
parent54e6a1a3ae92d6a8da6f82edccced9918e2cbd6a (diff)
Use $GIT_URL in scripts to avoid https CA cert failure.
- git clone using https fails due to expired CA certificate, but project repo git clone works using git transfer protocol. Use $GIT_URL for clone command in scripts which use the git transfer protocol to the git mirror (same as git clone of project repo's) instead of https to the public gerrit ip address. Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: I15ef9e79e7e32d1561f6c452d192048f04c55caa
Diffstat (limited to 'jjb/scripts/csit/perf-timed.sh')
-rwxr-xr-x[-rw-r--r--]jjb/scripts/csit/perf-timed.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/jjb/scripts/csit/perf-timed.sh b/jjb/scripts/csit/perf-timed.sh
index 6d31f9ef2..10925b04f 100644..100755
--- a/jjb/scripts/csit/perf-timed.sh
+++ b/jjb/scripts/csit/perf-timed.sh
@@ -21,6 +21,7 @@ set -exuo pipefail
#
# Variables read:
# - WORKSPACE - Jenkins workspace to create csit subdirectory in.
+# - GIT_URL - Git clone URL
# - GERRIT_BRANCH - Jenkins configured GERRIT_BRANCH parameter equal to required
# CSIT branch.
# - CSIT_REF - Override ref of CSIT git repository to checkout.
@@ -29,10 +30,10 @@ set -exuo pipefail
# - Multiple other side effects by entry script(s), see CSIT repository.
cd "${WORKSPACE}"
-git clone https://gerrit.fd.io/r/csit --depth=1 --no-single-branch --no-checkout
+git clone "${GIT_URL}/csit" --depth=1 --no-single-branch --no-checkout
pushd "${WORKSPACE}/csit"
if [[ -n "${CSIT_REF-}" ]]; then
- git fetch --depth=1 https://gerrit.fd.io/r/csit "${CSIT_REF}"
+ git fetch --depth=1 "${GIT_URL}/csit" "${CSIT_REF}"
git checkout FETCH_HEAD
else
git checkout "${GERRIT_BRANCH}"