Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 1 | # |
| 2 | # Jobs to update packages on given Salt master environment |
| 3 | # |
| 4 | parameters: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 5 | jenkins: |
| 6 | client: |
| 7 | job: |
| 8 | deploy-update-package: |
| 9 | type: workflow-scm |
| 10 | concurrent: true |
Alexander Evseev | 4589d71 | 2018-08-03 12:36:15 +0200 | [diff] [blame] | 11 | discard: |
| 12 | build: |
| 13 | keep_num: 10 |
| 14 | artifact: |
| 15 | keep_num: 10 |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 16 | display_name: "Deploy - update system package(s)" |
| 17 | scm: |
| 18 | type: git |
| 19 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 20 | branch: "${_param:jenkins_pipelines_branch}" |
Sergey Galkin | 4cf87b9 | 2019-06-19 17:53:07 +0400 | [diff] [blame] | 21 | credentials: ${_param:jenkins_gerrit_credentials} |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 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]. |
Denis Egorenko | 062dd7b | 2019-08-27 13:54:40 +0400 | [diff] [blame^] | 34 | BATCH_SIZE: |
| 35 | type: string |
| 36 | default: '' |
| 37 | description: 'Use batching for states, which targeted for large amount of nodes. Can be Integer or Percentage, e.g 20 or 20%' |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 38 | TARGET_PACKAGES: |
| 39 | type: string |
Sam Stoelinga | 20ef140 | 2017-08-01 18:45:18 -0700 | [diff] [blame] | 40 | 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]. |