blob: b276ce443e33285bdeba6b8471c416ff4f762591 [file] [log] [blame]
Filip Pytloun260a9502017-03-16 12:47:22 +01001#
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-update-package:
11 type: workflow-scm
12 concurrent: true
13 display_name: "Deploy - update system package(s)"
14 scm:
15 type: git
16 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010017 branch: "${_param:jenkins_pipelines_branch}"
Filip Pytloun260a9502017-03-16 12:47:22 +010018 credentials: "gerrit"
19 script: update-package.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 TARGET_SERVERS:
28 type: string
29 default: "*"
30 description: Salt compound target to match nodes to be updated [*, G@osfamily:debian].
31 TARGET_PACKAGES:
32 type: string
Sam Stoelinga20ef1402017-08-01 18:45:18 -070033 description: Space delimited list of packages to be updated, empty string means updating all packages to the latest version e.g. [package1=version package2=version] or [package1 package2].
Filip Pytloun260a9502017-03-16 12:47:22 +010034 TARGET_SUBSET_TEST:
35 type: string
36 description: Number of nodes to list package updates, empty string means all targetted nodes.
37 TARGET_SUBSET_LIVE:
38 type: string
39 default: '1'
Jiri Broulik132578e2017-06-02 12:26:25 +020040 description: Number of selected nodes to live apply selected package update.
Filip Pytloun260a9502017-03-16 12:47:22 +010041 TARGET_BATCH_LIVE:
42 type: string
43 description: Batch size for the complete live package update on all nodes, empty string means apply to all targetted nodes.