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: |
Jiri Broulik | 132578e | 2017-06-02 12:26:25 +0200 | [diff] [blame] | 5 | jenkins: |
| 6 | client: |
| 7 | job: |
Jiri Broulik | 0c2b843 | 2017-06-16 12:04:32 +0200 | [diff] [blame] | 8 | deploy-upgrade-compute: |
Jiri Broulik | 132578e | 2017-06-02 12:26:25 +0200 | [diff] [blame] | 9 | type: workflow-scm |
| 10 | concurrent: true |
Alexander Evseev | 4589d71 | 2018-08-03 12:36:15 +0200 | [diff] [blame] | 11 | discard: |
| 12 | build: |
| 13 | keep_num: 10 |
| 14 | artifact: |
| 15 | keep_num: 10 |
Jiri Broulik | 132578e | 2017-06-02 12:26:25 +0200 | [diff] [blame] | 16 | display_name: "Deploy - upgrade computes" |
| 17 | scm: |
| 18 | type: git |
| 19 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 20 | branch: "${_param:jenkins_pipelines_branch}" |
Jiri Broulik | 132578e | 2017-06-02 12:26:25 +0200 | [diff] [blame] | 21 | credentials: "gerrit" |
Vasyl Saienko | c780055 | 2018-08-28 12:27:06 +0300 | [diff] [blame] | 22 | script: openstack-data-upgrade.groovy |
Jiri Broulik | 132578e | 2017-06-02 12:26:25 +0200 | [diff] [blame] | 23 | param: |
| 24 | SALT_MASTER_URL: |
| 25 | type: string |
| 26 | default: "${_param:jenkins_salt_api_url}" |
| 27 | SALT_MASTER_CREDENTIALS: |
| 28 | type: string |
| 29 | default: "salt" |
Vasyl Saienko | c780055 | 2018-08-28 12:27:06 +0300 | [diff] [blame] | 30 | OS_DIST_UPGRADE: |
| 31 | type: boolean |
| 32 | default: 'false' |
| 33 | description: "Upgrade system packages including kernel (apt-get dist-upgrade)" |
| 34 | OS_UPGRADE: |
| 35 | type: boolean |
| 36 | default: 'false' |
| 37 | description: "Upgrade all installed applications (apt-get upgrade)" |
Vasyl Saienko | fd1fbee | 2018-06-22 15:16:29 +0300 | [diff] [blame] | 38 | INTERACTIVE: |
| 39 | type: boolean |
| 40 | default: 'true' |
| 41 | description: "Ask interactive questions during pipeline run (bool)" |
Vasyl Saienko | c780055 | 2018-08-28 12:27:06 +0300 | [diff] [blame] | 42 | TARGET_SERVERS: |
| 43 | type: string |
| 44 | default: 'cmp*' |
| 45 | description: "Salt compound expression to get control servers to upgrade." |