Jiri Broulik | 132578e | 2017-06-02 12:26:25 +0200 | [diff] [blame] | 1 | # |
| 2 | # Jobs to update packages on given Salt master environment |
| 3 | # |
| 4 | parameters: |
| 5 | _param: |
| 6 | jenkins_salt_api_url: "http://${_param:salt_master_host}:6969" |
| 7 | jenkins: |
| 8 | client: |
| 9 | job: |
Jiri Broulik | 0c2b843 | 2017-06-16 12:04:32 +0200 | [diff] [blame] | 10 | deploy-upgrade-compute: |
Jiri Broulik | 132578e | 2017-06-02 12:26:25 +0200 | [diff] [blame] | 11 | type: workflow-scm |
| 12 | concurrent: true |
Alexander Evseev | 4589d71 | 2018-08-03 12:36:15 +0200 | [diff] [blame^] | 13 | discard: |
| 14 | build: |
| 15 | keep_num: 10 |
| 16 | artifact: |
| 17 | keep_num: 10 |
Jiri Broulik | 132578e | 2017-06-02 12:26:25 +0200 | [diff] [blame] | 18 | display_name: "Deploy - upgrade computes" |
| 19 | scm: |
| 20 | type: git |
| 21 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 22 | branch: "${_param:jenkins_pipelines_branch}" |
Jiri Broulik | 132578e | 2017-06-02 12:26:25 +0200 | [diff] [blame] | 23 | credentials: "gerrit" |
| 24 | script: openstack-compute-upgrade.groovy |
| 25 | param: |
| 26 | SALT_MASTER_URL: |
| 27 | type: string |
| 28 | default: "${_param:jenkins_salt_api_url}" |
| 29 | SALT_MASTER_CREDENTIALS: |
| 30 | type: string |
| 31 | default: "salt" |
| 32 | TARGET_SERVERS: |
| 33 | type: string |
Jiri Broulik | b339451 | 2017-07-13 12:27:48 +0200 | [diff] [blame] | 34 | default: "cmp*" |
Jiri Broulik | 132578e | 2017-06-02 12:26:25 +0200 | [diff] [blame] | 35 | description: Salt compound target to match nodes to be updated [*, G@osfamily:debian]. |
Jiri Broulik | 132578e | 2017-06-02 12:26:25 +0200 | [diff] [blame] | 36 | TARGET_SUBSET_TEST: |
| 37 | type: string |
| 38 | description: Number of nodes to list package updates, empty string means all targetted nodes. |
| 39 | TARGET_SUBSET_LIVE: |
| 40 | type: string |
| 41 | default: '1' |
Jiri Broulik | b339451 | 2017-07-13 12:27:48 +0200 | [diff] [blame] | 42 | description: Number of selected nodes to live apply upgrade. |
Vasyl Saienko | fd1fbee | 2018-06-22 15:16:29 +0300 | [diff] [blame] | 43 | INTERACTIVE: |
| 44 | type: boolean |
| 45 | default: 'true' |
| 46 | description: "Ask interactive questions during pipeline run (bool)" |