diff options
author | Markos Chandras <mchandras@suse.de> | 2018-05-09 09:39:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-05-09 09:39:20 +0000 |
commit | 1b95992f4d6162f33a10e86ea3a16fbd015efe75 (patch) | |
tree | 0c4d12159dffe038c5dca94f5155a67ef593b254 /jjb | |
parent | 42ecdb8cc7f847da54c76a4e6b6a4ef32347b81e (diff) | |
parent | 6ae13c7c86e693319d90009edd089c6a781f823e (diff) |
Merge "jjb: xci: xci-start-new-vm: Create scenario overrides file"
Diffstat (limited to 'jjb')
-rwxr-xr-x | jjb/xci/xci-start-new-vm.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/jjb/xci/xci-start-new-vm.sh b/jjb/xci/xci-start-new-vm.sh index dd953e927..f1585b9f0 100755 --- a/jjb/xci/xci-start-new-vm.sh +++ b/jjb/xci/xci-start-new-vm.sh @@ -68,14 +68,23 @@ 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 - + XCI_ANSIBLE_PARAMS="-e /home/devuser/releng-xci/scenario_overrides.yml" fi cd xci ./xci-deploy.sh | ts EOF + +if [[ ! -z ${WORKSPACE+x} && $GERRIT_PROJECT != "releng-xci" ]]; then + cat > scenario_overrides.yml <<-EOF +--- +xci_scenarios_overrides: + - scenario: $DEPLOY_SCENARIO + version: $GERRIT_CHANGE_ID + refspec: $GERRIT_REFSPEC +EOF +fi + chmod a+x xci_test.sh export XCI_BUILD_CLEAN_VM_OS=false |