Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 1 | parameters: |
chnyda | 339ab24 | 2017-11-28 17:31:31 +0100 | [diff] [blame] | 2 | _param: |
| 3 | jenkins_aptly_storages: "local" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 4 | jenkins: |
| 5 | client: |
Jakub Josef | 2da10ef | 2017-03-28 18:20:44 +0200 | [diff] [blame] | 6 | view: |
| 7 | Aptly: |
| 8 | enabled: true |
| 9 | type: CategorizedJobsView |
| 10 | include_regex: "aptly-.*" |
| 11 | categories: |
| 12 | - group_regex: "aptly-.*-nightly-testing" |
| 13 | naming_rule: "Nightly -> Testing" |
| 14 | - group_regex: "aptly-.*-testing-stable" |
| 15 | naming_rule: "Testing -> Stable" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 16 | job_template: |
| 17 | aptly: |
| 18 | name: aptly-{{operation}}-{{dist}}-{{source}}-{{target}} |
| 19 | jobs: |
| 20 | - operation: promote |
| 21 | diff_only: false |
| 22 | dist: trusty |
| 23 | source: nightly |
| 24 | target: testing |
| 25 | - operation: promote |
| 26 | dist: trusty |
| 27 | source: testing |
| 28 | target: stable |
| 29 | - operation: promote |
| 30 | dist: xenial |
| 31 | source: nightly |
| 32 | target: testing |
| 33 | - operation: promote |
| 34 | dist: xenial |
| 35 | source: testing |
| 36 | target: stable |
| 37 | - operation: diff |
| 38 | diff_only: true |
| 39 | dist: trusty |
| 40 | source: nightly |
| 41 | target: testing |
| 42 | - operation: diff |
| 43 | diff_only: true |
| 44 | dist: trusty |
| 45 | source: testing |
| 46 | target: stable |
| 47 | - operation: diff |
| 48 | diff_only: true |
| 49 | dist: xenial |
| 50 | source: nightly |
| 51 | target: testing |
| 52 | - operation: diff |
| 53 | diff_only: true |
| 54 | dist: xenial |
| 55 | source: testing |
| 56 | target: stable |
| 57 | template: |
| 58 | discard: |
| 59 | build: |
| 60 | keep_num: 25 |
| 61 | artifact: |
| 62 | keep_num: 25 |
| 63 | type: workflow-scm |
| 64 | concurrent: false |
| 65 | scm: |
| 66 | type: git |
| 67 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 68 | credentials: "gerrit" |
| 69 | script: aptly-promote-pipeline.groovy |
| 70 | param: |
| 71 | SOURCE: |
| 72 | type: string |
| 73 | default: "{{dist}}/{{source}}" |
| 74 | TARGET: |
| 75 | type: string |
| 76 | default: "{{dist}}/{{target}}" |
| 77 | RECREATE: |
| 78 | type: boolean |
| 79 | default: 'false' |
chnyda | 85f4110 | 2017-09-19 09:36:11 +0200 | [diff] [blame] | 80 | DUMP_PUBLISH: |
| 81 | type: boolean |
| 82 | default: 'true' |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 83 | DIFF_ONLY: |
| 84 | type: boolean |
| 85 | default: '{{diff_only}}' |
| 86 | APTLY_URL: |
| 87 | type: string |
| 88 | default: "${_param:jenkins_aptly_api_url}" |
chnyda | c57c619 | 2017-03-21 13:19:46 +0100 | [diff] [blame] | 89 | COMPONENTS: |
| 90 | type: string |
| 91 | default: "all" |
| 92 | description: "Comma separated list (,)" |
| 93 | PACKAGES: |
| 94 | type: string |
| 95 | default: "all" |
| 96 | description: "Comma separated list (,)" |
chnyda | 339ab24 | 2017-11-28 17:31:31 +0100 | [diff] [blame] | 97 | STORAGES: |
| 98 | type: string |
| 99 | default: "${_param:jenkins_aptly_storages}" |
| 100 | description: "Comma separated list of storage" |