Change-Id: Ie1c2f76b6043133c3821272040b1a2a38de29035
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
- label:
name: SLAVE_LABEL
default: 'xci-virtual'
+ - string:
+ name: DEPLOY_SCENARIO
+ default: '{scenario}'
- string:
name: CLEAN_DIB_IMAGES
default: 'true'
export GIT_BASE=$GIT_BASE
export JENKINS_HOME=$JENKINS_HOME
+if [ ! -z ${WORKSPACE+x} ]; 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 -
+fi
+
cd xci
./xci-deploy.sh
EOF