blob: 0edaf018da4a4970d6a06449c63076e4bdc619e7 [file] [log] [blame]
Jiri Broulikb3394512017-07-13 12:27:48 +02001#
2# Jobs to update packages on given Salt master environment
3#
4parameters:
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"
17 credentials: "gerrit"
18 script: opencontrail-upgrade.groovy
19 param:
20 SALT_MASTER_URL:
21 type: string
22 default: "${_param:jenkins_salt_api_url}"
23 SALT_MASTER_CREDENTIALS:
24 type: string
25 default: "salt"
26 STAGE_CONTROLLERS_UPGRADE:
27 type: boolean
28 default: 'true'
29 description: "Run upgrade on Opencontrail controllers"
30 STAGE_ANALYTICS_UPGRADE:
31 type: boolean
32 default: 'true'
33 description: "Run upgrade on Opencontrail analytics"
34 STAGE_COMPUTES_UPGRADE:
35 type: boolean
36 default: 'true'
37 description: "Run upgrade on Opencontrail compute nodes"
38 COMPUTE_TARGET_SERVERS:
39 type: string
40 default: "cmp*"
41 description: Salt compound target to match nodes to be updated [*, G@osfamily:debian].
42 COMPUTE_TARGET_SUBSET_LIVE:
43 type: string
44 default: '1'
45 description: Number of selected nodes to live apply compute upgrade.
Jiri Broulik5f65bc62017-07-13 23:37:22 +020046 STAGE_CONTROLLERS_ROLLBACK:
47 type: boolean
48 default: 'false'
49 description: "Run rollback on Opencontrail controllers"
50 STAGE_ANALYTICS_ROLLBACK:
51 type: boolean
52 default: 'false'
53 description: "Run rollback on Opencontrail analytics"
54 STAGE_COMPUTES_ROLLBACK:
55 type: boolean
56 default: 'false'
57 description: "Run rollback on Opencontrail compute nodes"
58 CMP_ROLLBACK_PKGS:
59 type: string
60 default: "contrail-lib=3.1.1.x~20170613145417-0 contrail-nodemgr=3.1.1.x~20170613145417-0 ..."
61 description: "String of package versions outputed by compute upgrade stage to rollback"