blob: 9264bc9e5cc7b93443cd260e70e7199510f0e55c [file] [log] [blame]
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -08001---
2# vim: sw=2 ts=2 sts=2 et :
3
lj1412f75ed992017-02-17 22:21:06 +00004- job-template:
lj1412d0704842017-02-18 21:46:11 +00005 # Job template for merging a submission. triggered on
6 # gerrit-trigger-patch-merged, does scm, mvn with passed-in goals, then
7 # run script
lj1412f75ed992017-02-17 22:21:06 +00008 # Required Variables:
9 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +000010 # script: build script to execute
11 # mvn-settings: settings file for this specific job
lj1412d0704842017-02-18 21:46:11 +000012 # mvn-goals: space separated list of maven build goals (--version
13 # for noop, clean deploy for deploy [snapshot])
lj1412f75ed992017-02-17 22:21:06 +000014 name: '{project-name}-{stream}-merge-scm-mvn-script'
15
16 project-type: freestyle
lj1412d0704842017-02-18 21:46:11 +000017 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +000018
19 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070020 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +000021 build-days-to-keep: '{build-days-to-keep}'
22
23 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070024 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +000025 project: '{project}'
26 branch: '{branch}'
27 refspec: 'refs/heads/{branch}'
28 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -080029 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080030 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000031
32 scm:
33 - gerrit-trigger-scm:
34 refspec: ''
35 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050036 submodule-recursive: '{submodule-recursive}'
lj1412f75ed992017-02-17 22:21:06 +000037
38 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070039 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +000040 build-timeout: '{build-timeout}'
41
42 triggers:
43 - gerrit-trigger-patch-merged:
44 server: '{server-name}'
45 project: '{project}'
46 branch: '{branch}'
47 files: '**'
48
49 builders:
50 - provide-maven-settings:
51 global-settings-file: 'global-settings'
52 settings-file: '{mvn-settings}'
53 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -080054 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000055 goals: '{mvn-goals}'
56 settings: '{mvn-settings}'
57 settings-type: cfp
58 global-settings: 'global-settings'
59 global-settings-type: cfp
60 - docker-login
61 - shell: '{script}'
62
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070063 publishers:
64 - infra-shiplogs:
65 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000066
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080067
68- job-template:
69 # Job template for 2 scm and script trigger
70 #
71 # Required Variables:
72 # branch: git branch
73 # build-node: what build node to run on
74 # script: build script to execute
75 # extra-project: extra gerrit project to checkout
76 # extra-refspec: refspec for the extra project
77 # extra-branch: branch to checkout for the extra project
78 # checkout-dir: directory to checkout the extra project to
79 # DO NOT SET THIS TO anything that translates to
80 # $WORKSPACE as it will destroy the initial
81 # project checkout
82
Andrew Grimbergec9a1bf2017-02-16 09:56:57 -080083 name: '{project-name}-{stream}-two-scm-verify-script'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080084
85 project-type: freestyle
86 concurrent: true
87 node: '{build-node}'
88
89 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070090 - infra-properties:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080091 build-days-to-keep: '{build-days-to-keep}'
92
93 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070094 - infra-parameters:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080095 project: '{project}'
96 branch: '{branch}'
97 refspec: 'refs/heads/{branch}'
98 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -080099 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800100 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800101
102 scm:
103 - gerrit-trigger-scm:
104 refspec: '$GERRIT_REFSPEC'
105 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500106 submodule-recursive: '{submodule-recursive}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800107 - git-extra-project:
108 project: '{extra-project}'
109 refspec: '{extra-refspec}'
110 branch: '{extra-branch}'
111 checkout-dir: '{checkout-dir}'
112
113 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700114 - infra-wrappers:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800115 build-timeout: '{build-timeout}'
116
117 triggers:
118 - gerrit-trigger-patch-submitted:
119 server: '{server-name}'
120 project: '{project}'
121 branch: '{branch}'
122 files: '**'
123
124 builders:
125 - provide-maven-settings:
126 global-settings-file: 'global-settings'
127 settings-file: '{mvn-settings}'
128 # make sure maven gets installed / setup
129 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800130 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800131 goals: '--version'
132 settings: '{mvn-settings}'
133 settings-type: cfp
134 global-settings: 'global-settings'
135 global-settings-type: cfp
136 - shell: '{script}'
137
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700138 publishers:
139 - infra-shiplogs:
140 maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500141
142
talasila714fdfa2017-02-19 09:30:55 -0500143
144# vim: sw=2 ts=2 sts=2 et :
145
146- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400147 # Job template for two scm and script trigger - for docker merge
talasila714fdfa2017-02-19 09:30:55 -0500148 #
149 # Required Variables:
150 # branch: git branch
151 # build-node: what build node to run on
152 # script: build script to execute
153
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400154 name: '{project-name}-{stream}-two-scm-merge-docker-script'
talasila714fdfa2017-02-19 09:30:55 -0500155
156 project-type: freestyle
157 concurrent: true
158 node: '{build-node}'
159
160 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700161 - infra-properties:
talasila714fdfa2017-02-19 09:30:55 -0500162 build-days-to-keep: '{build-days-to-keep}'
163
164 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700165 - infra-parameters:
talasila714fdfa2017-02-19 09:30:55 -0500166 project: '{project}'
167 branch: '{branch}'
168 refspec: 'refs/heads/{branch}'
169 artifacts: '{archive-artifacts}'
170 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800171 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500172
173 scm:
174 - gerrit-trigger-scm:
175 refspec: ''
176 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500177 submodule-recursive: '{submodule-recursive}'
talasila596787c2017-02-19 20:47:56 -0500178 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400179 project: '{extra-project}'
180 refspec: '{extra-refspec}'
181 branch: '{extra-branch}'
182 checkout-dir: '{checkout-dir}'
talasila714fdfa2017-02-19 09:30:55 -0500183
184 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700185 - infra-wrappers:
talasila714fdfa2017-02-19 09:30:55 -0500186 build-timeout: '{build-timeout}'
187
188 triggers:
talasila714fdfa2017-02-19 09:30:55 -0500189 - gerrit-trigger-patch-merged:
190 server: '{server-name}'
191 project: '{project}'
192 branch: '{branch}'
193 files: '**'
194
195 builders:
196 - provide-maven-settings:
197 global-settings-file: 'global-settings'
198 settings-file: '{mvn-settings}'
199 - docker-login
200 # make sure maven gets installed / setup
201 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800202 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500203 goals: '--version'
204 settings: '{mvn-settings}'
205 settings-type: cfp
206 global-settings: 'global-settings'
207 global-settings-type: cfp
208 - shell: '{script}'
209
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700210 publishers:
211 - infra-shiplogs:
212 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500213
214- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400215 # Job template for two scm and script trigger - for docker daily release
talasilaa20f8bf2017-02-22 10:49:54 -0500216 #
217 # Required Variables:
218 # branch: git branch
219 # build-node: what build node to run on
220 # script: build script to execute
221
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400222 name: '{project-name}-{stream}-two-scm-release-docker-script-manual'
talasilaa20f8bf2017-02-22 10:49:54 -0500223
224 project-type: freestyle
225 concurrent: true
226 node: '{build-node}'
227
228 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700229 - infra-properties:
talasilaa20f8bf2017-02-22 10:49:54 -0500230 build-days-to-keep: '{build-days-to-keep}'
231
232 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700233 - infra-parameters:
talasilaa20f8bf2017-02-22 10:49:54 -0500234 project: '{project}'
235 branch: '{branch}'
236 refspec: 'refs/heads/{branch}'
237 artifacts: '{archive-artifacts}'
238 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800239 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500240
241 scm:
242 - gerrit-trigger-scm:
243 refspec: ''
244 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500245 submodule-recursive: '{submodule-recursive}'
talasilaa20f8bf2017-02-22 10:49:54 -0500246 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400247 project: '{extra-project}'
248 refspec: '{extra-refspec}'
249 branch: '{extra-branch}'
250 checkout-dir: '{checkout-dir}'
talasilaa20f8bf2017-02-22 10:49:54 -0500251
252 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700253 - infra-wrappers:
talasilaa20f8bf2017-02-22 10:49:54 -0500254 build-timeout: '{build-timeout}'
255
256 triggers:
talasilaa20f8bf2017-02-22 10:49:54 -0500257 - gerrit-trigger-release-manually:
258 server: '{server-name}'
259 project: '{project}'
260 branch: '{branch}'
261
262 builders:
263 - provide-maven-settings:
264 global-settings-file: 'global-settings'
265 settings-file: '{mvn-settings}'
266 - docker-login
267 # make sure maven gets installed / setup
268 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800269 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500270 goals: '--version'
271 settings: '{mvn-settings}'
272 settings-type: cfp
273 global-settings: 'global-settings'
274 global-settings-type: cfp
275 - shell: '{script}'
276
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700277 publishers:
278 - infra-shiplogs:
279 maven-version: '{maven-version}'
JulienBea247e9f2017-03-08 13:07:21 -0800280
281- job-template:
282 # 1. PULL the desired image
283 # 2. TAG it to the desired release name
284 # 3. PUSH the newly tagged image on release repo
285
286 name: '{project-name}-docker-image-blessing'
287
288 project-type: freestyle
289 concurrent: true
Jeremy Phelps5eb267a2017-03-14 10:53:46 -0500290 node: 'ubuntu1604-docker-8c-8g'
JulienBea247e9f2017-03-08 13:07:21 -0800291
292 parameters:
293 - string:
JulienBed45ff952017-03-28 02:54:51 -0700294 name: X
295 description: "x VERSION of the STAGING image to bless into this RELEASE VERSION
296 Example : 1"
JulienBea247e9f2017-03-08 13:07:21 -0800297 - string:
JulienBed45ff952017-03-28 02:54:51 -0700298 name: Y
299 description: "y VERSION of the STAGING image to bless into this RELEASE VERSION
300 Example : 2"
301 - string:
302 name: Z
303 description: "z VERSION of the RELEASE VERSION
304 Example : 3"
JulienBea247e9f2017-03-08 13:07:21 -0800305 - string:
306 name: PROJECT
307 default: '{project}'
308
309 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700310 - infra-properties:
JulienBea247e9f2017-03-08 13:07:21 -0800311 build-days-to-keep: '{build-days-to-keep}'
312
313 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700314 - infra-wrappers:
JulienBea247e9f2017-03-08 13:07:21 -0800315 build-timeout: '{build-timeout}'
316
317 builders:
318 - provide-maven-settings:
319 global-settings-file: 'global-settings'
320 settings-file: '{mvn-settings}'
321 - docker-login
Jeremy Phelps5eb267a2017-03-14 10:53:46 -0500322 - shell: !include-raw: include-docker-blessing.sh
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700323
324 publishers:
325 - infra-shiplogs:
326 maven-version: '{maven-version}'