Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 1 | parameters: |
| 2 | jenkins: |
| 3 | client: |
Jakub Josef | 2da10ef | 2017-03-28 18:20:44 +0200 | [diff] [blame] | 4 | view: |
| 5 | Aptly: |
| 6 | enabled: true |
| 7 | type: CategorizedJobsView |
| 8 | include_regex: "aptly-.*" |
| 9 | categories: |
| 10 | - group_regex: "aptly-.*-nightly-testing" |
| 11 | naming_rule: "Nightly -> Testing" |
| 12 | - group_regex: "aptly-.*-testing-stable" |
| 13 | naming_rule: "Testing -> Stable" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 14 | job_template: |
| 15 | aptly: |
| 16 | name: aptly-{{operation}}-{{dist}}-{{source}}-{{target}} |
| 17 | jobs: |
| 18 | - operation: promote |
| 19 | diff_only: false |
| 20 | dist: trusty |
| 21 | source: nightly |
| 22 | target: testing |
| 23 | - operation: promote |
| 24 | dist: trusty |
| 25 | source: testing |
| 26 | target: stable |
| 27 | - operation: promote |
| 28 | dist: xenial |
| 29 | source: nightly |
| 30 | target: testing |
| 31 | - operation: promote |
| 32 | dist: xenial |
| 33 | source: testing |
| 34 | target: stable |
| 35 | - operation: diff |
| 36 | diff_only: true |
| 37 | dist: trusty |
| 38 | source: nightly |
| 39 | target: testing |
| 40 | - operation: diff |
| 41 | diff_only: true |
| 42 | dist: trusty |
| 43 | source: testing |
| 44 | target: stable |
| 45 | - operation: diff |
| 46 | diff_only: true |
| 47 | dist: xenial |
| 48 | source: nightly |
| 49 | target: testing |
| 50 | - operation: diff |
| 51 | diff_only: true |
| 52 | dist: xenial |
| 53 | source: testing |
| 54 | target: stable |
| 55 | template: |
| 56 | discard: |
| 57 | build: |
| 58 | keep_num: 25 |
| 59 | artifact: |
| 60 | keep_num: 25 |
| 61 | type: workflow-scm |
| 62 | concurrent: false |
| 63 | scm: |
| 64 | type: git |
| 65 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 66 | branch: "${_param:jenkins_pipelines_branch}" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 67 | credentials: "gerrit" |
| 68 | script: aptly-promote-pipeline.groovy |
| 69 | param: |
| 70 | SOURCE: |
| 71 | type: string |
| 72 | default: "{{dist}}/{{source}}" |
| 73 | TARGET: |
| 74 | type: string |
| 75 | default: "{{dist}}/{{target}}" |
| 76 | RECREATE: |
| 77 | type: boolean |
| 78 | default: 'false' |
chnyda | 85f4110 | 2017-09-19 09:36:11 +0200 | [diff] [blame] | 79 | DUMP_PUBLISH: |
| 80 | type: boolean |
| 81 | default: 'true' |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 82 | DIFF_ONLY: |
| 83 | type: boolean |
| 84 | default: '{{diff_only}}' |
| 85 | APTLY_URL: |
| 86 | type: string |
| 87 | default: "${_param:jenkins_aptly_api_url}" |
chnyda | c57c619 | 2017-03-21 13:19:46 +0100 | [diff] [blame] | 88 | COMPONENTS: |
| 89 | type: string |
| 90 | default: "all" |
| 91 | description: "Comma separated list (,)" |
| 92 | PACKAGES: |
| 93 | type: string |
| 94 | default: "all" |
| 95 | description: "Comma separated list (,)" |
chnyda | 339ab24 | 2017-11-28 17:31:31 +0100 | [diff] [blame] | 96 | STORAGES: |
| 97 | type: string |
| 98 | default: "${_param:jenkins_aptly_storages}" |
| 99 | description: "Comma separated list of storage" |
Filip Pytloun | f2ec0b3 | 2017-12-04 15:29:57 +0100 | [diff] [blame] | 100 | aptly-all: |
| 101 | name: aptly-{{operation}}-all-{{source}}-{{target}} |
| 102 | jobs: |
| 103 | - operation: promote |
| 104 | diff_only: false |
| 105 | source: nightly |
| 106 | target: testing |
| 107 | - operation: promote |
| 108 | diff_only: false |
| 109 | source: testing |
| 110 | target: stable |
| 111 | template: |
| 112 | discard: |
| 113 | build: |
| 114 | keep_num: 25 |
| 115 | artifact: |
| 116 | keep_num: 25 |
| 117 | type: workflow-scm |
| 118 | concurrent: false |
| 119 | scm: |
| 120 | type: git |
| 121 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 122 | branch: "${_param:jenkins_pipelines_branch}" |
Filip Pytloun | f2ec0b3 | 2017-12-04 15:29:57 +0100 | [diff] [blame] | 123 | credentials: "gerrit" |
| 124 | script: aptly-promote-pipeline.groovy |
| 125 | param: |
| 126 | SOURCE: |
| 127 | type: string |
| 128 | default: "(.*)/{{source}}" |
| 129 | TARGET: |
| 130 | type: string |
| 131 | default: "{0}/{{target}}" |
| 132 | RECREATE: |
| 133 | type: boolean |
| 134 | default: 'false' |
| 135 | DUMP_PUBLISH: |
| 136 | type: boolean |
| 137 | default: 'true' |
| 138 | DIFF_ONLY: |
| 139 | type: boolean |
| 140 | default: '{{diff_only}}' |
| 141 | APTLY_URL: |
| 142 | type: string |
| 143 | default: "${_param:jenkins_aptly_api_url}" |
| 144 | COMPONENTS: |
| 145 | type: string |
| 146 | default: "all" |
| 147 | description: "Comma separated list (,)" |
| 148 | PACKAGES: |
| 149 | type: string |
| 150 | default: "all" |
| 151 | description: "Comma separated list (,)" |
| 152 | STORAGES: |
| 153 | type: string |
| 154 | default: "${_param:jenkins_aptly_storages}" |
| 155 | description: "Comma separated list of storage" |