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 credentials-id: '{ssh-credentials}'
87 refspec: '$GERRIT_REFSPEC'
88 choosing-strategy: 'gerrit'
91 - opendaylight-infra-wrappers:
92 build-timeout: '{build-timeout}'
95 - gerrit-trigger-patch-submitted:
100 - jacoco-nojava-workaround
101 - provide-maven-settings:
102 global-settings-file: 'odl-global-settings'
103 settings-file: 'armoury-settings'
105 maven-version: '{mvn33}'
107 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
109 - '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
110 settings: 'armoury-settings'
112 global-settings: 'odl-global-settings'
113 global-settings-type: cfp
117 artifacts: '**/target/surefire-reports/*-output.txt, '
119 - email-notification:
120 email-prefix: '[armoury]'
123 maven-version: '{mvn33}'
126 name: 'armoury-merge-{stream}'
128 # Job template for ODL merge jobs
130 # The purpose of this job template is to setup a ODL merge job
131 # and deploy artifacts to Nexus.
133 # Required Variables:
134 # stream: release stream (eg. stable-lithium or beryllium)
135 # branch: git branch (eg. stable/lithium or master)
144 artifactDaysToKeep: '{build-artifact-days-to-keep}'
145 artifactNumToKeep: '{build-artifact-num-to-keep}'
153 refspec: 'refs/heads/{branch}'
156 - gerrit-trigger-scm:
157 credentials-id: '{ssh-credentials}'
159 choosing-strategy: 'default'
162 - opendaylight-infra-wrappers:
163 build-timeout: '{build-timeout}'
167 - gerrit-trigger-patch-merged:
172 - jacoco-nojava-workaround
173 - provide-maven-settings:
174 global-settings-file: 'odl-global-settings'
175 settings-file: 'armoury-settings'
178 maven-name: '{mvn33}'
180 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
181 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
182 settings: 'armoury-settings'
184 global-settings: 'odl-global-settings'
185 global-settings-type: cfp
186 post-step-run-condition: UNSTABLE
190 condition-kind: file-exists
191 condition-filename: deploy-site.xml
192 condition-basedir: workspace
194 # The strategy here is intentional to run Maven site:deploy twice
195 # once using regular pom.xml to produce a staged-site which is
196 # then used by deploy-site.xml to push to Nexus. This is a
197 # workaround to Maven Site's default linking code which creates
198 # incorrect URLs for sites due to auto-detection assuming your
199 # project is configured in a certain way which ODL is not.
202 maven-version: '{mvn33}'
204 goals: 'site:deploy -V -B -Dstream={stream}'
207 settings: 'armoury-settings'
209 global-settings: 'odl-global-settings'
210 global-settings-type: cfp
212 maven-version: '{mvn33}'
214 goals: 'site:deploy -V -B -Dstream={stream}'
217 settings: 'armoury-settings'
219 global-settings: 'odl-global-settings'
220 global-settings-type: cfp
227 artifacts: '**/target/surefire-reports/*-output.txt, '
228 - email-notification:
229 email-prefix: '[armoury]'
233 deploy-unstable: false
236 maven-version: '{mvn33}'
239 name: 'armoury-periodic-{stream}'
242 # Job template for periodic builders
244 # The purpose of this job template is to setup a periodic
247 # Required Variables:
248 # stream: release stream (eg. stable-lithium or beryllium)
249 # branch: git branch (eg. stable/lithium or master)
258 artifactDaysToKeep: '{build-artifact-days-to-keep}'
259 artifactNumToKeep: '{build-artifact-num-to-keep}'
267 credentials-id: '{ssh-credentials}'
272 - opendaylight-infra-wrappers:
273 build-timeout: '{build-timeout}'
279 - jacoco-nojava-workaround
280 - provide-maven-settings:
281 global-settings-file: 'odl-global-settings'
282 settings-file: 'armoury-settings'
285 maven-name: '{mvn33}'
287 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
288 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
289 settings: 'armoury-settings'
291 global-settings: 'odl-global-settings'
292 global-settings-type: cfp
298 - email-notification:
299 email-prefix: '[armoury]'
302 maven-version: '{mvn33}'
305 name: 'armoury-distribution-{stream}'
307 # Required variables:
308 # stream: release stream (eg. stable-lithium or beryllium)
309 # branch: git branch (eg. stable/lithium or master)
316 daysToKeep: '{build-days-to-keep}'
317 numToKeep: '{build-num-to-keep}'
318 artifactDaysToKeep: '{build-artifact-days-to-keep}'
319 artifactNumToKeep: '{build-artifact-num-to-keep}'
323 project: 'integration/distribution'
327 credentials-id: '{ssh-credentials}'
332 - opendaylight-infra-wrappers:
333 build-timeout: '{build-timeout}'
337 jobs: '{project}-merge-{stream}'
341 - provide-maven-settings:
342 global-settings-file: 'odl-global-settings'
343 settings-file: 'armoury-settings'
346 maven-name: '{mvn33}'
348 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
349 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
350 settings: 'integration-distribution-settings'
352 global-settings: 'odl-global-settings'
353 global-settings-type: cfp
356 - email-notification:
357 email-prefix: '[{project}]'
361 deploy-unstable: false
363 maven-version: '{mvn33}'
365 # Template: integration-patch-distribution-{stream}
366 # Goal: Build a patch and make sure the distribution can deploy with this change
367 # Operation: This job template builds a patch, creates a distribution containing
368 # the patch, and triggers the distribution deploy test
371 name: 'armoury-distribution-check-{stream}'
372 disabled: '{obj:disable_distribution_check}'
380 daysToKeep: '{build-days-to-keep}'
381 numToKeep: '{build-num-to-keep}'
382 artifactDaysToKeep: '{build-artifact-days-to-keep}'
383 artifactNumToKeep: '{build-artifact-num-to-keep}'
389 refspec: 'refs/heads/{branch}'
392 - integration-distribution-git-url
395 - integration-gerrit-scm:
396 credentials-id: '{ssh-credentials}'
397 basedir: '$GERRIT_PROJECT'
398 refspec: '$GERRIT_REFSPEC'
400 - integration-distribution-scm:
401 credentials-id: '{ssh-credentials}'
405 - opendaylight-infra-wrappers:
406 build-timeout: '{build-timeout}'
410 server-name: 'OpenDaylight'
412 - patchset-created-event:
413 exclude-drafts: 'true'
414 exclude-trivial-rebase: 'false'
415 exclude-no-code-change: 'true'
416 - draft-published-event
417 - comment-added-contains-event:
418 comment-contains-value: 'test-distribution'
419 - comment-added-contains-event:
420 comment-contains-value: 'reverify'
421 - comment-added-contains-event:
422 comment-contains-value: 'recheck'
424 - project-compare-type: 'ANT'
425 project-pattern: '{name}'
427 - branch-compare-type: 'ANT'
428 branch-pattern: '**/{branch}'
437 maven-version: '{mvn33}'
438 pom: '$GERRIT_PROJECT/pom.xml'
439 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}'
441 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
442 settings: 'armoury-settings'
444 global-settings: 'odl-global-settings'
445 global-settings-type: cfp
448 maven-name: '{mvn33}'
449 root-pom: 'distribution/pom.xml'
450 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
451 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
452 settings: 'armoury-settings'
454 global-settings: 'odl-global-settings'
455 global-settings-type: cfp
456 ignore-upstream-changes: true
457 post-step-run-condition: 'SUCCESS'
460 - integration-distribution-check
463 - email-notification:
464 email-prefix: '[armoury]'
469 mkdir -p $WORKSPACE/archives
470 cp karaf*.log $WORKSPACE/archives
471 script-only-if-succeeded: False
472 script-only-if-failed: False
473 mark-unstable-if-failed: True
475 maven-version: '{mvn33}'
478 name: 'armoury-integration-{stream}'
481 # Job template for ODL integration verify jobs
483 # This is similar to a normal verify job, but it runs
484 # when a project that's a dependency of your project
485 # is successfully built.
487 # Required Variables:
488 # stream: release stream (eg. stable-lithium or beryllium)
489 # branch: git branch (eg. stable/lithium or master)
496 daysToKeep: '{build-days-to-keep}'
497 numToKeep: '{build-num-to-keep}'
498 artifactDaysToKeep: '{build-artifact-days-to-keep}'
499 artifactNumToKeep: '{build-artifact-num-to-keep}'
507 credentials-id: '{ssh-credentials}'
512 - opendaylight-infra-wrappers:
513 build-timeout: '{build-timeout}'
517 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream}'
521 - jacoco-nojava-workaround
522 - provide-maven-settings:
523 global-settings-file: 'odl-global-settings'
524 settings-file: 'armoury-settings'
527 maven-name: '{mvn33}'
529 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
530 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
531 settings: 'armoury-settings'
533 global-settings: 'odl-global-settings'
534 global-settings-type: cfp
540 - email-notification:
541 email-prefix: '[armoury] [odlparent] [yangtools] [controller] [mdsal]'
544 maven-version: '{mvn33}'
547 name: 'armoury-sonar'
557 artifactDaysToKeep: '1'
558 artifactNumToKeep: '1'
566 credentials-id: '{ssh-credentials}'
571 - opendaylight-infra-wrappers:
572 build-timeout: '{build-timeout}'
576 - gerrit-trigger-patch-sonar:
580 - jacoco-nojava-workaround
581 - provide-maven-settings:
582 global-settings-file: 'odl-global-settings'
583 settings-file: 'armoury-settings'
586 maven-name: '{mvn33}'
588 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
589 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
590 settings: 'armoury-settings'
592 global-settings: 'odl-global-settings'
593 global-settings-type: cfp
601 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
602 - email-notification:
603 email-prefix: '[armoury]'
606 maven-version: '{mvn33}'
609 name: 'armoury-clm-{stream}'
617 daysToKeep: '{build-days-to-keep}'
618 numToKeep: '{build-num-to-keep}'
619 artifactDaysToKeep: '{build-artifact-days-to-keep}'
620 artifactNumToKeep: '{build-artifact-num-to-keep}'
628 credentials-id: '{ssh-credentials}'
633 - opendaylight-infra-wrappers:
634 build-timeout: '{build-timeout}'
640 - provide-maven-settings:
641 global-settings-file: 'odl-global-settings'
642 settings-file: 'armoury-settings'
645 maven-name: '{mvn33}'
647 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'
648 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
649 settings: 'armoury-settings'
651 global-settings: 'odl-global-settings'
652 global-settings-type: cfp
655 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
657 application-name: armoury
660 - email-notification:
661 email-prefix: '[armoury]'
663 maven-version: '{mvn33}'
666 name: 'armoury-validate-autorelease-{stream}'
667 disabled: '{obj:disable_autorelease}'
675 daysToKeep: '{build-days-to-keep}'
676 numToKeep: '{build-num-to-keep}'
677 artifactDaysToKeep: '{build-artifact-days-to-keep}'
678 artifactNumToKeep: '{build-artifact-num-to-keep}'
686 refspec: 'refs/heads/{branch}'
687 - autorelease-release-tag:
688 release-tag: 'validate'
689 - autorelease-release-branch:
690 release-branch: '{branch}'
693 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
694 description: "Autorelease clone URL"
699 credentials-id: '{ssh-credentials}'
709 - opendaylight-infra-wrappers:
710 build-timeout: '{build-timeout}'
714 server-name: 'OpenDaylight'
716 - patchset-created-event:
717 exclude-drafts: 'true'
718 exclude-trivial-rebase: 'false'
719 exclude-no-code-change: 'true'
720 - draft-published-event
721 - comment-added-contains-event:
722 comment-contains-value: 'recheck'
723 - comment-added-contains-event:
724 comment-contains-value: 'reverify'
725 - comment-added-contains-event:
726 comment-contains-value: 'revalidate'
728 - project-compare-type: 'ANT'
729 project-pattern: 'armoury'
731 - branch-compare-type: 'ANT'
732 branch-pattern: '**/{branch}'
738 - jacoco-nojava-workaround
739 - autorelease-checkout-gerrit-patch
740 - autorelease-generate-release-patches
742 maven-version: '{mvn33}'
743 pom: validate-pom.xml
744 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'
747 settings: 'autorelease-settings'
749 global-settings: 'odl-global-settings'
750 global-settings-type: cfp
753 maven-name: '{mvn33}'
755 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
756 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
757 settings: 'autorelease-settings'
759 global-settings: 'odl-global-settings'
760 global-settings-type: cfp
761 automatic-archiving: false
762 post-step-run-condition: UNSTABLE
765 - autorelease-sys-stats
768 - email-notification:
769 email-prefix: '[autorelease] [armoury]'
771 maven-version: '{mvn33}'