blob: d70e5972da4562a523da3a3ad2efc78f90cca82a [file] [log] [blame]
Filip Pytloun7af94b32017-03-14 18:38:52 +01001parameters:
chnyda339ab242017-11-28 17:31:31 +01002 _param:
3 jenkins_aptly_storages: "local"
Filip Pytloun7af94b32017-03-14 18:38:52 +01004 jenkins:
5 client:
Jakub Josef2da10ef2017-03-28 18:20:44 +02006 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 Pytloun7af94b32017-03-14 18:38:52 +010016 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'
chnyda85f41102017-09-19 09:36:11 +020080 DUMP_PUBLISH:
81 type: boolean
82 default: 'true'
Filip Pytloun7af94b32017-03-14 18:38:52 +010083 DIFF_ONLY:
84 type: boolean
85 default: '{{diff_only}}'
86 APTLY_URL:
87 type: string
88 default: "${_param:jenkins_aptly_api_url}"
chnydac57c6192017-03-21 13:19:46 +010089 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 (,)"
chnyda339ab242017-11-28 17:31:31 +010097 STORAGES:
98 type: string
99 default: "${_param:jenkins_aptly_storages}"
100 description: "Comma separated list of storage"
Filip Pytlounf2ec0b32017-12-04 15:29:57 +0100101 job_template:
102 aptly-all:
103 name: aptly-{{operation}}-all-{{source}}-{{target}}
104 jobs:
105 - operation: promote
106 diff_only: false
107 source: nightly
108 target: testing
109 - operation: promote
110 diff_only: false
111 source: testing
112 target: stable
113 template:
114 discard:
115 build:
116 keep_num: 25
117 artifact:
118 keep_num: 25
119 type: workflow-scm
120 concurrent: false
121 scm:
122 type: git
123 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
124 credentials: "gerrit"
125 script: aptly-promote-pipeline.groovy
126 param:
127 SOURCE:
128 type: string
129 default: "(.*)/{{source}}"
130 TARGET:
131 type: string
132 default: "{0}/{{target}}"
133 RECREATE:
134 type: boolean
135 default: 'false'
136 DUMP_PUBLISH:
137 type: boolean
138 default: 'true'
139 DIFF_ONLY:
140 type: boolean
141 default: '{{diff_only}}'
142 APTLY_URL:
143 type: string
144 default: "${_param:jenkins_aptly_api_url}"
145 COMPONENTS:
146 type: string
147 default: "all"
148 description: "Comma separated list (,)"
149 PACKAGES:
150 type: string
151 default: "all"
152 description: "Comma separated list (,)"
153 STORAGES:
154 type: string
155 default: "${_param:jenkins_aptly_storages}"
156 description: "Comma separated list of storage"