azvyagintsev | 45adb3d | 2018-09-03 17:53:48 +0300 | [diff] [blame] | 1 | /** |
| 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 | |
| 12 | common = new com.mirantis.mk.Common() |
| 13 | |
| 14 | timeout(time: 1, unit: 'HOURS') { |
| 15 | node() { |
| 16 | stage("Promote") { |
| 17 | catchError { |
Alexander Evseev | a7f684b | 2018-09-11 11:36:10 +0200 | [diff] [blame] | 18 | for (String jobname : ['mirror-snapshot-name-maas-xenial', 'mirror-snapshot-name-ubuntu', 'ebf-hotfix-ubuntu', 'ebf-update-ubuntu', 'mirror-snapshot-name-maas-ephemeral-v3']) { |
azvyagintsev | 45adb3d | 2018-09-03 17:53:48 +0300 | [diff] [blame] | 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 | } |