blob: 0388ed14fcaa36cd47acd7f0549e499e345ecb68 [file] [log] [blame]
Jiri Broulik4e3b6642018-02-13 16:10:32 +01001#
2# Job to manage libvirt live snapshots
3#
4parameters:
5 _param:
6 jenkins_salt_api_url: "http://${_param:salt_master_host}:6969"
7 jenkins:
8 client:
9 job:
10 manage-virt-snapshot:
11 type: workflow-scm
12 concurrent: true
13 display_name: "Deploy - virt snapshot VM"
14 scm:
15 type: git
16 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
17 branch: "${_param:jenkins_pipelines_branch}"
18 credentials: "gerrit"
19 script: libvirt-live-snapshots.groovy
20 param:
21 SALT_MASTER_URL:
22 type: string
23 default: "${_param:jenkins_salt_api_url}"
24 SALT_MASTER_CREDENTIALS:
25 type: string
26 default: "salt"
27 CREATE_LIVE_SNAPSHOT:
28 type: boolean
29 default: 'true'
30 description: "Ensures that the live snapshot exists"
31 ROLLBACK_LIVE_SNAPSHOT:
32 type: boolean
33 default: 'false'
34 description: "Rollback the VM to a state before live snapshot was taken"
35 REMOVE_LIVE_SNAPSHOT:
36 type: boolean
37 default: 'false'
38 description: "Ensures that the live snapshot does not exist"
39 MERGE_LIVE_SNAPSHOT:
40 type: boolean
41 default: 'false'
42 description: "Ensures that the live snapshot is merged into it's base image"
43 NODE_PROVIDER:
44 type: string
45 default: "kvm01"
46 description: "KVM node that hosts the VM (for ex. kvm02)"
47 TARGET:
48 type: string
49 default: "ctl01"
50 description: "Unique identification of the VM being snapshoted without domain name (for ex. ctl01)"
51 SNAPSHOT_NAME:
52 type: string
53 default: "snapshot1"
54 description: "Snapshot name"
55 PATH:
56 type: string
57 default: "/var/lib/libvirt/images"
58 description: "Path where snapshot image and dumpxml are being put"
59 DISK_NAME:
60 type: string
61 default: "vda"
62 description: "Disk name of the snapshot"