1 # REMOVE THIS LINE IF YOU WANT TO CUSTOMIZE ANYTHING BELOW
2 # Otherwise this file will be automatically overwritten by the template
5 # ODL Releng build templates
9 - 'armoury-verify-{stream}'
10 - 'armoury-merge-{stream}'
11 - 'armoury-periodic-{stream}'
12 - 'armoury-distribution-{stream}'
13 - 'armoury-distribution-check-{stream}'
14 - 'armoury-integration-{stream}'
16 - 'armoury-clm-{stream}'
17 - 'armoury-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
29 disable_autorelease: True
30 disable_distribution_check: False
32 branch: 'stable/beryllium'
37 disable_autorelease: True
38 disable_distribution_check: False
42 # For the Job templates below replace instances of:
43 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
44 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
45 # MAVEN_GOALS with your maven goals to build
46 # MAVEN_OPTS with your maven options to build
49 name: 'armoury-verify-{stream}'
51 # Job template for ODL verify jobs
53 # The purpose of this job template is to setup a ODL verify job
56 # stream: release stream (eg. stable-lithium or beryllium)
57 # branch: git branch (eg. stable/lithium or master)
82 refspec: 'refs/heads/{branch}'
86 refspec: '$GERRIT_REFSPEC'
87 choosing-strategy: 'gerrit'
90 - opendaylight-infra-wrappers:
91 build-timeout: '{build-timeout}'
94 - gerrit-trigger-patch-submitted:
99 - jacoco-nojava-workaround
100 - provide-maven-settings:
101 global-settings-file: 'odl-global-settings'
102 settings-file: 'armoury-settings'
104 maven-version: '{mvn33}'
106 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
108 - '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
109 settings: 'armoury-settings'
111 global-settings: 'odl-global-settings'
112 global-settings-type: cfp
116 artifacts: '**/target/surefire-reports/*-output.txt, '
118 - email-notification:
119 email-prefix: '[armoury]'
122 maven-version: '{mvn33}'
125 name: 'armoury-merge-{stream}'
127 # Job template for ODL merge jobs
129 # The purpose of this job template is to setup a ODL merge job
130 # and deploy artifacts to Nexus.
132 # Required Variables:
133 # stream: release stream (eg. stable-lithium or beryllium)
134 # branch: git branch (eg. stable/lithium or master)
143 artifactDaysToKeep: '{build-artifact-days-to-keep}'
144 artifactNumToKeep: '{build-artifact-num-to-keep}'
152 refspec: 'refs/heads/{branch}'
155 - gerrit-trigger-scm:
157 choosing-strategy: 'default'
160 - opendaylight-infra-wrappers:
161 build-timeout: '{build-timeout}'
165 - gerrit-trigger-patch-merged:
170 - jacoco-nojava-workaround
171 - provide-maven-settings:
172 global-settings-file: 'odl-global-settings'
173 settings-file: 'armoury-settings'
176 maven-name: '{mvn33}'
178 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
179 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
180 settings: 'armoury-settings'
182 global-settings: 'odl-global-settings'
183 global-settings-type: cfp
184 post-step-run-condition: UNSTABLE
188 condition-kind: file-exists
189 condition-filename: deploy-site.xml
190 condition-basedir: workspace
192 # The strategy here is intentional to run Maven site:deploy twice
193 # once using regular pom.xml to produce a staged-site which is
194 # then used by deploy-site.xml to push to Nexus. This is a
195 # workaround to Maven Site's default linking code which creates
196 # incorrect URLs for sites due to auto-detection assuming your
197 # project is configured in a certain way which ODL is not.
200 maven-version: '{mvn33}'
202 goals: 'site:deploy -V -B -Dstream={stream}'
205 settings: 'armoury-settings'
207 global-settings: 'odl-global-settings'
208 global-settings-type: cfp
210 maven-version: '{mvn33}'
212 goals: 'site:deploy -V -B -Dstream={stream}'
215 settings: 'armoury-settings'
217 global-settings: 'odl-global-settings'
218 global-settings-type: cfp
225 artifacts: '**/target/surefire-reports/*-output.txt, '
226 - email-notification:
227 email-prefix: '[armoury]'
231 deploy-unstable: false
234 maven-version: '{mvn33}'
237 name: 'armoury-periodic-{stream}'
240 # Job template for periodic builders
242 # The purpose of this job template is to setup a periodic
245 # Required Variables:
246 # stream: release stream (eg. stable-lithium or beryllium)
247 # branch: git branch (eg. stable/lithium or master)
256 artifactDaysToKeep: '{build-artifact-days-to-keep}'
257 artifactNumToKeep: '{build-artifact-num-to-keep}'
269 - opendaylight-infra-wrappers:
270 build-timeout: '{build-timeout}'
276 - jacoco-nojava-workaround
277 - provide-maven-settings:
278 global-settings-file: 'odl-global-settings'
279 settings-file: 'armoury-settings'
282 maven-name: '{mvn33}'
284 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
285 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
286 settings: 'armoury-settings'
288 global-settings: 'odl-global-settings'
289 global-settings-type: cfp
295 - email-notification:
296 email-prefix: '[armoury]'
299 maven-version: '{mvn33}'
302 name: 'armoury-distribution-{stream}'
304 # Required variables:
305 # stream: release stream (eg. stable-lithium or beryllium)
306 # branch: git branch (eg. stable/lithium or master)
313 daysToKeep: '{build-days-to-keep}'
314 numToKeep: '{build-num-to-keep}'
315 artifactDaysToKeep: '{build-artifact-days-to-keep}'
316 artifactNumToKeep: '{build-artifact-num-to-keep}'
320 project: 'integration/distribution'
328 - opendaylight-infra-wrappers:
329 build-timeout: '{build-timeout}'
333 jobs: '{project}-merge-{stream}'
337 - provide-maven-settings:
338 global-settings-file: 'odl-global-settings'
339 settings-file: 'armoury-settings'
342 maven-name: '{mvn33}'
344 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
345 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
346 settings: 'integration-distribution-settings'
348 global-settings: 'odl-global-settings'
349 global-settings-type: cfp
352 - email-notification:
353 email-prefix: '[{project}]'
357 deploy-unstable: false
359 maven-version: '{mvn33}'
361 # Template: integration-patch-distribution-{stream}
362 # Goal: Build a patch and make sure the distribution can deploy with this change
363 # Operation: This job template builds a patch, creates a distribution containing
364 # the patch, and triggers the distribution deploy test
367 name: 'armoury-distribution-check-{stream}'
368 disabled: '{obj:disable_distribution_check}'
376 daysToKeep: '{build-days-to-keep}'
377 numToKeep: '{build-num-to-keep}'
378 artifactDaysToKeep: '{build-artifact-days-to-keep}'
379 artifactNumToKeep: '{build-artifact-num-to-keep}'
385 refspec: 'refs/heads/{branch}'
388 - integration-distribution-git-url
391 - integration-gerrit-scm:
392 basedir: '$GERRIT_PROJECT'
393 refspec: '$GERRIT_REFSPEC'
395 - integration-distribution-scm:
399 - opendaylight-infra-wrappers:
400 build-timeout: '{build-timeout}'
404 server-name: 'OpenDaylight'
406 - patchset-created-event:
407 exclude-drafts: 'true'
408 exclude-trivial-rebase: 'false'
409 exclude-no-code-change: 'true'
410 - draft-published-event
411 - comment-added-contains-event:
412 comment-contains-value: 'test-distribution'
413 - comment-added-contains-event:
414 comment-contains-value: 'reverify'
415 - comment-added-contains-event:
416 comment-contains-value: 'recheck'
418 - project-compare-type: 'ANT'
419 project-pattern: '{name}'
421 - branch-compare-type: 'ANT'
422 branch-pattern: '**/{branch}'
431 maven-version: '{mvn33}'
432 pom: '$GERRIT_PROJECT/pom.xml'
433 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}'
435 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
436 settings: 'armoury-settings'
438 global-settings: 'odl-global-settings'
439 global-settings-type: cfp
442 maven-name: '{mvn33}'
443 root-pom: 'distribution/pom.xml'
444 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
445 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
446 settings: 'armoury-settings'
448 global-settings: 'odl-global-settings'
449 global-settings-type: cfp
450 ignore-upstream-changes: true
451 post-step-run-condition: 'SUCCESS'
454 - integration-distribution-check
457 - email-notification:
458 email-prefix: '[armoury]'
463 mkdir -p $WORKSPACE/archives
464 cp karaf*.log $WORKSPACE/archives
465 script-only-if-succeeded: False
466 script-only-if-failed: False
467 mark-unstable-if-failed: True
469 maven-version: '{mvn33}'
472 name: 'armoury-integration-{stream}'
475 # Job template for ODL integration verify jobs
477 # This is similar to a normal verify job, but it runs
478 # when a project that's a dependency of your project
479 # is successfully built.
481 # Required Variables:
482 # stream: release stream (eg. stable-lithium or beryllium)
483 # branch: git branch (eg. stable/lithium or master)
490 daysToKeep: '{build-days-to-keep}'
491 numToKeep: '{build-num-to-keep}'
492 artifactDaysToKeep: '{build-artifact-days-to-keep}'
493 artifactNumToKeep: '{build-artifact-num-to-keep}'
505 - opendaylight-infra-wrappers:
506 build-timeout: '{build-timeout}'
510 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream}'
514 - jacoco-nojava-workaround
515 - provide-maven-settings:
516 global-settings-file: 'odl-global-settings'
517 settings-file: 'armoury-settings'
520 maven-name: '{mvn33}'
522 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
523 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
524 settings: 'armoury-settings'
526 global-settings: 'odl-global-settings'
527 global-settings-type: cfp
533 - email-notification:
534 email-prefix: '[armoury] [odlparent] [yangtools] [controller] [mdsal]'
537 maven-version: '{mvn33}'
540 name: 'armoury-sonar'
550 artifactDaysToKeep: '1'
551 artifactNumToKeep: '1'
563 - opendaylight-infra-wrappers:
564 build-timeout: '{build-timeout}'
568 - gerrit-trigger-patch-sonar:
572 - jacoco-nojava-workaround
573 - provide-maven-settings:
574 global-settings-file: 'odl-global-settings'
575 settings-file: 'armoury-settings'
578 maven-name: '{mvn33}'
580 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
581 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
582 settings: 'armoury-settings'
584 global-settings: 'odl-global-settings'
585 global-settings-type: cfp
593 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
594 - email-notification:
595 email-prefix: '[armoury]'
598 maven-version: '{mvn33}'
601 name: 'armoury-clm-{stream}'
609 daysToKeep: '{build-days-to-keep}'
610 numToKeep: '{build-num-to-keep}'
611 artifactDaysToKeep: '{build-artifact-days-to-keep}'
612 artifactNumToKeep: '{build-artifact-num-to-keep}'
624 - opendaylight-infra-wrappers:
625 build-timeout: '{build-timeout}'
631 - provide-maven-settings:
632 global-settings-file: 'odl-global-settings'
633 settings-file: 'armoury-settings'
636 maven-name: '{mvn33}'
638 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'
639 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
640 settings: 'armoury-settings'
642 global-settings: 'odl-global-settings'
643 global-settings-type: cfp
646 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
648 application-name: armoury
651 - email-notification:
652 email-prefix: '[armoury]'
654 maven-version: '{mvn33}'
657 name: 'armoury-validate-autorelease-{stream}'
658 disabled: '{obj:disable_autorelease}'
666 daysToKeep: '{build-days-to-keep}'
667 numToKeep: '{build-num-to-keep}'
668 artifactDaysToKeep: '{build-artifact-days-to-keep}'
669 artifactNumToKeep: '{build-artifact-num-to-keep}'
677 refspec: 'refs/heads/{branch}'
678 - autorelease-release-tag:
679 release-tag: 'validate'
680 - autorelease-release-branch:
681 release-branch: '{branch}'
684 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
685 description: "Autorelease clone URL"
690 credentials-id: 'opendaylight-jenkins-ssh'
700 - opendaylight-infra-wrappers:
701 build-timeout: '{build-timeout}'
705 server-name: 'OpenDaylight'
707 - patchset-created-event:
708 exclude-drafts: 'true'
709 exclude-trivial-rebase: 'false'
710 exclude-no-code-change: 'true'
711 - draft-published-event
712 - comment-added-contains-event:
713 comment-contains-value: 'recheck'
714 - comment-added-contains-event:
715 comment-contains-value: 'reverify'
716 - comment-added-contains-event:
717 comment-contains-value: 'revalidate'
719 - project-compare-type: 'ANT'
720 project-pattern: 'armoury'
722 - branch-compare-type: 'ANT'
723 branch-pattern: '**/{branch}'
729 - jacoco-nojava-workaround
730 - autorelease-checkout-gerrit-patch
731 - autorelease-generate-release-patches
733 maven-version: '{mvn33}'
734 pom: validate-pom.xml
735 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'
738 settings: 'autorelease-settings'
740 global-settings: 'odl-global-settings'
741 global-settings-type: cfp
744 maven-name: '{mvn33}'
746 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
747 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
748 settings: 'autorelease-settings'
750 global-settings: 'odl-global-settings'
751 global-settings-type: cfp
752 automatic-archiving: false
753 post-step-run-condition: UNSTABLE
756 - autorelease-sys-stats
759 - email-notification:
760 email-prefix: '[autorelease] [armoury]'
762 maven-version: '{mvn33}'