blob: 1ee505fc7fbe384b9dfce4e31c52bee3de6557dd [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:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080051 # Job template for 2 scm and script trigger
52 #
53 # Required Variables:
54 # branch: git branch
55 # build-node: what build node to run on
56 # script: build script to execute
57 # extra-project: extra gerrit project to checkout
58 # extra-refspec: refspec for the extra project
59 # extra-branch: branch to checkout for the extra project
60 # checkout-dir: directory to checkout the extra project to
61 # DO NOT SET THIS TO anything that translates to
62 # $WORKSPACE as it will destroy the initial
63 # project checkout
64
Andrew Grimbergec9a1bf2017-02-16 09:56:57 -080065 name: '{project-name}-{stream}-two-scm-verify-script'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080066
67 project-type: freestyle
68 concurrent: true
69 node: '{build-node}'
70
71 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070072 - infra-properties:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080073 build-days-to-keep: '{build-days-to-keep}'
74
75 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070076 - infra-parameters:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080077 project: '{project}'
78 branch: '{branch}'
79 refspec: 'refs/heads/{branch}'
80 artifacts: '{archive-artifacts}'
Andrew Grimbergab9451c2017-02-20 14:57:07 -080081 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080082 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080083
84 scm:
85 - gerrit-trigger-scm:
86 refspec: '$GERRIT_REFSPEC'
87 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050088 submodule-recursive: '{submodule-recursive}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080089 - git-extra-project:
90 project: '{extra-project}'
91 refspec: '{extra-refspec}'
92 branch: '{extra-branch}'
93 checkout-dir: '{checkout-dir}'
94
95 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070096 - infra-wrappers:
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080097 build-timeout: '{build-timeout}'
98
99 triggers:
100 - gerrit-trigger-patch-submitted:
101 server: '{server-name}'
102 project: '{project}'
103 branch: '{branch}'
104 files: '**'
105
106 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700107 - lf-infra-pre-build
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800108 - provide-maven-settings:
109 global-settings-file: 'global-settings'
110 settings-file: '{mvn-settings}'
111 # make sure maven gets installed / setup
112 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800113 maven-version: '{maven-version}'
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800114 goals: '--version'
115 settings: '{mvn-settings}'
116 settings-type: cfp
117 global-settings: 'global-settings'
118 global-settings-type: cfp
119 - shell: '{script}'
120
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700121 publishers:
122 - infra-shiplogs:
123 maven-version: '{maven-version}'
talasila91a608b2017-02-16 12:46:32 -0500124
125
talasila714fdfa2017-02-19 09:30:55 -0500126
127# vim: sw=2 ts=2 sts=2 et :
128
129- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400130 # Job template for two scm and script trigger - for docker merge
talasila714fdfa2017-02-19 09:30:55 -0500131 #
132 # Required Variables:
133 # branch: git branch
134 # build-node: what build node to run on
135 # script: build script to execute
136
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400137 name: '{project-name}-{stream}-two-scm-merge-docker-script'
talasila714fdfa2017-02-19 09:30:55 -0500138
139 project-type: freestyle
140 concurrent: true
141 node: '{build-node}'
142
143 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700144 - infra-properties:
talasila714fdfa2017-02-19 09:30:55 -0500145 build-days-to-keep: '{build-days-to-keep}'
146
147 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700148 - infra-parameters:
talasila714fdfa2017-02-19 09:30:55 -0500149 project: '{project}'
150 branch: '{branch}'
151 refspec: 'refs/heads/{branch}'
152 artifacts: '{archive-artifacts}'
153 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800154 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500155
156 scm:
157 - gerrit-trigger-scm:
158 refspec: ''
159 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500160 submodule-recursive: '{submodule-recursive}'
talasila596787c2017-02-19 20:47:56 -0500161 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400162 project: '{extra-project}'
163 refspec: '{extra-refspec}'
164 branch: '{extra-branch}'
165 checkout-dir: '{checkout-dir}'
talasila714fdfa2017-02-19 09:30:55 -0500166
167 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700168 - infra-wrappers:
talasila714fdfa2017-02-19 09:30:55 -0500169 build-timeout: '{build-timeout}'
170
171 triggers:
talasila714fdfa2017-02-19 09:30:55 -0500172 - gerrit-trigger-patch-merged:
173 server: '{server-name}'
174 project: '{project}'
175 branch: '{branch}'
176 files: '**'
177
178 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700179 - lf-infra-pre-build
talasila714fdfa2017-02-19 09:30:55 -0500180 - provide-maven-settings:
181 global-settings-file: 'global-settings'
182 settings-file: '{mvn-settings}'
183 - docker-login
184 # make sure maven gets installed / setup
185 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800186 maven-version: '{maven-version}'
talasila714fdfa2017-02-19 09:30:55 -0500187 goals: '--version'
188 settings: '{mvn-settings}'
189 settings-type: cfp
190 global-settings: 'global-settings'
191 global-settings-type: cfp
192 - shell: '{script}'
193
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700194 publishers:
195 - infra-shiplogs:
196 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500197
198- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400199 # Job template for two scm and script trigger - for docker daily release
talasilaa20f8bf2017-02-22 10:49:54 -0500200 #
201 # Required Variables:
202 # branch: git branch
203 # build-node: what build node to run on
204 # script: build script to execute
205
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400206 name: '{project-name}-{stream}-two-scm-release-docker-script-manual'
talasilaa20f8bf2017-02-22 10:49:54 -0500207
208 project-type: freestyle
209 concurrent: true
210 node: '{build-node}'
211
212 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700213 - infra-properties:
talasilaa20f8bf2017-02-22 10:49:54 -0500214 build-days-to-keep: '{build-days-to-keep}'
215
216 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700217 - infra-parameters:
talasilaa20f8bf2017-02-22 10:49:54 -0500218 project: '{project}'
219 branch: '{branch}'
220 refspec: 'refs/heads/{branch}'
221 artifacts: '{archive-artifacts}'
222 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -0800223 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500224
225 scm:
226 - gerrit-trigger-scm:
227 refspec: ''
228 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500229 submodule-recursive: '{submodule-recursive}'
talasilaa20f8bf2017-02-22 10:49:54 -0500230 - git-extra-project:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400231 project: '{extra-project}'
232 refspec: '{extra-refspec}'
233 branch: '{extra-branch}'
234 checkout-dir: '{checkout-dir}'
talasilaa20f8bf2017-02-22 10:49:54 -0500235
236 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700237 - infra-wrappers:
talasilaa20f8bf2017-02-22 10:49:54 -0500238 build-timeout: '{build-timeout}'
239
240 triggers:
talasilaa20f8bf2017-02-22 10:49:54 -0500241 - gerrit-trigger-release-manually:
242 server: '{server-name}'
243 project: '{project}'
244 branch: '{branch}'
245
246 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700247 - lf-infra-pre-build
talasilaa20f8bf2017-02-22 10:49:54 -0500248 - provide-maven-settings:
249 global-settings-file: 'global-settings'
250 settings-file: '{mvn-settings}'
251 - docker-login
252 # make sure maven gets installed / setup
253 - maven-target:
Andrew Grimberge2465882017-02-24 12:38:05 -0800254 maven-version: '{maven-version}'
talasilaa20f8bf2017-02-22 10:49:54 -0500255 goals: '--version'
256 settings: '{mvn-settings}'
257 settings-type: cfp
258 global-settings: 'global-settings'
259 global-settings-type: cfp
260 - shell: '{script}'
261
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700262 publishers:
263 - infra-shiplogs:
264 maven-version: '{maven-version}'