blob: e6f0744075936cae9a31ae80f5fe2fe0dad4b4da [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:
Konrad Bańka67a1ef12019-09-09 17:02:25 +02005 #
6 # job template for verifying gerrit changeset by shell script
7 #
8 # Required Variables:
9 # project-name: name of project
10 # area: area of project covered with this verification job
11 # project: name of scm repository to work on
12 # stream: name of stream used (set the same as branch if you're not sure)
13 # branch: git branch to work on
14 # script: build script to execute
15 # Optional Variables:
16 # pattern: trigger job only if modification covered file in pattern
17 # build-node: label(flavor) of jenkins slave
18 name: '{project-name}-{stream}-{area}-verify-shell'
19 node: '{build-node}'
20 type: freestyle
21
22 pattern: '**'
23
24 parameters:
25 - lf-infra-parameters:
26 branch: '{branch}'
27 project: '{project}'
28 stream: '{stream}'
29 lftools-version: '{lftools-version}'
30
31 scm:
32 - gerrit-trigger-scm:
33 refspec: '$GERRIT_REFSPEC'
34 submodule-recursive: '{submodule-recursive}'
35 choosing-strategy: 'gerrit'
36
37 triggers:
38 - gerrit-trigger-patch-submitted:
39 server: '{server-name}'
40 project: '{project}'
41 branch: '{branch}'
42 files: '{pattern}'
43
44 builders:
45 - shell: '{script}'
46
47 publishers:
48 - lf-infra-publish
49
50- job-template:
lj1412d0704842017-02-18 21:46:11 +000051 # Job template for merging a submission. triggered on
52 # gerrit-trigger-patch-merged, does scm, mvn with passed-in goals, then
53 # run script
lj1412f75ed992017-02-17 22:21:06 +000054 # Required Variables:
55 # branch: git branch
lj1412f75ed992017-02-17 22:21:06 +000056 # script: build script to execute
57 # mvn-settings: settings file for this specific job
lj1412d0704842017-02-18 21:46:11 +000058 # mvn-goals: space separated list of maven build goals (--version
59 # for noop, clean deploy for deploy [snapshot])
lj1412f75ed992017-02-17 22:21:06 +000060 name: '{project-name}-{stream}-merge-scm-mvn-script'
61
62 project-type: freestyle
lj1412d0704842017-02-18 21:46:11 +000063 node: 'ubuntu1604-docker-8c-8g'
lj1412f75ed992017-02-17 22:21:06 +000064
65 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070066 - infra-properties:
lj1412f75ed992017-02-17 22:21:06 +000067 build-days-to-keep: '{build-days-to-keep}'
68
69 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070070 - infra-parameters:
lj1412f75ed992017-02-17 22:21:06 +000071 project: '{project}'
72 branch: '{branch}'
73 refspec: 'refs/heads/{branch}'
74 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -080075 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080076 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +000077
78 scm:
79 - gerrit-trigger-scm:
80 refspec: ''
81 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050082 submodule-recursive: '{submodule-recursive}'
lj1412f75ed992017-02-17 22:21:06 +000083
84 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070085 - infra-wrappers:
lj1412f75ed992017-02-17 22:21:06 +000086 build-timeout: '{build-timeout}'
87
88 triggers:
89 - gerrit-trigger-patch-merged:
90 server: '{server-name}'
91 project: '{project}'
92 branch: '{branch}'
93 files: '**'
94
95 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -070096 - lf-infra-pre-build
lj1412f75ed992017-02-17 22:21:06 +000097 - provide-maven-settings:
98 global-settings-file: 'global-settings'
99 settings-file: '{mvn-settings}'
100 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800101 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000102 goals: '{mvn-goals}'
103 settings: '{mvn-settings}'
104 settings-type: cfp
105 global-settings: 'global-settings'
106 global-settings-type: cfp
107 - docker-login
108 - shell: '{script}'
109
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700110 publishers:
111 - infra-shiplogs:
112 maven-version: '{maven-version}'
lj1412f75ed992017-02-17 22:21:06 +0000113
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800114
115- job-template:
116 # Job template for 2 scm and script trigger
117 #
118 # Required Variables:
119 # branch: git branch
120 # build-node: what build node to run on
121 # script: build script to execute
122 # extra-project: extra gerrit project to checkout
123 # extra-refspec: refspec for the extra project
124 # extra-branch: branch to checkout for the extra project
125 # checkout-dir: directory to checkout the extra project to
126 # DO NOT SET THIS TO anything that translates to
127 # $WORKSPACE as it will destroy the initial
128 # project checkout
129
Andrew Grimbergec9a1bf2017-02-16 09:56:57 -0800130 name: '{project-name}-{stream}-two-scm-verify-script'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800131
132 project-type: freestyle
133 concurrent: true
134 node: '{build-node}'
135
136 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700137 - infra-properties:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800138 build-days-to-keep: '{build-days-to-keep}'
139
140 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700141 - infra-parameters:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800142 project: '{project}'
143 branch: '{branch}'
144 refspec: 'refs/heads/{branch}'
145 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -0800146 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800147 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800148
149 scm:
150 - gerrit-trigger-scm:
151 refspec: '$GERRIT_REFSPEC'
152 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500153 submodule-recursive: '{submodule-recursive}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800154 - git-extra-project:
155 project: '{extra-project}'
156 refspec: '{extra-refspec}'
157 branch: '{extra-branch}'
158 checkout-dir: '{checkout-dir}'
159
160 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700161 - infra-wrappers:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800162 build-timeout: '{build-timeout}'
163
164 triggers:
165 - gerrit-trigger-patch-submitted:
166 server: '{server-name}'
167 project: '{project}'
168 branch: '{branch}'
169 files: '**'
170
171 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700172 - lf-infra-pre-build
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800173 - provide-maven-settings:
174 global-settings-file: 'global-settings'
175 settings-file: '{mvn-settings}'
176 # make sure maven gets installed / setup
177 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800178 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800179 goals: '--version'
180 settings: '{mvn-settings}'
181 settings-type: cfp
182 global-settings: 'global-settings'
183 global-settings-type: cfp
184 - shell: '{script}'
185
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700186 publishers:
187 - infra-shiplogs:
188 maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500189
190
talasila714fdfa2017-02-19 09:30:55 -0500191
192# vim: sw=2 ts=2 sts=2 et :
193
194- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400195 # Job template for two scm and script trigger - for docker merge
talasila714fdfa2017-02-19 09:30:55 -0500196 #
197 # Required Variables:
198 # branch: git branch
199 # build-node: what build node to run on
200 # script: build script to execute
201
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400202 name: '{project-name}-{stream}-two-scm-merge-docker-script'
talasila714fdfa2017-02-19 09:30:55 -0500203
204 project-type: freestyle
205 concurrent: true
206 node: '{build-node}'
207
208 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700209 - infra-properties:
talasila714fdfa2017-02-19 09:30:55 -0500210 build-days-to-keep: '{build-days-to-keep}'
211
212 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700213 - infra-parameters:
talasila714fdfa2017-02-19 09:30:55 -0500214 project: '{project}'
215 branch: '{branch}'
216 refspec: 'refs/heads/{branch}'
217 artifacts: '{archive-artifacts}'
218 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800219 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500220
221 scm:
222 - gerrit-trigger-scm:
223 refspec: ''
224 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500225 submodule-recursive: '{submodule-recursive}'
talasila596787c2017-02-19 20:47:56 -0500226 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400227 project: '{extra-project}'
228 refspec: '{extra-refspec}'
229 branch: '{extra-branch}'
230 checkout-dir: '{checkout-dir}'
talasila714fdfa2017-02-19 09:30:55 -0500231
232 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700233 - infra-wrappers:
talasila714fdfa2017-02-19 09:30:55 -0500234 build-timeout: '{build-timeout}'
235
236 triggers:
talasila714fdfa2017-02-19 09:30:55 -0500237 - gerrit-trigger-patch-merged:
238 server: '{server-name}'
239 project: '{project}'
240 branch: '{branch}'
241 files: '**'
242
243 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700244 - lf-infra-pre-build
talasila714fdfa2017-02-19 09:30:55 -0500245 - provide-maven-settings:
246 global-settings-file: 'global-settings'
247 settings-file: '{mvn-settings}'
248 - docker-login
249 # make sure maven gets installed / setup
250 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800251 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500252 goals: '--version'
253 settings: '{mvn-settings}'
254 settings-type: cfp
255 global-settings: 'global-settings'
256 global-settings-type: cfp
257 - shell: '{script}'
258
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700259 publishers:
260 - infra-shiplogs:
261 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500262
263- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400264 # Job template for two scm and script trigger - for docker daily release
talasilaa20f8bf2017-02-22 10:49:54 -0500265 #
266 # Required Variables:
267 # branch: git branch
268 # build-node: what build node to run on
269 # script: build script to execute
270
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400271 name: '{project-name}-{stream}-two-scm-release-docker-script-manual'
talasilaa20f8bf2017-02-22 10:49:54 -0500272
273 project-type: freestyle
274 concurrent: true
275 node: '{build-node}'
276
277 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700278 - infra-properties:
talasilaa20f8bf2017-02-22 10:49:54 -0500279 build-days-to-keep: '{build-days-to-keep}'
280
281 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700282 - infra-parameters:
talasilaa20f8bf2017-02-22 10:49:54 -0500283 project: '{project}'
284 branch: '{branch}'
285 refspec: 'refs/heads/{branch}'
286 artifacts: '{archive-artifacts}'
287 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800288 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500289
290 scm:
291 - gerrit-trigger-scm:
292 refspec: ''
293 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500294 submodule-recursive: '{submodule-recursive}'
talasilaa20f8bf2017-02-22 10:49:54 -0500295 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400296 project: '{extra-project}'
297 refspec: '{extra-refspec}'
298 branch: '{extra-branch}'
299 checkout-dir: '{checkout-dir}'
talasilaa20f8bf2017-02-22 10:49:54 -0500300
301 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700302 - infra-wrappers:
talasilaa20f8bf2017-02-22 10:49:54 -0500303 build-timeout: '{build-timeout}'
304
305 triggers:
talasilaa20f8bf2017-02-22 10:49:54 -0500306 - gerrit-trigger-release-manually:
307 server: '{server-name}'
308 project: '{project}'
309 branch: '{branch}'
310
311 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700312 - lf-infra-pre-build
talasilaa20f8bf2017-02-22 10:49:54 -0500313 - provide-maven-settings:
314 global-settings-file: 'global-settings'
315 settings-file: '{mvn-settings}'
316 - docker-login
317 # make sure maven gets installed / setup
318 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800319 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500320 goals: '--version'
321 settings: '{mvn-settings}'
322 settings-type: cfp
323 global-settings: 'global-settings'
324 global-settings-type: cfp
325 - shell: '{script}'
326
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700327 publishers:
328 - infra-shiplogs:
329 maven-version: '{maven-version}'
JulienBea247e9f2017-03-08 13:07:21 -0800330
331- job-template:
332 # 1. PULL the desired image
333 # 2. TAG it to the desired release name
334 # 3. PUSH the newly tagged image on release repo
335
336 name: '{project-name}-docker-image-blessing'
337
338 project-type: freestyle
339 concurrent: true
Jeremy Phelps5eb267a2017-03-14 10:53:46 -0500340 node: 'ubuntu1604-docker-8c-8g'
JulienBea247e9f2017-03-08 13:07:21 -0800341
342 parameters:
343 - string:
JulienBed45ff952017-03-28 02:54:51 -0700344 name: X
345 description: "x VERSION of the STAGING image to bless into this RELEASE VERSION
346 Example : 1"
JulienBea247e9f2017-03-08 13:07:21 -0800347 - string:
JulienBed45ff952017-03-28 02:54:51 -0700348 name: Y
349 description: "y VERSION of the STAGING image to bless into this RELEASE VERSION
350 Example : 2"
351 - string:
352 name: Z
353 description: "z VERSION of the RELEASE VERSION
354 Example : 3"
JulienBea247e9f2017-03-08 13:07:21 -0800355 - string:
356 name: PROJECT
357 default: '{project}'
358
359 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700360 - infra-properties:
JulienBea247e9f2017-03-08 13:07:21 -0800361 build-days-to-keep: '{build-days-to-keep}'
362
363 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700364 - infra-wrappers:
JulienBea247e9f2017-03-08 13:07:21 -0800365 build-timeout: '{build-timeout}'
366
367 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700368 - lf-infra-pre-build
JulienBea247e9f2017-03-08 13:07:21 -0800369 - provide-maven-settings:
370 global-settings-file: 'global-settings'
371 settings-file: '{mvn-settings}'
372 - docker-login
Jeremy Phelps5eb267a2017-03-14 10:53:46 -0500373 - shell: !include-raw: include-docker-blessing.sh
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700374
375 publishers:
376 - infra-shiplogs:
377 maven-version: '{maven-version}'