Tomáš Kukrál | 8d7a517 | 2017-05-09 15:55:14 +0200 | [diff] [blame] | 1 | # |
| 2 | # Jobs to update packages on given Salt master environment |
| 3 | # |
| 4 | parameters: |
Tomáš Kukrál | 8d7a517 | 2017-05-09 15:55:14 +0200 | [diff] [blame] | 5 | jenkins: |
| 6 | client: |
| 7 | job: |
| 8 | deploy-upgrade-control: |
| 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 |
Tomáš Kukrál | 8d7a517 | 2017-05-09 15:55:14 +0200 | [diff] [blame] | 16 | display_name: "Deploy - upgrade control VMs" |
| 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}" |
Sergey Galkin | ef9eabf | 2019-06-19 17:53:07 +0400 | [diff] [blame^] | 21 | credentials: ${_param:jenkins_gerrit_credentials} |
Tomáš Kukrál | 8d7a517 | 2017-05-09 15:55:14 +0200 | [diff] [blame] | 22 | script: openstack-control-upgrade.groovy |
| 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: |
Jiri Broulik | 4e3b664 | 2018-02-13 16:10:32 +0100 | [diff] [blame] | 31 | type: boolean |
| 32 | default: 'false' |
Vasyl Saienko | c780055 | 2018-08-28 12:27:06 +0300 | [diff] [blame] | 33 | description: "Upgrade system packages including kernel (apt-get dist-upgrade)" |
| 34 | OS_UPGRADE: |
Jiri Broulik | bf36a09 | 2017-11-13 17:55:01 +0100 | [diff] [blame] | 35 | type: boolean |
| 36 | default: 'false' |
Vasyl Saienko | c780055 | 2018-08-28 12:27:06 +0300 | [diff] [blame] | 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: 'ctl*' |
| 45 | description: "Salt compound expression to get control servers to upgrade." |