xci: Do not clone and checkout scenario repo if it is releng-xci 41/50941/1
authorFatih Degirmenci <fdegir@gmail.com>
Mon, 22 Jan 2018 14:15:55 +0000 (15:15 +0100)
committerFatih Degirmenci <fdegir@gmail.com>
Mon, 22 Jan 2018 14:15:55 +0000 (15:15 +0100)
Change-Id: I48cdbfbd5b7746e75565d318616e9c580b5ba156
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
jjb/xci/xci-start-new-vm.sh

index 745113b..dc6139b 100755 (executable)
@@ -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 -