blob: acf1f6284200fde378c2d409b7d117996fb9a8ef [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
Alexander Evseev4589d712018-08-03 12:36:15 +020013 discard:
14 build:
15 keep_num: 10
16 artifact:
17 keep_num: 10
Filip Pytloun260a9502017-03-16 12:47:22 +010018 display_name: "Deploy - update system package(s)"
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}"
Filip Pytloun260a9502017-03-16 12:47:22 +010023 credentials: "gerrit"
24 script: update-package.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 TARGET_SERVERS:
33 type: string
34 default: "*"
35 description: Salt compound target to match nodes to be updated [*, G@osfamily:debian].
36 TARGET_PACKAGES:
37 type: string
Sam Stoelinga20ef1402017-08-01 18:45:18 -070038 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].