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 - 'ocpplugin-verify-{stream}'
10 - 'ocpplugin-merge-{stream}'
11 - 'ocpplugin-periodic-{stream}'
12 - 'ocpplugin-distribution-{stream}'
13 - 'ocpplugin-distribution-check-{stream}'
14 - 'ocpplugin-integration-{stream}'
16 - 'ocpplugin-clm-{stream}'
17 - 'ocpplugin-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
28 disable_autorelease: False
29 disable_distribution_check: False
33 # For the Job templates below replace instances of:
34 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
35 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
36 # MAVEN_GOALS with your maven goals to build
37 # MAVEN_OPTS with your maven options to build
40 name: 'ocpplugin-verify-{stream}'
42 # Job template for ODL verify jobs
44 # The purpose of this job template is to setup a ODL verify job
47 # stream: release stream (eg. stable-lithium or beryllium)
48 # branch: git branch (eg. stable/lithium or master)
65 daysToKeep: '{build-days-to-keep}'
66 numToKeep: '{build-num-to-keep}'
67 artifactDaysToKeep: '{build-artifact-days-to-keep}'
68 artifactNumToKeep: '{build-artifact-num-to-keep}'
76 refspec: 'refs/heads/{branch}'
80 credentials-id: '{ssh-credentials}'
81 refspec: '$GERRIT_REFSPEC'
82 choosing-strategy: 'gerrit'
86 - ssh-agent-credentials:
91 - gerrit-trigger-patch-submitted:
96 - jacoco-nojava-workaround
97 - provide-maven-settings:
98 global-settings-file: 'odl-global-settings'
99 settings-file: 'ocpplugin-settings'
101 maven-version: '{mvn33}'
103 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
105 - '-Xmx1024m -XX:MaxPermSize=256m'
106 settings: 'ocpplugin-settings'
108 global-settings: 'odl-global-settings'
109 global-settings-type: cfp
113 artifacts: '**/target/surefire-reports/*-output.txt, '
115 - email-notification:
116 email-prefix: '[ocpplugin]'
119 maven-version: '{mvn33}'
122 name: 'ocpplugin-merge-{stream}'
124 # Job template for ODL merge jobs
126 # The purpose of this job template is to setup a ODL merge job
127 # and deploy artifacts to Nexus.
129 # Required Variables:
130 # stream: release stream (eg. stable-lithium or beryllium)
131 # branch: git branch (eg. stable/lithium or master)
140 artifactDaysToKeep: '{build-artifact-days-to-keep}'
141 artifactNumToKeep: '{build-artifact-num-to-keep}'
149 refspec: 'refs/heads/{branch}'
152 - gerrit-trigger-scm:
153 credentials-id: '{ssh-credentials}'
155 choosing-strategy: 'default'
159 - ssh-agent-credentials:
161 - '{ssh-credentials}'
165 - gerrit-trigger-patch-merged:
170 - jacoco-nojava-workaround
171 - provide-maven-settings:
172 global-settings-file: 'odl-global-settings'
173 settings-file: 'ocpplugin-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: '-Xmx1024m -XX:MaxPermSize=256m'
180 settings: 'ocpplugin-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: 'ocpplugin-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: 'ocpplugin-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: '[ocpplugin]'
231 deploy-unstable: false
234 maven-version: '{mvn33}'
237 name: 'ocpplugin-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}'
265 credentials-id: '{ssh-credentials}'
271 - ssh-agent-credentials:
273 - '{ssh-credentials}'
279 - jacoco-nojava-workaround
280 - provide-maven-settings:
281 global-settings-file: 'odl-global-settings'
282 settings-file: 'ocpplugin-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: '-Xmx1024m -XX:MaxPermSize=256m'
289 settings: 'ocpplugin-settings'
291 global-settings: 'odl-global-settings'
292 global-settings-type: cfp
298 - email-notification:
299 email-prefix: '[ocpplugin]'
302 maven-version: '{mvn33}'
305 name: 'ocpplugin-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}'
333 - ssh-agent-credentials:
335 - '{ssh-credentials}'
339 jobs: '{project}-merge-{stream}'
343 - provide-maven-settings:
344 global-settings-file: 'odl-global-settings'
345 settings-file: 'ocpplugin-settings'
348 maven-name: '{mvn33}'
350 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
351 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
352 settings: 'integration-distribution-settings'
354 global-settings: 'odl-global-settings'
355 global-settings-type: cfp
358 - email-notification:
359 email-prefix: '[{project}]'
363 deploy-unstable: false
365 maven-version: '{mvn33}'
367 # Template: integration-patch-distribution-{stream}
368 # Goal: Build a patch and make sure the distribution can deploy with this change
369 # Operation: This job template builds a patch, creates a distribution containing
370 # the patch, and triggers the distribution deploy test
373 name: 'ocpplugin-distribution-check-{stream}'
374 disabled: '{obj:disable_distribution_check}'
382 daysToKeep: '{build-days-to-keep}'
383 numToKeep: '{build-num-to-keep}'
384 artifactDaysToKeep: '{build-artifact-days-to-keep}'
385 artifactNumToKeep: '{build-artifact-num-to-keep}'
391 refspec: 'refs/heads/{branch}'
394 - integration-distribution-git-url
397 - integration-gerrit-scm:
398 credentials-id: '{ssh-credentials}'
399 basedir: '$GERRIT_PROJECT'
400 refspec: '$GERRIT_REFSPEC'
402 - integration-distribution-scm:
403 credentials-id: '{ssh-credentials}'
408 - ssh-agent-credentials:
410 - '{ssh-credentials}'
414 server-name: 'OpenDaylight'
416 - patchset-created-event:
417 exclude-drafts: 'true'
418 exclude-trivial-rebase: 'false'
419 exclude-no-code-change: 'true'
420 - draft-published-event
421 - comment-added-contains-event:
422 comment-contains-value: 'test-distribution'
423 - comment-added-contains-event:
424 comment-contains-value: 'reverify'
425 - comment-added-contains-event:
426 comment-contains-value: 'recheck'
428 - project-compare-type: 'ANT'
429 project-pattern: '{name}'
431 - branch-compare-type: 'ANT'
432 branch-pattern: '**/{branch}'
441 maven-version: '{mvn33}'
442 pom: '$GERRIT_PROJECT/pom.xml'
443 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}'
445 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
446 settings: 'ocpplugin-settings'
448 global-settings: 'odl-global-settings'
449 global-settings-type: cfp
452 maven-name: '{mvn33}'
453 root-pom: 'distribution/pom.xml'
454 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
455 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
456 settings: 'ocpplugin-settings'
458 global-settings: 'odl-global-settings'
459 global-settings-type: cfp
460 ignore-upstream-changes: true
461 post-step-run-condition: 'SUCCESS'
464 - integration-distribution-check
468 artifacts: 'karaf.log'
470 artifacts: 'karaf_console.log'
471 - email-notification:
472 email-prefix: '[ocpplugin]'
474 maven-version: '{mvn33}'
477 name: 'ocpplugin-integration-{stream}'
480 # Job template for ODL integration verify jobs
482 # This is similar to a normal verify job, but it runs
483 # when a project that's a dependency of your project
484 # is successfully built.
486 # Required Variables:
487 # stream: release stream (eg. stable-lithium or beryllium)
488 # branch: git branch (eg. stable/lithium or master)
495 daysToKeep: '{build-days-to-keep}'
496 numToKeep: '{build-num-to-keep}'
497 artifactDaysToKeep: '{build-artifact-days-to-keep}'
498 artifactNumToKeep: '{build-artifact-num-to-keep}'
506 credentials-id: '{ssh-credentials}'
512 - ssh-agent-credentials:
514 - '{ssh-credentials}'
518 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}'
522 - jacoco-nojava-workaround
523 - provide-maven-settings:
524 global-settings-file: 'odl-global-settings'
525 settings-file: 'ocpplugin-settings'
528 maven-name: '{mvn33}'
530 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
531 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
532 settings: 'ocpplugin-settings'
534 global-settings: 'odl-global-settings'
535 global-settings-type: cfp
541 - email-notification:
542 email-prefix: '[ocpplugin] [odlparent] [yangtools] [controller]'
545 maven-version: '{mvn33}'
548 name: 'ocpplugin-sonar'
558 artifactDaysToKeep: '1'
559 artifactNumToKeep: '1'
567 credentials-id: '{ssh-credentials}'
573 - ssh-agent-credentials:
575 - '{ssh-credentials}'
579 - gerrit-trigger-patch-sonar:
583 - jacoco-nojava-workaround
584 - provide-maven-settings:
585 global-settings-file: 'odl-global-settings'
586 settings-file: 'ocpplugin-settings'
589 maven-name: '{mvn33}'
591 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
592 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
593 settings: 'ocpplugin-settings'
595 global-settings: 'odl-global-settings'
596 global-settings-type: cfp
604 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
605 - email-notification:
606 email-prefix: '[ocpplugin]'
609 maven-version: '{mvn33}'
612 name: 'ocpplugin-clm-{stream}'
620 daysToKeep: '{build-days-to-keep}'
621 numToKeep: '{build-num-to-keep}'
622 artifactDaysToKeep: '{build-artifact-days-to-keep}'
623 artifactNumToKeep: '{build-artifact-num-to-keep}'
631 credentials-id: '{ssh-credentials}'
637 - ssh-agent-credentials:
639 - '{ssh-credentials}'
645 - provide-maven-settings:
646 global-settings-file: 'odl-global-settings'
647 settings-file: 'ocpplugin-settings'
650 maven-name: '{mvn33}'
652 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'
653 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
654 settings: 'ocpplugin-settings'
656 global-settings: 'odl-global-settings'
657 global-settings-type: cfp
660 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
662 application-name: ocpplugin
665 - email-notification:
666 email-prefix: '[ocpplugin]'
668 maven-version: '{mvn33}'
671 name: 'ocpplugin-validate-autorelease-{stream}'
672 disabled: '{obj:disable_autorelease}'
680 daysToKeep: '{build-days-to-keep}'
681 numToKeep: '{build-num-to-keep}'
682 artifactDaysToKeep: '{build-artifact-days-to-keep}'
683 artifactNumToKeep: '{build-artifact-num-to-keep}'
691 refspec: 'refs/heads/{branch}'
692 - autorelease-release-tag:
693 release-tag: 'validate'
694 - autorelease-release-branch:
695 release-branch: '{branch}'
698 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
699 description: "Autorelease clone URL"
704 credentials-id: '{ssh-credentials}'
714 - autorelease-build-timeout
715 - ssh-agent-credentials:
717 - '{ssh-credentials}'
721 server-name: 'OpenDaylight'
723 - patchset-created-event:
724 exclude-drafts: 'true'
725 exclude-trivial-rebase: 'false'
726 exclude-no-code-change: 'true'
727 - draft-published-event
728 - comment-added-contains-event:
729 comment-contains-value: 'recheck'
730 - comment-added-contains-event:
731 comment-contains-value: 'reverify'
732 - comment-added-contains-event:
733 comment-contains-value: 'revalidate'
735 - project-compare-type: 'ANT'
736 project-pattern: 'ocpplugin'
738 - branch-compare-type: 'ANT'
739 branch-pattern: '**/{branch}'
745 - jacoco-nojava-workaround
746 - autorelease-checkout-gerrit-patch
747 - autorelease-generate-release-patches
749 maven-version: '{mvn33}'
750 pom: validate-pom.xml
751 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'
754 settings: 'autorelease-settings'
756 global-settings: 'odl-global-settings'
757 global-settings-type: cfp
760 maven-name: '{mvn33}'
762 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
763 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
764 settings: 'autorelease-settings'
766 global-settings: 'odl-global-settings'
767 global-settings-type: cfp
768 automatic-archiving: false
769 post-step-run-condition: UNSTABLE
772 - autorelease-sys-stats
775 - email-notification:
776 email-prefix: '[autorelease] [ocpplugin]'
778 maven-version: '{mvn33}'