blob: 81ef487a7f3f1fc3d9794d8e1c2a79bfa0ae9f30 [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
Konrad Bańkacd7d09e2020-04-21 18:20:23 +020044 wrappers:
45 - infra-wrappers:
46 build-timeout: '{build-timeout}'
47
Konrad Bańka67a1ef12019-09-09 17:02:25 +020048 builders:
49 - shell: '{script}'
50
51 publishers:
52 - lf-infra-publish
53
54- job-template:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080055 # Job template for 2 scm and script trigger
56 #
57 # Required Variables:
58 # branch: git branch
59 # build-node: what build node to run on
60 # script: build script to execute
61 # extra-project: extra gerrit project to checkout
62 # extra-refspec: refspec for the extra project
63 # extra-branch: branch to checkout for the extra project
64 # checkout-dir: directory to checkout the extra project to
65 # DO NOT SET THIS TO anything that translates to
66 # $WORKSPACE as it will destroy the initial
67 # project checkout
68
Andrew Grimbergec9a1bf2017-02-16 09:56:57 -080069 name: '{project-name}-{stream}-two-scm-verify-script'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080070
71 project-type: freestyle
72 concurrent: true
73 node: '{build-node}'
74
75 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070076 - infra-properties:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080077 build-days-to-keep: '{build-days-to-keep}'
78
79 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070080 - infra-parameters:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080081 project: '{project}'
82 branch: '{branch}'
83 refspec: 'refs/heads/{branch}'
84 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -080085 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080086 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080087
88 scm:
89 - gerrit-trigger-scm:
90 refspec: '$GERRIT_REFSPEC'
91 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050092 submodule-recursive: '{submodule-recursive}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080093 - git-extra-project:
94 project: '{extra-project}'
95 refspec: '{extra-refspec}'
96 branch: '{extra-branch}'
97 checkout-dir: '{checkout-dir}'
98
99 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700100 - infra-wrappers:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800101 build-timeout: '{build-timeout}'
102
103 triggers:
104 - gerrit-trigger-patch-submitted:
105 server: '{server-name}'
106 project: '{project}'
107 branch: '{branch}'
108 files: '**'
109
110 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700111 - lf-infra-pre-build
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800112 - provide-maven-settings:
113 global-settings-file: 'global-settings'
114 settings-file: '{mvn-settings}'
115 # make sure maven gets installed / setup
116 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800117 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800118 goals: '--version'
119 settings: '{mvn-settings}'
120 settings-type: cfp
121 global-settings: 'global-settings'
122 global-settings-type: cfp
123 - shell: '{script}'
124
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700125 publishers:
126 - infra-shiplogs:
127 maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500128
129
talasila714fdfa2017-02-19 09:30:55 -0500130
131# vim: sw=2 ts=2 sts=2 et :
132
133- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400134 # Job template for two scm and script trigger - for docker merge
talasila714fdfa2017-02-19 09:30:55 -0500135 #
136 # Required Variables:
137 # branch: git branch
138 # build-node: what build node to run on
139 # script: build script to execute
140
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400141 name: '{project-name}-{stream}-two-scm-merge-docker-script'
talasila714fdfa2017-02-19 09:30:55 -0500142
143 project-type: freestyle
144 concurrent: true
145 node: '{build-node}'
146
147 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700148 - infra-properties:
talasila714fdfa2017-02-19 09:30:55 -0500149 build-days-to-keep: '{build-days-to-keep}'
150
151 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700152 - infra-parameters:
talasila714fdfa2017-02-19 09:30:55 -0500153 project: '{project}'
154 branch: '{branch}'
155 refspec: 'refs/heads/{branch}'
156 artifacts: '{archive-artifacts}'
157 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800158 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500159
160 scm:
161 - gerrit-trigger-scm:
162 refspec: ''
163 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500164 submodule-recursive: '{submodule-recursive}'
talasila596787c2017-02-19 20:47:56 -0500165 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400166 project: '{extra-project}'
167 refspec: '{extra-refspec}'
168 branch: '{extra-branch}'
169 checkout-dir: '{checkout-dir}'
talasila714fdfa2017-02-19 09:30:55 -0500170
171 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700172 - infra-wrappers:
talasila714fdfa2017-02-19 09:30:55 -0500173 build-timeout: '{build-timeout}'
174
175 triggers:
talasila714fdfa2017-02-19 09:30:55 -0500176 - gerrit-trigger-patch-merged:
177 server: '{server-name}'
178 project: '{project}'
179 branch: '{branch}'
180 files: '**'
181
182 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700183 - lf-infra-pre-build
talasila714fdfa2017-02-19 09:30:55 -0500184 - provide-maven-settings:
185 global-settings-file: 'global-settings'
186 settings-file: '{mvn-settings}'
187 - docker-login
188 # make sure maven gets installed / setup
189 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800190 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500191 goals: '--version'
192 settings: '{mvn-settings}'
193 settings-type: cfp
194 global-settings: 'global-settings'
195 global-settings-type: cfp
196 - shell: '{script}'
197
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700198 publishers:
199 - infra-shiplogs:
200 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500201
202- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400203 # Job template for two scm and script trigger - for docker daily release
talasilaa20f8bf2017-02-22 10:49:54 -0500204 #
205 # Required Variables:
206 # branch: git branch
207 # build-node: what build node to run on
208 # script: build script to execute
209
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400210 name: '{project-name}-{stream}-two-scm-release-docker-script-manual'
talasilaa20f8bf2017-02-22 10:49:54 -0500211
212 project-type: freestyle
213 concurrent: true
214 node: '{build-node}'
215
216 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700217 - infra-properties:
talasilaa20f8bf2017-02-22 10:49:54 -0500218 build-days-to-keep: '{build-days-to-keep}'
219
220 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700221 - infra-parameters:
talasilaa20f8bf2017-02-22 10:49:54 -0500222 project: '{project}'
223 branch: '{branch}'
224 refspec: 'refs/heads/{branch}'
225 artifacts: '{archive-artifacts}'
226 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800227 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500228
229 scm:
230 - gerrit-trigger-scm:
231 refspec: ''
232 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500233 submodule-recursive: '{submodule-recursive}'
talasilaa20f8bf2017-02-22 10:49:54 -0500234 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400235 project: '{extra-project}'
236 refspec: '{extra-refspec}'
237 branch: '{extra-branch}'
238 checkout-dir: '{checkout-dir}'
talasilaa20f8bf2017-02-22 10:49:54 -0500239
240 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700241 - infra-wrappers:
talasilaa20f8bf2017-02-22 10:49:54 -0500242 build-timeout: '{build-timeout}'
243
244 triggers:
talasilaa20f8bf2017-02-22 10:49:54 -0500245 - gerrit-trigger-release-manually:
246 server: '{server-name}'
247 project: '{project}'
248 branch: '{branch}'
249
250 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700251 - lf-infra-pre-build
talasilaa20f8bf2017-02-22 10:49:54 -0500252 - provide-maven-settings:
253 global-settings-file: 'global-settings'
254 settings-file: '{mvn-settings}'
255 - docker-login
256 # make sure maven gets installed / setup
257 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800258 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500259 goals: '--version'
260 settings: '{mvn-settings}'
261 settings-type: cfp
262 global-settings: 'global-settings'
263 global-settings-type: cfp
264 - shell: '{script}'
265
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700266 publishers:
267 - infra-shiplogs:
268 maven-version: '{maven-version}'