Jiri Broulik | b339451 | 2017-07-13 12:27:48 +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-opencontrail: |
| 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 | b339451 | 2017-07-13 12:27:48 +0200 | [diff] [blame] | 18 | display_name: "Deploy - upgrade Opencontrail" |
| 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 | b339451 | 2017-07-13 12:27:48 +0200 | [diff] [blame] | 23 | credentials: "gerrit" |
| 24 | script: opencontrail-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 | STAGE_CONTROLLERS_UPGRADE: |
| 33 | type: boolean |
| 34 | default: 'true' |
| 35 | description: "Run upgrade on Opencontrail controllers" |
| 36 | STAGE_ANALYTICS_UPGRADE: |
| 37 | type: boolean |
| 38 | default: 'true' |
| 39 | description: "Run upgrade on Opencontrail analytics" |
| 40 | STAGE_COMPUTES_UPGRADE: |
| 41 | type: boolean |
| 42 | default: 'true' |
| 43 | description: "Run upgrade on Opencontrail compute nodes" |
| 44 | COMPUTE_TARGET_SERVERS: |
| 45 | type: string |
| 46 | default: "cmp*" |
| 47 | description: Salt compound target to match nodes to be updated [*, G@osfamily:debian]. |
| 48 | COMPUTE_TARGET_SUBSET_LIVE: |
| 49 | type: string |
| 50 | default: '1' |
| 51 | description: Number of selected nodes to live apply compute upgrade. |
Jiri Broulik | 5f65bc6 | 2017-07-13 23:37:22 +0200 | [diff] [blame] | 52 | STAGE_CONTROLLERS_ROLLBACK: |
| 53 | type: boolean |
| 54 | default: 'false' |
| 55 | description: "Run rollback on Opencontrail controllers" |
| 56 | STAGE_ANALYTICS_ROLLBACK: |
| 57 | type: boolean |
| 58 | default: 'false' |
| 59 | description: "Run rollback on Opencontrail analytics" |
| 60 | STAGE_COMPUTES_ROLLBACK: |
| 61 | type: boolean |
| 62 | default: 'false' |
| 63 | description: "Run rollback on Opencontrail compute nodes" |