2 # vim: sw=2 ts=2 sts=2 et :
5 # Job template for merging a submission. triggered on
6 # gerrit-trigger-patch-merged, does scm, mvn with passed-in goals, then
10 # script: build script to execute
11 # mvn-settings: settings file for this specific job
12 # mvn-goals: space separated list of maven build goals (--version
13 # for noop, clean deploy for deploy [snapshot])
14 name: '{project-name}-{stream}-merge-scm-mvn-script'
16 project-type: freestyle
17 node: 'ubuntu1604-docker-8c-8g'
21 build-days-to-keep: '{build-days-to-keep}'
27 refspec: 'refs/heads/{branch}'
28 artifacts: '{archive-artifacts}'
30 maven-version: '{maven-version}'
35 choosing-strategy: 'default'
36 submodule-recursive: '{submodule-recursive}'
40 build-timeout: '{build-timeout}'
43 - gerrit-trigger-patch-merged:
44 server: '{server-name}'
50 - provide-maven-settings:
51 global-settings-file: 'global-settings'
52 settings-file: '{mvn-settings}'
54 maven-version: '{maven-version}'
56 settings: '{mvn-settings}'
58 global-settings: 'global-settings'
59 global-settings-type: cfp
65 maven-version: '{maven-version}'
69 # Job template for 2 scm and script trigger
73 # build-node: what build node to run on
74 # script: build script to execute
75 # extra-project: extra gerrit project to checkout
76 # extra-refspec: refspec for the extra project
77 # extra-branch: branch to checkout for the extra project
78 # checkout-dir: directory to checkout the extra project to
79 # DO NOT SET THIS TO anything that translates to
80 # $WORKSPACE as it will destroy the initial
83 name: '{project-name}-{stream}-two-scm-verify-script'
85 project-type: freestyle
91 build-days-to-keep: '{build-days-to-keep}'
97 refspec: 'refs/heads/{branch}'
98 artifacts: '{archive-artifacts}'
100 maven-version: '{maven-version}'
103 - gerrit-trigger-scm:
104 refspec: '$GERRIT_REFSPEC'
105 choosing-strategy: 'gerrit'
106 submodule-recursive: '{submodule-recursive}'
108 project: '{extra-project}'
109 refspec: '{extra-refspec}'
110 branch: '{extra-branch}'
111 checkout-dir: '{checkout-dir}'
115 build-timeout: '{build-timeout}'
118 - gerrit-trigger-patch-submitted:
119 server: '{server-name}'
125 - provide-maven-settings:
126 global-settings-file: 'global-settings'
127 settings-file: '{mvn-settings}'
128 # make sure maven gets installed / setup
130 maven-version: '{maven-version}'
132 settings: '{mvn-settings}'
134 global-settings: 'global-settings'
135 global-settings-type: cfp
140 maven-version: '{maven-version}'
144 # vim: sw=2 ts=2 sts=2 et :
147 # Job template for two scm and script trigger - for docker merge
149 # Required Variables:
151 # build-node: what build node to run on
152 # script: build script to execute
154 name: '{project-name}-{stream}-two-scm-merge-docker-script'
156 project-type: freestyle
162 build-days-to-keep: '{build-days-to-keep}'
168 refspec: 'refs/heads/{branch}'
169 artifacts: '{archive-artifacts}'
171 maven-version: '{maven-version}'
174 - gerrit-trigger-scm:
176 choosing-strategy: 'default'
177 submodule-recursive: '{submodule-recursive}'
179 project: '{extra-project}'
180 refspec: '{extra-refspec}'
181 branch: '{extra-branch}'
182 checkout-dir: '{checkout-dir}'
186 build-timeout: '{build-timeout}'
189 - gerrit-trigger-patch-merged:
190 server: '{server-name}'
196 - provide-maven-settings:
197 global-settings-file: 'global-settings'
198 settings-file: '{mvn-settings}'
200 # make sure maven gets installed / setup
202 maven-version: '{maven-version}'
204 settings: '{mvn-settings}'
206 global-settings: 'global-settings'
207 global-settings-type: cfp
212 maven-version: '{maven-version}'
215 # Job template for two scm and script trigger - for docker daily release
217 # Required Variables:
219 # build-node: what build node to run on
220 # script: build script to execute
222 name: '{project-name}-{stream}-two-scm-release-docker-script-manual'
224 project-type: freestyle
230 build-days-to-keep: '{build-days-to-keep}'
236 refspec: 'refs/heads/{branch}'
237 artifacts: '{archive-artifacts}'
239 maven-version: '{maven-version}'
242 - gerrit-trigger-scm:
244 choosing-strategy: 'default'
245 submodule-recursive: '{submodule-recursive}'
247 project: '{extra-project}'
248 refspec: '{extra-refspec}'
249 branch: '{extra-branch}'
250 checkout-dir: '{checkout-dir}'
254 build-timeout: '{build-timeout}'
257 - gerrit-trigger-release-manually:
258 server: '{server-name}'
263 - provide-maven-settings:
264 global-settings-file: 'global-settings'
265 settings-file: '{mvn-settings}'
267 # make sure maven gets installed / setup
269 maven-version: '{maven-version}'
271 settings: '{mvn-settings}'
273 global-settings: 'global-settings'
274 global-settings-type: cfp
279 maven-version: '{maven-version}'
282 # 1. PULL the desired image
283 # 2. TAG it to the desired release name
284 # 3. PUSH the newly tagged image on release repo
286 name: '{project-name}-docker-image-blessing'
288 project-type: freestyle
290 node: 'ubuntu1604-docker-8c-8g'
295 description: "x VERSION of the STAGING image to bless into this RELEASE VERSION
299 description: "y VERSION of the STAGING image to bless into this RELEASE VERSION
303 description: "z VERSION of the RELEASE VERSION
311 build-days-to-keep: '{build-days-to-keep}'
315 build-timeout: '{build-timeout}'
318 - provide-maven-settings:
319 global-settings-file: 'global-settings'
320 settings-file: '{mvn-settings}'
322 - shell: !include-raw: include-docker-blessing.sh
326 maven-version: '{maven-version}'