summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorFatih Degirmenci <fdegir@gmail.com>2018-01-22 15:15:55 +0100
committerFatih Degirmenci <fdegir@gmail.com>2018-01-22 15:15:55 +0100
commitada5d633f98568cea1621d4fa1067ff2d3aed753 (patch)
tree4063f7cdeca043cedf3b2fc9546ad59e7de7d16e /jjb
parentbf5f869a57d97b32ff72b252a397cf686e376979 (diff)
xci: Do not clone and checkout scenario repo if it is releng-xci
Change-Id: I48cdbfbd5b7746e75565d318616e9c580b5ba156 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
Diffstat (limited to 'jjb')
-rwxr-xr-xjjb/xci/xci-start-new-vm.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/jjb/xci/xci-start-new-vm.sh b/jjb/xci/xci-start-new-vm.sh
index 745113b47..dc6139b12 100755
--- a/jjb/xci/xci-start-new-vm.sh
+++ b/jjb/xci/xci-start-new-vm.sh
@@ -39,7 +39,7 @@ export INSTALLER_TYPE=$INSTALLER_TYPE
export GIT_BASE=$GIT_BASE
export JENKINS_HOME=$JENKINS_HOME
-if [ ! -z ${WORKSPACE+x} ]; then
+if [[ ! -z ${WORKSPACE+x} && $GERRIT_PROJECT != "releng-xci" ]]; then
git clone https://gerrit.opnfv.org/gerrit/$GERRIT_PROJECT xci/scenarios/$DEPLOY_SCENARIO && cd xci/scenarios/$DEPLOY_SCENARIO
git fetch https://gerrit.opnfv.org/gerrit/$GERRIT_PROJECT $GERRIT_REFSPEC && git checkout FETCH_HEAD
cd -