blob: f5e97be325e76cc4f0684c5aacde38e2a51a0eb2 [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 {
Alexander Evseeva7f684b2018-09-11 11:36:10 +020018 for (String jobname : ['mirror-snapshot-name-maas-xenial', 'mirror-snapshot-name-ubuntu', 'ebf-hotfix-ubuntu', 'ebf-update-ubuntu', 'mirror-snapshot-name-maas-ephemeral-v3']) {
azvyagintsev45adb3d2018-09-03 17:53:48 +030019 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}