blob: 831c77049227ca293f6710897c19c5d1c016d8d6 [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
Konrad Bańkac5b87222020-04-22 14:00:37 +020021 concurrent: true
Konrad Bańka67a1ef12019-09-09 17:02:25 +020022
23 pattern: '**'
24
25 parameters:
26 - lf-infra-parameters:
27 branch: '{branch}'
28 project: '{project}'
29 stream: '{stream}'
30 lftools-version: '{lftools-version}'
31
32 scm:
33 - gerrit-trigger-scm:
34 refspec: '$GERRIT_REFSPEC'
35 submodule-recursive: '{submodule-recursive}'
36 choosing-strategy: 'gerrit'
37
38 triggers:
39 - gerrit-trigger-patch-submitted:
40 server: '{server-name}'
41 project: '{project}'
42 branch: '{branch}'
43 files: '{pattern}'
44
Konrad Bańkacd7d09e2020-04-21 18:20:23 +020045 wrappers:
46 - infra-wrappers:
47 build-timeout: '{build-timeout}'
48
Konrad Bańka67a1ef12019-09-09 17:02:25 +020049 builders:
50 - shell: '{script}'
51
52 publishers:
53 - lf-infra-publish
54
55- job-template:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080056 # Job template for 2 scm and script trigger
57 #
58 # Required Variables:
59 # branch: git branch
60 # build-node: what build node to run on
61 # script: build script to execute
62 # extra-project: extra gerrit project to checkout
63 # extra-refspec: refspec for the extra project
64 # extra-branch: branch to checkout for the extra project
65 # checkout-dir: directory to checkout the extra project to
66 # DO NOT SET THIS TO anything that translates to
67 # $WORKSPACE as it will destroy the initial
68 # project checkout
69
Andrew Grimbergec9a1bf2017-02-16 09:56:57 -080070 name: '{project-name}-{stream}-two-scm-verify-script'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080071
72 project-type: freestyle
73 concurrent: true
74 node: '{build-node}'
75
76 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070077 - infra-properties:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080078 build-days-to-keep: '{build-days-to-keep}'
79
80 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070081 - infra-parameters:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080082 project: '{project}'
83 branch: '{branch}'
84 refspec: 'refs/heads/{branch}'
85 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -080086 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080087 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080088
89 scm:
90 - gerrit-trigger-scm:
91 refspec: '$GERRIT_REFSPEC'
92 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050093 submodule-recursive: '{submodule-recursive}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080094 - git-extra-project:
95 project: '{extra-project}'
96 refspec: '{extra-refspec}'
97 branch: '{extra-branch}'
98 checkout-dir: '{checkout-dir}'
99
100 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700101 - infra-wrappers:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800102 build-timeout: '{build-timeout}'
103
104 triggers:
105 - gerrit-trigger-patch-submitted:
106 server: '{server-name}'
107 project: '{project}'
108 branch: '{branch}'
109 files: '**'
110
111 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700112 - lf-infra-pre-build
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800113 - provide-maven-settings:
114 global-settings-file: 'global-settings'
115 settings-file: '{mvn-settings}'
116 # make sure maven gets installed / setup
117 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800118 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800119 goals: '--version'
120 settings: '{mvn-settings}'
121 settings-type: cfp
122 global-settings: 'global-settings'
123 global-settings-type: cfp
124 - shell: '{script}'
125
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700126 publishers:
127 - infra-shiplogs:
128 maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500129
130
talasila714fdfa2017-02-19 09:30:55 -0500131
132# vim: sw=2 ts=2 sts=2 et :
133
134- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400135 # Job template for two scm and script trigger - for docker merge
talasila714fdfa2017-02-19 09:30:55 -0500136 #
137 # Required Variables:
138 # branch: git branch
139 # build-node: what build node to run on
140 # script: build script to execute
141
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400142 name: '{project-name}-{stream}-two-scm-merge-docker-script'
talasila714fdfa2017-02-19 09:30:55 -0500143
144 project-type: freestyle
145 concurrent: true
146 node: '{build-node}'
147
148 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700149 - infra-properties:
talasila714fdfa2017-02-19 09:30:55 -0500150 build-days-to-keep: '{build-days-to-keep}'
151
152 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700153 - infra-parameters:
talasila714fdfa2017-02-19 09:30:55 -0500154 project: '{project}'
155 branch: '{branch}'
156 refspec: 'refs/heads/{branch}'
157 artifacts: '{archive-artifacts}'
158 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800159 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500160
161 scm:
162 - gerrit-trigger-scm:
163 refspec: ''
164 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500165 submodule-recursive: '{submodule-recursive}'
talasila596787c2017-02-19 20:47:56 -0500166 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400167 project: '{extra-project}'
168 refspec: '{extra-refspec}'
169 branch: '{extra-branch}'
170 checkout-dir: '{checkout-dir}'
talasila714fdfa2017-02-19 09:30:55 -0500171
172 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700173 - infra-wrappers:
talasila714fdfa2017-02-19 09:30:55 -0500174 build-timeout: '{build-timeout}'
175
176 triggers:
talasila714fdfa2017-02-19 09:30:55 -0500177 - gerrit-trigger-patch-merged:
178 server: '{server-name}'
179 project: '{project}'
180 branch: '{branch}'
181 files: '**'
182
183 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700184 - lf-infra-pre-build
talasila714fdfa2017-02-19 09:30:55 -0500185 - provide-maven-settings:
186 global-settings-file: 'global-settings'
187 settings-file: '{mvn-settings}'
188 - docker-login
189 # make sure maven gets installed / setup
190 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800191 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500192 goals: '--version'
193 settings: '{mvn-settings}'
194 settings-type: cfp
195 global-settings: 'global-settings'
196 global-settings-type: cfp
197 - shell: '{script}'
198
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700199 publishers:
200 - infra-shiplogs:
201 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500202
203- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400204 # Job template for two scm and script trigger - for docker daily release
talasilaa20f8bf2017-02-22 10:49:54 -0500205 #
206 # Required Variables:
207 # branch: git branch
208 # build-node: what build node to run on
209 # script: build script to execute
210
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400211 name: '{project-name}-{stream}-two-scm-release-docker-script-manual'
talasilaa20f8bf2017-02-22 10:49:54 -0500212
213 project-type: freestyle
214 concurrent: true
215 node: '{build-node}'
216
217 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700218 - infra-properties:
talasilaa20f8bf2017-02-22 10:49:54 -0500219 build-days-to-keep: '{build-days-to-keep}'
220
221 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700222 - infra-parameters:
talasilaa20f8bf2017-02-22 10:49:54 -0500223 project: '{project}'
224 branch: '{branch}'
225 refspec: 'refs/heads/{branch}'
226 artifacts: '{archive-artifacts}'
227 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800228 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500229
230 scm:
231 - gerrit-trigger-scm:
232 refspec: ''
233 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500234 submodule-recursive: '{submodule-recursive}'
talasilaa20f8bf2017-02-22 10:49:54 -0500235 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400236 project: '{extra-project}'
237 refspec: '{extra-refspec}'
238 branch: '{extra-branch}'
239 checkout-dir: '{checkout-dir}'
talasilaa20f8bf2017-02-22 10:49:54 -0500240
241 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700242 - infra-wrappers:
talasilaa20f8bf2017-02-22 10:49:54 -0500243 build-timeout: '{build-timeout}'
244
245 triggers:
talasilaa20f8bf2017-02-22 10:49:54 -0500246 - gerrit-trigger-release-manually:
247 server: '{server-name}'
248 project: '{project}'
249 branch: '{branch}'
250
251 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700252 - lf-infra-pre-build
talasilaa20f8bf2017-02-22 10:49:54 -0500253 - provide-maven-settings:
254 global-settings-file: 'global-settings'
255 settings-file: '{mvn-settings}'
256 - docker-login
257 # make sure maven gets installed / setup
258 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800259 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500260 goals: '--version'
261 settings: '{mvn-settings}'
262 settings-type: cfp
263 global-settings: 'global-settings'
264 global-settings-type: cfp
265 - shell: '{script}'
266
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700267 publishers:
268 - infra-shiplogs:
269 maven-version: '{maven-version}'