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" |
Jiri Broulik | 6f11fab | 2017-05-13 18:03:08 +0200 | [diff] [blame] | 32 | STAGE_TEST_UPGRADE: |
| 33 | type: boolean |
| 34 | default: 'true' |
| 35 | description: "Test if syncdb and APIs succeed" |
| 36 | STAGE_REAL_UPGRADE: |
| 37 | type: boolean |
| 38 | default: 'true' |
| 39 | description: "Run real control upgrade" |
| 40 | STAGE_ROLLBACK_UPGRADE: |
| 41 | type: boolean |
| 42 | default: 'true' |
| 43 | description: "Rollback if control upgrade fails" |
Jiri Broulik | 4e3b664 | 2018-02-13 16:10:32 +0100 | [diff] [blame] | 44 | OPERATING_SYSTEM_RELEASE_UPGRADE: |
| 45 | type: boolean |
| 46 | default: 'false' |
| 47 | description: "Set to true if operating system release upgrade is desired. For ex. from Ubuntu 14.04 currently running on ctl and prx nodes to Ubuntu 16.04" |
Jiri Broulik | bf36a09 | 2017-11-13 17:55:01 +0100 | [diff] [blame] | 48 | SKIP_VM_RELAUNCH: |
| 49 | type: boolean |
| 50 | default: 'false' |
| 51 | description: "Set to true if vms should not be recreated" |
Vasyl Saienko | fd1fbee | 2018-06-22 15:16:29 +0300 | [diff] [blame] | 52 | INTERACTIVE: |
| 53 | type: boolean |
| 54 | default: 'true' |
| 55 | description: "Ask interactive questions during pipeline run (bool)" |