blob: 31db6d58220986377f5dae196dec3bdd55391187 [file] [log] [blame]
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -08001---
lj1412f75ed992017-02-17 22:21:06 +00002- job-template:
Konrad Bańka67a1ef12019-09-09 17:02:25 +02003 #
4 # job template for verifying gerrit changeset by shell script
5 #
6 # Required Variables:
7 # project-name: name of project
8 # area: area of project covered with this verification job
9 # project: name of scm repository to work on
10 # stream: name of stream used (set the same as branch if you're not sure)
11 # branch: git branch to work on
12 # script: build script to execute
13 # Optional Variables:
14 # pattern: trigger job only if modification covered file in pattern
15 # build-node: label(flavor) of jenkins slave
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070016 name: "{project-name}-{stream}-{area}-verify-shell"
17 node: "{build-node}"
Konrad Bańka67a1ef12019-09-09 17:02:25 +020018 type: freestyle
Konrad Bańkac5b87222020-04-22 14:00:37 +020019 concurrent: true
Konrad Bańkaeddda0e2021-08-03 21:33:50 +020020 disable-job: false
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070021 disabled: "{disable-job}"
Konrad Bańka67a1ef12019-09-09 17:02:25 +020022
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070023 pattern: "**"
Konrad Bańka67a1ef12019-09-09 17:02:25 +020024
25 parameters:
26 - lf-infra-parameters:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070027 branch: "{branch}"
28 project: "{project}"
29 stream: "{stream}"
30 lftools-version: "{lftools-version}"
Konrad Bańka67a1ef12019-09-09 17:02:25 +020031
32 scm:
33 - gerrit-trigger-scm:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070034 refspec: "$GERRIT_REFSPEC"
35 submodule-recursive: "{submodule-recursive}"
36 choosing-strategy: "gerrit"
Konrad Bańka67a1ef12019-09-09 17:02:25 +020037
38 triggers:
39 - gerrit-trigger-patch-submitted:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070040 server: "{server-name}"
41 project: "{project}"
42 branch: "{branch}"
43 files: "{pattern}"
Konrad Bańka67a1ef12019-09-09 17:02:25 +020044
Konrad Bańkacd7d09e2020-04-21 18:20:23 +020045 wrappers:
46 - infra-wrappers:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070047 build-timeout: "{build-timeout}"
Konrad Bańkacd7d09e2020-04-21 18:20:23 +020048
Konrad Bańka67a1ef12019-09-09 17:02:25 +020049 builders:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070050 - shell: "{script}"
Konrad Bańka67a1ef12019-09-09 17:02:25 +020051
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 Grimbergc1f3caf2023-05-03 09:25:07 -070070 name: "{project-name}-{stream}-two-scm-verify-script"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080071
72 project-type: freestyle
73 concurrent: true
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070074 node: "{build-node}"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080075
76 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070077 - infra-properties:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070078 build-days-to-keep: "{build-days-to-keep}"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080079
80 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070081 - infra-parameters:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070082 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 Grimbergc1f3caf2023-05-03 09:25:07 -070087 maven-version: "{maven-version}"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080088
89 scm:
90 - gerrit-trigger-scm:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070091 refspec: "$GERRIT_REFSPEC"
92 choosing-strategy: "gerrit"
93 submodule-recursive: "{submodule-recursive}"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080094 - git-extra-project:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070095 project: "{extra-project}"
96 refspec: "{extra-refspec}"
97 branch: "{extra-branch}"
98 checkout-dir: "{checkout-dir}"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -080099
100 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700101 - infra-wrappers:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700102 build-timeout: "{build-timeout}"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800103
104 triggers:
105 - gerrit-trigger-patch-submitted:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700106 server: "{server-name}"
107 project: "{project}"
108 branch: "{branch}"
109 files: "**"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800110
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:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700114 global-settings-file: "global-settings"
115 settings-file: "{mvn-settings}"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800116 # make sure maven gets installed / setup
117 - maven-target:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700118 maven-version: "{maven-version}"
119 goals: "--version"
120 settings: "{mvn-settings}"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800121 settings-type: cfp
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700122 global-settings: "global-settings"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800123 global-settings-type: cfp
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700124 - shell: "{script}"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800125
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700126 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800127 - lf-infra-publish
talasila714fdfa2017-02-19 09:30:55 -0500128
talasila714fdfa2017-02-19 09:30:55 -0500129- 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
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700137 name: "{project-name}-{stream}-two-scm-merge-docker-script"
talasila714fdfa2017-02-19 09:30:55 -0500138
139 project-type: freestyle
140 concurrent: true
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700141 node: "{build-node}"
talasila714fdfa2017-02-19 09:30:55 -0500142
143 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700144 - infra-properties:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700145 build-days-to-keep: "{build-days-to-keep}"
talasila714fdfa2017-02-19 09:30:55 -0500146
147 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700148 - infra-parameters:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700149 project: "{project}"
150 branch: "{branch}"
151 refspec: "refs/heads/{branch}"
152 artifacts: "{archive-artifacts}"
talasila714fdfa2017-02-19 09:30:55 -0500153 - maven-exec:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700154 maven-version: "{maven-version}"
talasila714fdfa2017-02-19 09:30:55 -0500155
156 scm:
157 - gerrit-trigger-scm:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700158 refspec: ""
159 choosing-strategy: "default"
160 submodule-recursive: "{submodule-recursive}"
talasila596787c2017-02-19 20:47:56 -0500161 - git-extra-project:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700162 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:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700169 build-timeout: "{build-timeout}"
talasila714fdfa2017-02-19 09:30:55 -0500170
171 triggers:
talasila714fdfa2017-02-19 09:30:55 -0500172 - gerrit-trigger-patch-merged:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700173 server: "{server-name}"
174 project: "{project}"
175 branch: "{branch}"
176 files: "**"
talasila714fdfa2017-02-19 09:30:55 -0500177
178 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700179 - lf-infra-pre-build
talasila714fdfa2017-02-19 09:30:55 -0500180 - provide-maven-settings:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700181 global-settings-file: "global-settings"
182 settings-file: "{mvn-settings}"
talasila714fdfa2017-02-19 09:30:55 -0500183 - docker-login
184 # make sure maven gets installed / setup
185 - maven-target:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700186 maven-version: "{maven-version}"
187 goals: "--version"
188 settings: "{mvn-settings}"
talasila714fdfa2017-02-19 09:30:55 -0500189 settings-type: cfp
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700190 global-settings: "global-settings"
talasila714fdfa2017-02-19 09:30:55 -0500191 global-settings-type: cfp
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700192 - shell: "{script}"
talasila714fdfa2017-02-19 09:30:55 -0500193
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700194 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800195 - lf-infra-publish
talasilaa20f8bf2017-02-22 10:49:54 -0500196
197- job-template:
Christopher Lott (cl778h)6b6ae122017-10-25 16:51:02 -0400198 # Job template for two scm and script trigger - for docker daily release
talasilaa20f8bf2017-02-22 10:49:54 -0500199 #
200 # Required Variables:
201 # branch: git branch
202 # build-node: what build node to run on
203 # script: build script to execute
204
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700205 name: "{project-name}-{stream}-two-scm-release-docker-script-manual"
talasilaa20f8bf2017-02-22 10:49:54 -0500206
207 project-type: freestyle
208 concurrent: true
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700209 node: "{build-node}"
talasilaa20f8bf2017-02-22 10:49:54 -0500210
211 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700212 - infra-properties:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700213 build-days-to-keep: "{build-days-to-keep}"
talasilaa20f8bf2017-02-22 10:49:54 -0500214
215 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700216 - infra-parameters:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700217 project: "{project}"
218 branch: "{branch}"
219 refspec: "refs/heads/{branch}"
220 artifacts: "{archive-artifacts}"
talasilaa20f8bf2017-02-22 10:49:54 -0500221 - maven-exec:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700222 maven-version: "{maven-version}"
talasilaa20f8bf2017-02-22 10:49:54 -0500223
224 scm:
225 - gerrit-trigger-scm:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700226 refspec: ""
227 choosing-strategy: "default"
228 submodule-recursive: "{submodule-recursive}"
talasilaa20f8bf2017-02-22 10:49:54 -0500229 - git-extra-project:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700230 project: "{extra-project}"
231 refspec: "{extra-refspec}"
232 branch: "{extra-branch}"
233 checkout-dir: "{checkout-dir}"
talasilaa20f8bf2017-02-22 10:49:54 -0500234
235 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700236 - infra-wrappers:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700237 build-timeout: "{build-timeout}"
talasilaa20f8bf2017-02-22 10:49:54 -0500238
239 triggers:
talasilaa20f8bf2017-02-22 10:49:54 -0500240 - gerrit-trigger-release-manually:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700241 server: "{server-name}"
242 project: "{project}"
243 branch: "{branch}"
talasilaa20f8bf2017-02-22 10:49:54 -0500244
245 builders:
Jessica Wagantall05ae7da2018-10-22 17:32:33 -0700246 - lf-infra-pre-build
talasilaa20f8bf2017-02-22 10:49:54 -0500247 - provide-maven-settings:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700248 global-settings-file: "global-settings"
249 settings-file: "{mvn-settings}"
talasilaa20f8bf2017-02-22 10:49:54 -0500250 - docker-login
251 # make sure maven gets installed / setup
252 - maven-target:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700253 maven-version: "{maven-version}"
254 goals: "--version"
255 settings: "{mvn-settings}"
talasilaa20f8bf2017-02-22 10:49:54 -0500256 settings-type: cfp
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700257 global-settings: "global-settings"
talasilaa20f8bf2017-02-22 10:49:54 -0500258 global-settings-type: cfp
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700259 - shell: "{script}"
talasilaa20f8bf2017-02-22 10:49:54 -0500260
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -0700261 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800262 - lf-infra-publish