blob: cb2589234899f6aa94c765ca48755f454ad96aaf [file] [log] [blame]
Filip Pytloun260a9502017-03-16 12:47:22 +01001#
2# Jobs to update packages on given Salt master environment
3#
4parameters:
Filip Pytloun260a9502017-03-16 12:47:22 +01005 jenkins:
6 client:
7 job:
8 deploy-update-package:
9 type: workflow-scm
10 concurrent: true
Alexander Evseev4589d712018-08-03 12:36:15 +020011 discard:
12 build:
13 keep_num: 10
14 artifact:
15 keep_num: 10
Filip Pytloun260a9502017-03-16 12:47:22 +010016 display_name: "Deploy - update system package(s)"
17 scm:
18 type: git
19 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010020 branch: "${_param:jenkins_pipelines_branch}"
Filip Pytloun260a9502017-03-16 12:47:22 +010021 credentials: "gerrit"
22 script: update-package.groovy
23 param:
24 SALT_MASTER_URL:
25 type: string
26 default: "${_param:jenkins_salt_api_url}"
27 SALT_MASTER_CREDENTIALS:
28 type: string
29 default: "salt"
30 TARGET_SERVERS:
31 type: string
32 default: "*"
33 description: Salt compound target to match nodes to be updated [*, G@osfamily:debian].
34 TARGET_PACKAGES:
35 type: string
Sam Stoelinga20ef1402017-08-01 18:45:18 -070036 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 +010037 TARGET_SUBSET_TEST:
38 type: string
39 description: Number of nodes to list package updates, empty string means all targetted nodes.
40 TARGET_SUBSET_LIVE:
41 type: string
42 default: '1'
Jiri Broulik132578e2017-06-02 12:26:25 +020043 description: Number of selected nodes to live apply selected package update.
Filip Pytloun260a9502017-03-16 12:47:22 +010044 TARGET_BATCH_LIVE:
45 type: string
46 description: Batch size for the complete live package update on all nodes, empty string means apply to all targetted nodes.