Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add xrally_kubernetes_full in all gates
[releng.git]
/
jjb
/
xci
/
xci-start-new-vm.sh
diff --git
a/jjb/xci/xci-start-new-vm.sh
b/jjb/xci/xci-start-new-vm.sh
index
7874e67
..
79b6a78
100755
(executable)
--- a/
jjb/xci/xci-start-new-vm.sh
+++ b/
jjb/xci/xci-start-new-vm.sh
@@
-63,16
+63,28
@@
export OPNFV_RELENG_DEV_PATH=/home/devuser/releng-xci/
export INSTALLER_TYPE=$INSTALLER_TYPE
export GIT_BASE=$GIT_BASE
export JENKINS_HOME=$JENKINS_HOME
export INSTALLER_TYPE=$INSTALLER_TYPE
export GIT_BASE=$GIT_BASE
export JENKINS_HOME=$JENKINS_HOME
+export CI_LOOP=$CI_LOOP
+export BUILD_TAG=$BUILD_TAG
+export NODE_NAME=$NODE_NAME
-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 -
+if [[ $GERRIT_PROJECT != "releng-xci" ]]; then
+ export XCI_ANSIBLE_PARAMS="-e @/home/devuser/releng-xci/scenario_overrides.yml"
fi
cd xci
./xci-deploy.sh | ts
EOF
fi
cd xci
./xci-deploy.sh | ts
EOF
+
+if [[ $GERRIT_PROJECT != "releng-xci" ]]; then
+ cat > scenario_overrides.yml <<-EOF
+---
+xci_scenarios_overrides:
+ - scenario: $DEPLOY_SCENARIO
+ version: $GERRIT_PATCHSET_REVISION
+ refspec: $GERRIT_REFSPEC
+EOF
+fi
+
chmod a+x xci_test.sh
export XCI_BUILD_CLEAN_VM_OS=false
chmod a+x xci_test.sh
export XCI_BUILD_CLEAN_VM_OS=false