blob: a485c3eebead490d6e0b3c47acfe752f2c868f06 [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].
Filip Pytloun260a9502017-03-16 12:47:22 +010039 TARGET_SUBSET_TEST:
40 type: string
41 description: Number of nodes to list package updates, empty string means all targetted nodes.
42 TARGET_SUBSET_LIVE:
43 type: string
44 default: '1'
Jiri Broulik132578e2017-06-02 12:26:25 +020045 description: Number of selected nodes to live apply selected package update.
Filip Pytloun260a9502017-03-16 12:47:22 +010046 TARGET_BATCH_LIVE:
47 type: string
48 description: Batch size for the complete live package update on all nodes, empty string means apply to all targetted nodes.