Add job for setting default VM image on Jenkins slaves.

We can use this job when new built image will be broken, to change
default to previous one.

Change-Id: I9bb264ab2b70940fd5679b56dff174f394109feb
This commit is contained in:
Artur Zarzycki 2016-09-12 11:31:03 +02:00
parent 3bb391f313
commit e47c4b878b
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
- job:
name: set-default-vm-image
builders:
- shell: |
#!/bin/bash -ex
cd /home/jenkins/workspace/cloud-images/
if [ -L default-image.qcow2 ]; then
rm default-image.qcow2
fi
ln -s $IMAGE default-image.qcow2
concurrent: true
description: |
Job set default Ubuntu images on Jenkins slaves
logrotate:
daysToKeep: 14
parameters:
- extended-choice:
name: IMAGE
description: "VM image file for k8s hosts"
property-file: http://share01-scc.ng.mirantis.net/images.lst
property-key: images
- node:
name: NODE
allowed-multiselect: true
wrappers:
- ssh-agent-credentials:
users:
- '0859086d-e10a-4ad5-af71-8abec4b6b6ec'
- timeout:
timeout: 60