blob: 2ac90bbcf8791d06ac200007190d8a0e4aa1d6d4 [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"
Jakub Josef7938b532017-12-12 18:02:03 +010066 branch: "${_param:jenkins_pipelines_branch}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010067 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'
chnyda85f41102017-09-19 09:36:11 +020079 DUMP_PUBLISH:
80 type: boolean
81 default: 'true'
Filip Pytloun7af94b32017-03-14 18:38:52 +010082 DIFF_ONLY:
83 type: boolean
84 default: '{{diff_only}}'
85 APTLY_URL:
86 type: string
87 default: "${_param:jenkins_aptly_api_url}"
chnydac57c6192017-03-21 13:19:46 +010088 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 (,)"
chnyda339ab242017-11-28 17:31:31 +010096 STORAGES:
97 type: string
98 default: "${_param:jenkins_aptly_storages}"
99 description: "Comma separated list of storage"
Filip Pytlounf2ec0b32017-12-04 15:29:57 +0100100 job_template:
101 aptly-all:
102 name: aptly-{{operation}}-all-{{source}}-{{target}}
103 jobs:
104 - operation: promote
105 diff_only: false
106 source: nightly
107 target: testing
108 - operation: promote
109 diff_only: false
110 source: testing
111 target: stable
112 template:
113 discard:
114 build:
115 keep_num: 25
116 artifact:
117 keep_num: 25
118 type: workflow-scm
119 concurrent: false
120 scm:
121 type: git
122 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +0100123 branch: "${_param:jenkins_pipelines_branch}"
Filip Pytlounf2ec0b32017-12-04 15:29:57 +0100124 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"