blob: 921e9bc1948824ac1993c102c5255a73f136c7bf [file] [log] [blame]
Filip Pytloun7af94b32017-03-14 18:38:52 +01001parameters:
2 jenkins:
3 client:
Jakub Josef2da10ef2017-03-28 18:20:44 +02004 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 Pytloun7af94b32017-03-14 18:38:52 +010014 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"
66 credentials: "gerrit"
67 script: aptly-promote-pipeline.groovy
68 param:
69 SOURCE:
70 type: string
71 default: "{{dist}}/{{source}}"
72 TARGET:
73 type: string
74 default: "{{dist}}/{{target}}"
75 RECREATE:
76 type: boolean
77 default: 'false'
chnyda85f41102017-09-19 09:36:11 +020078 DUMP_PUBLISH:
79 type: boolean
80 default: 'true'
Filip Pytloun7af94b32017-03-14 18:38:52 +010081 DIFF_ONLY:
82 type: boolean
83 default: '{{diff_only}}'
84 APTLY_URL:
85 type: string
86 default: "${_param:jenkins_aptly_api_url}"
chnydac57c6192017-03-21 13:19:46 +010087 COMPONENTS:
88 type: string
89 default: "all"
90 description: "Comma separated list (,)"
91 PACKAGES:
92 type: string
93 default: "all"
94 description: "Comma separated list (,)"
chnyda339ab242017-11-28 17:31:31 +010095 STORAGES:
96 type: string
97 default: "${_param:jenkins_aptly_storages}"
98 description: "Comma separated list of storage"
Filip Pytlounf2ec0b32017-12-04 15:29:57 +010099 job_template:
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"
122 credentials: "gerrit"
123 script: aptly-promote-pipeline.groovy
124 param:
125 SOURCE:
126 type: string
127 default: "(.*)/{{source}}"
128 TARGET:
129 type: string
130 default: "{0}/{{target}}"
131 RECREATE:
132 type: boolean
133 default: 'false'
134 DUMP_PUBLISH:
135 type: boolean
136 default: 'true'
137 DIFF_ONLY:
138 type: boolean
139 default: '{{diff_only}}'
140 APTLY_URL:
141 type: string
142 default: "${_param:jenkins_aptly_api_url}"
143 COMPONENTS:
144 type: string
145 default: "all"
146 description: "Comma separated list (,)"
147 PACKAGES:
148 type: string
149 default: "all"
150 description: "Comma separated list (,)"
151 STORAGES:
152 type: string
153 default: "${_param:jenkins_aptly_storages}"
154 description: "Comma separated list of storage"