xci: scripts: start-new-vm.sh: Add option to clean VM on failure 41/44541/2
authorMarkos Chandras <mchandras@suse.de>
Thu, 5 Oct 2017 16:28:35 +0000 (17:28 +0100)
committerMarkos Chandras <mchandras@suse.de>
Mon, 9 Oct 2017 07:50:56 +0000 (08:50 +0100)
commit5ea389f23fb6053855e4840baf6c7c8e0f4b8f99
tree08f2f521be72bbea065f9d9f3441047346a5d130
parenta94f0eb1448e98ef2fed6677595d206cc8298bde
xci: scripts: start-new-vm.sh: Add option to clean VM on failure

Sometimes we may want to remove the clean VM in case of failure. This
is mostly true for CI tests because developers do not normally have access
to the deployed VMs to debug problems since they can easily recreate the
same environment using this script. If they ever want direct access to
the slaves then that option can easily be turned off and retrigger the
job. In the meantime, this patch allows slaves to free resources when a
job fails instead of keeping the broken tests around.

Change-Id: I07d56661e45fc64e1ec0db7a359522e4ebd2891a
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/scripts/vm/start-new-vm.sh