2 # vim: sw=2 ts=2 sts=2 et :
6 # job template for verifying gerrit changeset by shell script
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
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'
26 - lf-infra-parameters:
30 lftools-version: '{lftools-version}'
34 refspec: '$GERRIT_REFSPEC'
35 submodule-recursive: '{submodule-recursive}'
36 choosing-strategy: 'gerrit'
39 - gerrit-trigger-patch-submitted:
40 server: '{server-name}'
47 build-timeout: '{build-timeout}'
56 # Job template for 2 scm and script trigger
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
70 name: '{project-name}-{stream}-two-scm-verify-script'
72 project-type: freestyle
78 build-days-to-keep: '{build-days-to-keep}'
84 refspec: 'refs/heads/{branch}'
85 artifacts: '{archive-artifacts}'
87 maven-version: '{maven-version}'
91 refspec: '$GERRIT_REFSPEC'
92 choosing-strategy: 'gerrit'
93 submodule-recursive: '{submodule-recursive}'
95 project: '{extra-project}'
96 refspec: '{extra-refspec}'
97 branch: '{extra-branch}'
98 checkout-dir: '{checkout-dir}'
102 build-timeout: '{build-timeout}'
105 - gerrit-trigger-patch-submitted:
106 server: '{server-name}'
113 - provide-maven-settings:
114 global-settings-file: 'global-settings'
115 settings-file: '{mvn-settings}'
116 # make sure maven gets installed / setup
118 maven-version: '{maven-version}'
120 settings: '{mvn-settings}'
122 global-settings: 'global-settings'
123 global-settings-type: cfp
129 # vim: sw=2 ts=2 sts=2 et :
132 # Job template for two scm and script trigger - for docker merge
134 # Required Variables:
136 # build-node: what build node to run on
137 # script: build script to execute
139 name: '{project-name}-{stream}-two-scm-merge-docker-script'
141 project-type: freestyle
147 build-days-to-keep: '{build-days-to-keep}'
153 refspec: 'refs/heads/{branch}'
154 artifacts: '{archive-artifacts}'
156 maven-version: '{maven-version}'
159 - gerrit-trigger-scm:
161 choosing-strategy: 'default'
162 submodule-recursive: '{submodule-recursive}'
164 project: '{extra-project}'
165 refspec: '{extra-refspec}'
166 branch: '{extra-branch}'
167 checkout-dir: '{checkout-dir}'
171 build-timeout: '{build-timeout}'
174 - gerrit-trigger-patch-merged:
175 server: '{server-name}'
182 - provide-maven-settings:
183 global-settings-file: 'global-settings'
184 settings-file: '{mvn-settings}'
186 # make sure maven gets installed / setup
188 maven-version: '{maven-version}'
190 settings: '{mvn-settings}'
192 global-settings: 'global-settings'
193 global-settings-type: cfp
200 # Job template for two scm and script trigger - for docker daily release
202 # Required Variables:
204 # build-node: what build node to run on
205 # script: build script to execute
207 name: '{project-name}-{stream}-two-scm-release-docker-script-manual'
209 project-type: freestyle
215 build-days-to-keep: '{build-days-to-keep}'
221 refspec: 'refs/heads/{branch}'
222 artifacts: '{archive-artifacts}'
224 maven-version: '{maven-version}'
227 - gerrit-trigger-scm:
229 choosing-strategy: 'default'
230 submodule-recursive: '{submodule-recursive}'
232 project: '{extra-project}'
233 refspec: '{extra-refspec}'
234 branch: '{extra-branch}'
235 checkout-dir: '{checkout-dir}'
239 build-timeout: '{build-timeout}'
242 - gerrit-trigger-release-manually:
243 server: '{server-name}'
249 - provide-maven-settings:
250 global-settings-file: 'global-settings'
251 settings-file: '{mvn-settings}'
253 # make sure maven gets installed / setup
255 maven-version: '{maven-version}'
257 settings: '{mvn-settings}'
259 global-settings: 'global-settings'
260 global-settings-type: cfp