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 |
| 13 | display_name: "Deploy - upgrade Opencontrail" |
| 14 | scm: |
| 15 | type: git |
| 16 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 17 | branch: "${_param:jenkins_pipelines_branch}" |
Jiri Broulik | b339451 | 2017-07-13 12:27:48 +0200 | [diff] [blame] | 18 | credentials: "gerrit" |
| 19 | script: opencontrail-upgrade.groovy |
| 20 | param: |
| 21 | SALT_MASTER_URL: |
| 22 | type: string |
| 23 | default: "${_param:jenkins_salt_api_url}" |
| 24 | SALT_MASTER_CREDENTIALS: |
| 25 | type: string |
| 26 | default: "salt" |
| 27 | STAGE_CONTROLLERS_UPGRADE: |
| 28 | type: boolean |
| 29 | default: 'true' |
| 30 | description: "Run upgrade on Opencontrail controllers" |
| 31 | STAGE_ANALYTICS_UPGRADE: |
| 32 | type: boolean |
| 33 | default: 'true' |
| 34 | description: "Run upgrade on Opencontrail analytics" |
| 35 | STAGE_COMPUTES_UPGRADE: |
| 36 | type: boolean |
| 37 | default: 'true' |
| 38 | description: "Run upgrade on Opencontrail compute nodes" |
| 39 | COMPUTE_TARGET_SERVERS: |
| 40 | type: string |
| 41 | default: "cmp*" |
| 42 | description: Salt compound target to match nodes to be updated [*, G@osfamily:debian]. |
| 43 | COMPUTE_TARGET_SUBSET_LIVE: |
| 44 | type: string |
| 45 | default: '1' |
| 46 | description: Number of selected nodes to live apply compute upgrade. |
Jiri Broulik | 5f65bc6 | 2017-07-13 23:37:22 +0200 | [diff] [blame] | 47 | STAGE_CONTROLLERS_ROLLBACK: |
| 48 | type: boolean |
| 49 | default: 'false' |
| 50 | description: "Run rollback on Opencontrail controllers" |
| 51 | STAGE_ANALYTICS_ROLLBACK: |
| 52 | type: boolean |
| 53 | default: 'false' |
| 54 | description: "Run rollback on Opencontrail analytics" |
| 55 | STAGE_COMPUTES_ROLLBACK: |
| 56 | type: boolean |
| 57 | default: 'false' |
| 58 | description: "Run rollback on Opencontrail compute nodes" |