diff options
author | 2021-10-01 13:32:52 -0400 | |
---|---|---|
committer | 2021-10-01 13:32:52 -0400 | |
commit | 75e26c58e134d450b19b983ab50b6926b13b120d (patch) | |
tree | 574fb752bffaa910ba9c24a740d38eb4d7687fe9 /jjb/scripts/csit/device-semiweekly.sh | |
parent | 54e6a1a3ae92d6a8da6f82edccced9918e2cbd6a (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/device-semiweekly.sh')
-rwxr-xr-x[-rw-r--r--] | jjb/scripts/csit/device-semiweekly.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jjb/scripts/csit/device-semiweekly.sh b/jjb/scripts/csit/device-semiweekly.sh index ea405b2b5..1086b5463 100644..100755 --- a/jjb/scripts/csit/device-semiweekly.sh +++ b/jjb/scripts/csit/device-semiweekly.sh @@ -21,13 +21,14 @@ set -exuo pipefail # # Variables read: # - WORKSPACE - Jenkins workspace to create csit subdirectory in. +# - GIT_URL - Git clone URL # - BRANCH_ID - CSIT operational branch to be used for test. # Directories updated: # - ${WORKSPACE}/csit - Created, holding a checked out CSIT repository. # - 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 # Check BRANCH_ID value. if [[ -z "${BRANCH_ID-}" ]]; then echo "BRANCH_ID not provided => 'oper' belonging to master will be used." |