2 # Template used for running CLM scans
4 # {name} - Project Shortname
5 # {project} - Fully qualified project name
6 # {mvn-settings} - Project maven settings file
9 name: '{name}-clm-{stream}'
16 daysToKeep: '{build-days-to-keep}'
17 numToKeep: '{build-num-to-keep}'
20 - opendaylight-infra-parameters:
23 refspec: 'refs/heads/{branch}'
24 artifacts: '{archive-artifacts}'
32 - opendaylight-infra-wrappers:
33 build-timeout: '{build-timeout}'
39 - provide-maven-settings:
40 global-settings-file: 'odl-global-settings'
41 settings-file: '{mvn-settings}'
46 goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
47 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
48 settings: '{mvn-settings}'
50 global-settings: 'odl-global-settings'
51 global-settings-type: cfp
54 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
56 application-name: '{name}'
60 email-prefix: '[{name}]'
62 maven-version: '{mvn33}'
65 name: '{name}-distribution-{stream}'
68 # stream: release stream (eg. stable-lithium or beryllium)
69 # branch: git branch (eg. stable/lithium or master)
76 daysToKeep: '{build-days-to-keep}'
77 numToKeep: '{build-num-to-keep}'
78 artifactDaysToKeep: '{build-artifact-days-to-keep}'
79 artifactNumToKeep: '{build-artifact-num-to-keep}'
82 - opendaylight-infra-parameters:
85 refspec: 'refs/heads/{branch}'
86 artifacts: '{archive-artifacts}'
94 - opendaylight-infra-wrappers:
95 build-timeout: '{build-timeout}'
99 jobs: '{project}-merge-{stream}'
103 - provide-maven-settings:
104 global-settings-file: 'odl-global-settings'
105 settings-file: '{mvn-settings}'
108 maven-name: '{mvn33}'
110 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
111 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
112 settings: 'integration-distribution-settings'
114 global-settings: 'odl-global-settings'
115 global-settings-type: cfp
118 - email-notification:
119 email-prefix: '[{project}]'
123 deploy-unstable: false
125 maven-version: '{mvn33}'
128 # Template: integration-patch-distribution-{stream}
129 # Goal: Build a patch and make sure the distribution can deploy with this change
130 # Operation: This job template builds a patch, creates a distribution containing
131 # the patch, and triggers the distribution deploy test
133 name: '{name}-distribution-check-{stream}'
134 disabled: '{obj:disable_distribution_check}'
142 daysToKeep: '{build-days-to-keep}'
143 numToKeep: '{build-num-to-keep}'
144 artifactDaysToKeep: '{build-artifact-days-to-keep}'
145 artifactNumToKeep: '{build-artifact-num-to-keep}'
148 - opendaylight-infra-parameters:
151 refspec: 'refs/heads/{branch}'
152 artifacts: '{archive-artifacts}'
153 - integration-distribution-git-url
156 - integration-gerrit-scm:
157 basedir: '$GERRIT_PROJECT'
158 refspec: '$GERRIT_REFSPEC'
160 - integration-distribution-scm:
164 - opendaylight-infra-wrappers:
165 build-timeout: '{build-timeout}'
169 server-name: 'OpenDaylight'
171 - patchset-created-event:
172 exclude-drafts: 'true'
173 exclude-trivial-rebase: 'false'
174 exclude-no-code-change: 'true'
175 - draft-published-event
176 - comment-added-contains-event:
177 comment-contains-value: 'test-distribution'
178 - comment-added-contains-event:
179 comment-contains-value: 'reverify'
180 - comment-added-contains-event:
181 comment-contains-value: 'recheck'
183 - project-compare-type: 'ANT'
184 project-pattern: '{name}'
186 - branch-compare-type: 'ANT'
187 branch-pattern: '**/{branch}'
196 maven-version: '{mvn33}'
197 pom: '$GERRIT_PROJECT/pom.xml'
198 goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
200 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
201 settings: '{mvn-settings}'
203 global-settings: 'odl-global-settings'
204 global-settings-type: cfp
207 maven-name: '{mvn33}'
208 root-pom: 'distribution/pom.xml'
209 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
210 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
211 settings: '{mvn-settings}'
213 global-settings: 'odl-global-settings'
214 global-settings-type: cfp
215 ignore-upstream-changes: true
216 post-step-run-condition: 'SUCCESS'
219 - integration-distribution-check
222 - email-notification:
223 email-prefix: '[{name}]'
228 mkdir -p $WORKSPACE/archives
229 cp karaf*.log $WORKSPACE/archives
230 script-only-if-succeeded: False
231 script-only-if-failed: False
232 mark-unstable-if-failed: True
234 maven-version: '{mvn33}'
237 name: '{name}-integration-{stream}'
239 # Job template for ODL integration verify jobs
241 # This is similar to a normal verify job, but it runs
242 # when a project that's a dependency of your project
243 # is successfully built.
245 # Required Variables:
246 # stream: release stream (eg. stable-lithium or beryllium)
247 # branch: git branch (eg. stable/lithium or master)
254 daysToKeep: '{build-days-to-keep}'
255 numToKeep: '{build-num-to-keep}'
256 artifactDaysToKeep: '{build-artifact-days-to-keep}'
257 artifactNumToKeep: '{build-artifact-num-to-keep}'
260 - opendaylight-infra-parameters:
263 refspec: 'refs/heads/{branch}'
264 artifacts: '{archive-artifacts}'
272 - opendaylight-infra-wrappers:
273 build-timeout: '{build-timeout}'
277 jobs: '{dependencies}'
281 - jacoco-nojava-workaround
282 - provide-maven-settings:
283 global-settings-file: 'odl-global-settings'
284 settings-file: '{mvn-settings}'
287 maven-name: '{mvn33}'
288 goals: '{mvn-goals} -V -B -Djenkins'
289 maven-opts: '{mvn-opts}'
290 settings: '{mvn-settings}'
292 global-settings: 'odl-global-settings'
293 global-settings-type: cfp
299 - email-notification:
300 email-prefix: '{email-upstream}'
303 maven-version: '{mvn33}'
306 name: '{name}-periodic-{stream}'
308 # Job template for periodic builders
310 # The purpose of this job template is to setup a periodic
313 # Required Variables:
314 # stream: release stream (eg. stable-lithium or beryllium)
315 # branch: git branch (eg. stable/lithium or master)
325 - opendaylight-infra-parameters:
328 refspec: 'refs/heads/{branch}'
329 artifacts: '{archive-artifacts}'
337 - opendaylight-infra-wrappers:
338 build-timeout: '{build-timeout}'
344 - jacoco-nojava-workaround
345 - provide-maven-settings:
346 global-settings-file: 'odl-global-settings'
347 settings-file: '{mvn-settings}'
350 maven-name: '{mvn33}'
351 goals: '{mvn-goals} -V -B -Djenkins'
352 maven-opts: '{mvn-opts}'
353 settings: '{mvn-settings}'
355 global-settings: 'odl-global-settings'
356 global-settings-type: cfp
362 - email-notification:
363 email-prefix: '[{name}]'
366 maven-version: '{mvn33}'
369 name: '{name}-validate-autorelease-{stream}'
370 disabled: '{obj:disable_autorelease}'
378 daysToKeep: '{build-days-to-keep}'
379 numToKeep: '{build-num-to-keep}'
380 artifactDaysToKeep: '{build-artifact-days-to-keep}'
381 artifactNumToKeep: '{build-artifact-num-to-keep}'
384 - opendaylight-infra-parameters:
387 refspec: 'refs/heads/{branch}'
388 artifacts: '{archive-artifacts}'
389 - autorelease-release-tag:
390 release-tag: 'validate'
391 - autorelease-release-branch:
392 release-branch: '{branch}'
395 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
396 description: "Autorelease clone URL"
401 credentials-id: 'opendaylight-jenkins-ssh'
411 - opendaylight-infra-wrappers:
412 build-timeout: '{build-timeout}'
416 server-name: 'OpenDaylight'
418 - patchset-created-event:
419 exclude-drafts: 'true'
420 exclude-trivial-rebase: 'false'
421 exclude-no-code-change: 'true'
422 - draft-published-event
423 - comment-added-contains-event:
424 comment-contains-value: 'recheck'
425 - comment-added-contains-event:
426 comment-contains-value: 'reverify'
427 - comment-added-contains-event:
428 comment-contains-value: 'revalidate'
430 - project-compare-type: 'ANT'
431 project-pattern: 'PROJECT_PATH'
433 - branch-compare-type: 'ANT'
434 branch-pattern: '**/{branch}'
440 - jacoco-nojava-workaround
441 - autorelease-checkout-gerrit-patch
442 - autorelease-generate-release-patches
444 maven-version: '{mvn33}'
445 pom: validate-pom.xml
446 goals: 'clean install -V -B -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
449 settings: 'autorelease-settings'
451 global-settings: 'odl-global-settings'
452 global-settings-type: cfp
455 maven-name: '{mvn33}'
457 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
458 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
459 settings: 'autorelease-settings'
461 global-settings: 'odl-global-settings'
462 global-settings-type: cfp
463 automatic-archiving: false
464 post-step-run-condition: UNSTABLE
467 - autorelease-sys-stats
470 - email-notification:
471 email-prefix: '[autorelease] [{name}]'
473 maven-version: '{mvn33}'