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
128 maven-version: '{maven-version}'
132 # vim: sw=2 ts=2 sts=2 et :
135 # Job template for two scm and script trigger - for docker merge
137 # Required Variables:
139 # build-node: what build node to run on
140 # script: build script to execute
142 name: '{project-name}-{stream}-two-scm-merge-docker-script'
144 project-type: freestyle
150 build-days-to-keep: '{build-days-to-keep}'
156 refspec: 'refs/heads/{branch}'
157 artifacts: '{archive-artifacts}'
159 maven-version: '{maven-version}'
162 - gerrit-trigger-scm:
164 choosing-strategy: 'default'
165 submodule-recursive: '{submodule-recursive}'
167 project: '{extra-project}'
168 refspec: '{extra-refspec}'
169 branch: '{extra-branch}'
170 checkout-dir: '{checkout-dir}'
174 build-timeout: '{build-timeout}'
177 - gerrit-trigger-patch-merged:
178 server: '{server-name}'
185 - provide-maven-settings:
186 global-settings-file: 'global-settings'
187 settings-file: '{mvn-settings}'
189 # make sure maven gets installed / setup
191 maven-version: '{maven-version}'
193 settings: '{mvn-settings}'
195 global-settings: 'global-settings'
196 global-settings-type: cfp
201 maven-version: '{maven-version}'
204 # Job template for two scm and script trigger - for docker daily release
206 # Required Variables:
208 # build-node: what build node to run on
209 # script: build script to execute
211 name: '{project-name}-{stream}-two-scm-release-docker-script-manual'
213 project-type: freestyle
219 build-days-to-keep: '{build-days-to-keep}'
225 refspec: 'refs/heads/{branch}'
226 artifacts: '{archive-artifacts}'
228 maven-version: '{maven-version}'
231 - gerrit-trigger-scm:
233 choosing-strategy: 'default'
234 submodule-recursive: '{submodule-recursive}'
236 project: '{extra-project}'
237 refspec: '{extra-refspec}'
238 branch: '{extra-branch}'
239 checkout-dir: '{checkout-dir}'
243 build-timeout: '{build-timeout}'
246 - gerrit-trigger-release-manually:
247 server: '{server-name}'
253 - provide-maven-settings:
254 global-settings-file: 'global-settings'
255 settings-file: '{mvn-settings}'
257 # make sure maven gets installed / setup
259 maven-version: '{maven-version}'
261 settings: '{mvn-settings}'
263 global-settings: 'global-settings'
264 global-settings-type: cfp
269 maven-version: '{maven-version}'