summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
Diffstat (limited to 'jjb')
-rw-r--r--jjb/integration/prepare-csit.sh8
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