summaryrefslogtreecommitdiffstats
path: root/jjb/xci/xci-start-new-vm.sh
AgeCommit message (Collapse)AuthorFilesLines
2018-03-22xci: Set additional variables in CI test scriptFatih Degirmenci1-0/+3
We need the variables CI_LOOP, BUILD_TAG, and NODE_NAME passed to the deployment to display during functest execution. Change-Id: Ib6709678d760d43927d3cd9f606d2c7e74e724d0 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-03-13jjb: xci: Ensure GERRIT_TOPIC is always setMarkos Chandras1-0/+3
Fixes the following problem [description-setter] Description set: Scenario: os-nosdn-nofeature | Node: intel-virtual14 [xci-verify-ubuntu-healthcheck-virtual-master] $ /bin/bash /tmp/jenkins7521920744845291696.sh /tmp/jenkins7521920744845291696.sh: line 21: GERRIT_TOPIC: unbound variable Build step 'Execute shell' marked build as failure Change-Id: Iddf82e6ae6c6c433d941c461953c11935bc45269 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-03-12xci: Combine vars setting installer type in INSTALLER_TYPEFatih Degirmenci1-1/+1
Change-Id: I5312ac784b1621ce968bbdfb1532859dada0e790 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-03-12xci: Set installer type for the tested scenarioFatih Degirmenci1-1/+1
Variables injected by envInject are set after the job variables which results in not setting the variable correctly. The Jenkins test script now uses the variable injected by envInject to set the INSTALLER_TYPE to XCI_INSTALLER. Change-Id: Id79281a2ee22d407ffb1bd7c4be1471f6f329803 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-03-08jjb: xci: xci-start-new-vm: Switch to pre-built bifrost OS imagesMarkos Chandras1-0/+1
Change-Id: I19e60eea65b01ec22bb32c0efcdc6b071b22ca34 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-03-02jjb: xci: Use core OpenStack installation by defaultMarkos Chandras1-0/+1
We do not need all the components installed when deploying OpenStack so we can speed up the jobs by removing some of them. Change-Id: I19120915d0ef7c59b8b470c5fb87e9c0aa3e3673 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-02-26xci: Set appropriate permissions for the keyFatih Degirmenci1-0/+1
Change-Id: I6387ca1f7eaf107f735eab82917d77b2f3a3d90a Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-02-26xci: Move out of WORKSPACE before wiping it out and log scenario to consoleFatih Degirmenci1-2/+2
Change-Id: Ia2caeef24a199580a9eeb2ba6214fa2008f65c1c Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-02-26xci: Fix the Gerrit Trigger clone issue for external scenariosFatih Degirmenci1-0/+11
When a patch comes in for an external scenario, Gerrit Trigger injects refs for that patch for the corresponding project. With the previous configuration, job attempts to get that patch for releng-xci instead of the actual project. But switching to the right project causes Jenkins jobs to fail since the releng-xci will not be checked out to WORKSPACE. This change makes the clone for the repo/patch work and then it wipes out the WORKSPACE and clones releng-xci there to get the actual script parts to work. Change-Id: Ide31c21a209dff953118f51e9b09de1d206a3085 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-02-23jjb: xci: xci-start-new-vm.sh: Set pipefail optionMarkos Chandras1-0/+1
In commit I77d5d66c0146f943d805612ca5b47e2eed3ffc41 the 'ts' utility was added in order to print timestamps for deployment. However, this breaks the exit code since 'pipefail' was not set so every job was returning 'success'. Change-Id: I2625a655a7334b1e43b690618821e69377075ed1 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-02-21jjb: xci: Use the 'ts' utility to print timestamps on executed steps.Markos Chandras1-1/+1
We can use the 'ts' utility to print timestamps on every executed command so we can keep track on the duration of each task and the job overall. Change-Id: I77d5d66c0146f943d805612ca5b47e2eed3ffc41 Signed-off-by: Markos Chandras <mchandras@suse.de>
2018-01-23xci: Skip jobs if the scenario is not supported on a distroFatih Degirmenci1-0/+7
Change-Id: I22d2327558ee1d19d04775da6abf1b3eed5b357a Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-01-22xci: Do not clone and checkout scenario repo if it is releng-xciFatih Degirmenci1-1/+1
Change-Id: I48cdbfbd5b7746e75565d318616e9c580b5ba156 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-01-22xci: Clone the repo and checkout the patch for testingFatih Degirmenci1-0/+6
Change-Id: Ie1c2f76b6043133c3821272040b1a2a38de29035 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
2018-01-22xci: Convert execute shell scripts to external scriptsFatih Degirmenci1-0/+50
The scripts used by verify jobs to create VMs, start deployments, run functest, and do cleanup for CI can be reused by other jobs as well so they are moved out of the yaml file. Apart from that, if we decide to change the way we run CI (not using VMs for performance reasons), we don't have to make big changes to yaml either. Change-Id: I2df1f2d60f999bcd7d53a5cd879112a5b2b0ca05 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>