blob: cd663cff42074ae3916f230ebfe572114e8b311b [file] [log] [blame]
azvyagintsev45adb3d2018-09-03 17:53:48 +03001/**
2 *
3 * Promote Ubuntu-related mirrors in same time.
4 * Promote ubuntu|maas|maas-ephermal should be always together.
5 *
6 * Expected parameters:
7 * MCP_VERSION
8 * SNAPSHOT_NAME - Snapshot name to set
9 * SNAPSHOT_ID - Set name for specified snapshot ID
10 */
11
12common = new com.mirantis.mk.Common()
13
14timeout(time: 1, unit: 'HOURS') {
15 node() {
16 stage("Promote") {
17 catchError {
18 for (String jobname : ['mirror-snapshot-name-maas-xenial', 'mirror-snapshot-name-ubuntu', 'mirror-snapshot-name-maas-ephemeral-v3']) {
19 build job: jobname, parameters: [
20 [$class: 'StringParameterValue', name: 'SNAPSHOT_NAME', value: SNAPSHOT_NAME],
21 [$class: 'StringParameterValue', name: 'SNAPSHOT_ID', value: SNAPSHOT_ID],
22 ]
23 }
24 }
25 }
26 }
27}