diff options
author | Matthew Watkins <mwatkins@linuxfoundation.org> | 2023-03-22 12:16:34 +0000 |
---|---|---|
committer | Matthew Watkins <mwatkins@linuxfoundation.org> | 2023-03-22 12:20:22 +0000 |
commit | 4fec7bc0065d3be4c9cce93e6205a734d867f02b (patch) | |
tree | fba11959b7bfb3c62fd9dcc0ae1ae26f181c30c6 /jjb | |
parent | d4cd214f2d27d88f7c00686baaf89a5eea31aee2 (diff) |
Fix: Update ci-management repo if already present
Issue-ID: CIMAN-33
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Change-Id: Iac6368b9b5bb4d788d9e2e6965cf9651545565a3
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/integration/prepare-csit.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/jjb/integration/prepare-csit.sh b/jjb/integration/prepare-csit.sh index 0db140ff7..dc732c6bb 100644 --- a/jjb/integration/prepare-csit.sh +++ b/jjb/integration/prepare-csit.sh @@ -96,9 +96,13 @@ if [[ -f "${ROBOT3_VENV}/bin/activate" ]]; then source "${ROBOT3_VENV}/bin/activate" else # Robot framework was not found - # clone ci-management repository and use install script - git clone "https://gerrit.onap.org/r/ci-management" \ + # Clone/update ci-management repository and invoke install script + if [[ ! -d /tmp/ci-management ]]; then + git clone "https://gerrit.onap.org/r/ci-management" \ /tmp/ci-management + else + git pull /tmp/ci-management + fi # shellcheck disable=SC1090 source "/tmp/ci-management/jjb/integration/${ROBOT_INSTALLER}" fi |