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: |
| 5 | _param: |
| 6 | jenkins_salt_api_url: "http://${_param:salt_master_host}:6969" |
| 7 | jenkins: |
| 8 | client: |
| 9 | job: |
| 10 | deploy-upgrade-control: |
| 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 |
Tomáš Kukrál | 8d7a517 | 2017-05-09 15:55:14 +0200 | [diff] [blame] | 18 | display_name: "Deploy - upgrade control VMs" |
| 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}" |
Tomáš Kukrál | 8d7a517 | 2017-05-09 15:55:14 +0200 | [diff] [blame] | 23 | credentials: "gerrit" |
| 24 | script: openstack-control-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" |
Vasyl Saienko | c780055 | 2018-08-28 12:27:06 +0300 | [diff] [blame] | 32 | OS_DIST_UPGRADE: |
Jiri Broulik | 4e3b664 | 2018-02-13 16:10:32 +0100 | [diff] [blame] | 33 | type: boolean |
| 34 | default: 'false' |
Vasyl Saienko | c780055 | 2018-08-28 12:27:06 +0300 | [diff] [blame] | 35 | description: "Upgrade system packages including kernel (apt-get dist-upgrade)" |
| 36 | OS_UPGRADE: |
Jiri Broulik | bf36a09 | 2017-11-13 17:55:01 +0100 | [diff] [blame] | 37 | type: boolean |
| 38 | default: 'false' |
Vasyl Saienko | c780055 | 2018-08-28 12:27:06 +0300 | [diff] [blame] | 39 | description: "Upgrade all installed applications (apt-get upgrade)" |
Vasyl Saienko | fd1fbee | 2018-06-22 15:16:29 +0300 | [diff] [blame] | 40 | INTERACTIVE: |
| 41 | type: boolean |
| 42 | default: 'true' |
| 43 | description: "Ask interactive questions during pipeline run (bool)" |
Vasyl Saienko | c780055 | 2018-08-28 12:27:06 +0300 | [diff] [blame] | 44 | TARGET_SERVERS: |
| 45 | type: string |
| 46 | default: 'ctl*' |
| 47 | description: "Salt compound expression to get control servers to upgrade." |