blob: f4f5630eecfc48a74a6c116460b1b8e8aeb25106 [file] [log] [blame]
Tomáš Kukrál8d7a5172017-05-09 15:55:14 +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-control:
11 type: workflow-scm
12 concurrent: true
Alexander Evseev4589d712018-08-03 12:36:15 +020013 discard:
14 build:
15 keep_num: 10
16 artifact:
17 keep_num: 10
Tomáš Kukrál8d7a5172017-05-09 15:55:14 +020018 display_name: "Deploy - upgrade control VMs"
19 scm:
20 type: git
21 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010022 branch: "${_param:jenkins_pipelines_branch}"
Tomáš Kukrál8d7a5172017-05-09 15:55:14 +020023 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 Saienkoc7800552018-08-28 12:27:06 +030032 OS_DIST_UPGRADE:
Jiri Broulik4e3b6642018-02-13 16:10:32 +010033 type: boolean
34 default: 'false'
Vasyl Saienkoc7800552018-08-28 12:27:06 +030035 description: "Upgrade system packages including kernel (apt-get dist-upgrade)"
36 OS_UPGRADE:
Jiri Broulikbf36a092017-11-13 17:55:01 +010037 type: boolean
38 default: 'false'
Vasyl Saienkoc7800552018-08-28 12:27:06 +030039 description: "Upgrade all installed applications (apt-get upgrade)"
Vasyl Saienkofd1fbee2018-06-22 15:16:29 +030040 INTERACTIVE:
41 type: boolean
42 default: 'true'
43 description: "Ask interactive questions during pipeline run (bool)"
Vasyl Saienkoc7800552018-08-28 12:27:06 +030044 TARGET_SERVERS:
45 type: string
46 default: 'ctl*'
47 description: "Salt compound expression to get control servers to upgrade."