blob: 3dbe82d74dfe8977ec4f86cb60464d6c2e871f5e [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ńkaeddda0e2021-08-03 21:33:50 +020022 disable-job: false
23 disabled: '{disable-job}'
Konrad Bańka67a1ef12019-09-09 17:02:25 +020024
25 pattern: '**'
26
27 parameters:
28 - lf-infra-parameters:
29 branch: '{branch}'
30 project: '{project}'
31 stream: '{stream}'
32 lftools-version: '{lftools-version}'
33
34 scm:
35 - gerrit-trigger-scm:
36 refspec: '$GERRIT_REFSPEC'
37 submodule-recursive: '{submodule-recursive}'
38 choosing-strategy: 'gerrit'
39
40 triggers:
41 - gerrit-trigger-patch-submitted:
42 server: '{server-name}'
43 project: '{project}'
44 branch: '{branch}'
45 files: '{pattern}'
46
Konrad Bańkacd7d09e2020-04-21 18:20:23 +020047 wrappers:
48 - infra-wrappers:
49 build-timeout: '{build-timeout}'
50
Konrad Bańka67a1ef12019-09-09 17:02:25 +020051 builders:
52 - shell: '{script}'
53
54 publishers:
55 - lf-infra-publish
56
57- job-template:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080058 # Job template for 2 scm and script trigger
59 #
60 # Required Variables:
61 # branch: git branch
62 # build-node: what build node to run on
63 # script: build script to execute
64 # extra-project: extra gerrit project to checkout
65 # extra-refspec: refspec for the extra project
66 # extra-branch: branch to checkout for the extra project
67 # checkout-dir: directory to checkout the extra project to
68 # DO NOT SET THIS TO anything that translates to
69 # $WORKSPACE as it will destroy the initial
70 # project checkout
71
Andrew Grimbergec9a1bf2017-02-16 09:56:57 -080072 name: '{project-name}-{stream}-two-scm-verify-script'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080073
74 project-type: freestyle
75 concurrent: true
76 node: '{build-node}'
77
78 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070079 - infra-properties:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080080 build-days-to-keep: '{build-days-to-keep}'
81
82 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070083 - infra-parameters:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080084 project: '{project}'
85 branch: '{branch}'
86 refspec: 'refs/heads/{branch}'
87 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -080088 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080089 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080090
91 scm:
92 - gerrit-trigger-scm:
93 refspec: '$GERRIT_REFSPEC'
94 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050095 submodule-recursive: '{submodule-recursive}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080096 - git-extra-project:
97 project: '{extra-project}'
98 refspec: '{extra-refspec}'
99 branch: '{extra-branch}'
100 checkout-dir: '{checkout-dir}'
101
102 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700103 - infra-wrappers:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800104 build-timeout: '{build-timeout}'
105
106 triggers:
107 - gerrit-trigger-patch-submitted:
108 server: '{server-name}'
109 project: '{project}'
110 branch: '{branch}'
111 files: '**'
112
113 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700114 - lf-infra-pre-build
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800115 - provide-maven-settings:
116 global-settings-file: 'global-settings'
117 settings-file: '{mvn-settings}'
118 # make sure maven gets installed / setup
119 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800120 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800121 goals: '--version'
122 settings: '{mvn-settings}'
123 settings-type: cfp
124 global-settings: 'global-settings'
125 global-settings-type: cfp
126 - shell: '{script}'
127
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700128 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800129 - lf-infra-publish
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:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800199 - lf-infra-publish
talasilaa20f8bf2017-02-22 10:49:54 -0500200
201- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400202 # Job template for two scm and script trigger - for docker daily release
talasilaa20f8bf2017-02-22 10:49:54 -0500203 #
204 # Required Variables:
205 # branch: git branch
206 # build-node: what build node to run on
207 # script: build script to execute
208
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400209 name: '{project-name}-{stream}-two-scm-release-docker-script-manual'
talasilaa20f8bf2017-02-22 10:49:54 -0500210
211 project-type: freestyle
212 concurrent: true
213 node: '{build-node}'
214
215 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700216 - infra-properties:
talasilaa20f8bf2017-02-22 10:49:54 -0500217 build-days-to-keep: '{build-days-to-keep}'
218
219 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700220 - infra-parameters:
talasilaa20f8bf2017-02-22 10:49:54 -0500221 project: '{project}'
222 branch: '{branch}'
223 refspec: 'refs/heads/{branch}'
224 artifacts: '{archive-artifacts}'
225 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800226 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500227
228 scm:
229 - gerrit-trigger-scm:
230 refspec: ''
231 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500232 submodule-recursive: '{submodule-recursive}'
talasilaa20f8bf2017-02-22 10:49:54 -0500233 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400234 project: '{extra-project}'
235 refspec: '{extra-refspec}'
236 branch: '{extra-branch}'
237 checkout-dir: '{checkout-dir}'
talasilaa20f8bf2017-02-22 10:49:54 -0500238
239 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700240 - infra-wrappers:
talasilaa20f8bf2017-02-22 10:49:54 -0500241 build-timeout: '{build-timeout}'
242
243 triggers:
talasilaa20f8bf2017-02-22 10:49:54 -0500244 - gerrit-trigger-release-manually:
245 server: '{server-name}'
246 project: '{project}'
247 branch: '{branch}'
248
249 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700250 - lf-infra-pre-build
talasilaa20f8bf2017-02-22 10:49:54 -0500251 - provide-maven-settings:
252 global-settings-file: 'global-settings'
253 settings-file: '{mvn-settings}'
254 - docker-login
255 # make sure maven gets installed / setup
256 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800257 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500258 goals: '--version'
259 settings: '{mvn-settings}'
260 settings-type: cfp
261 global-settings: 'global-settings'
262 global-settings-type: cfp
263 - shell: '{script}'
264
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700265 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800266 - lf-infra-publish