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)
73 refspec: 'refs/heads/{branch}'
77 credentials-id: '{ssh-credentials}'
78 refspec: '$GERRIT_REFSPEC'
79 choosing-strategy: 'gerrit'
83 - ssh-agent-credentials:
88 - gerrit-trigger-patch-submitted:
93 - jacoco-nojava-workaround
94 - provide-maven-settings:
95 global-settings-file: 'odl-global-settings'
96 settings-file: 'ocpplugin-settings'
98 maven-version: '{mvn33}'
100 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
102 - '-Xmx1024m -XX:MaxPermSize=256m'
103 settings: 'ocpplugin-settings'
105 global-settings: 'odl-global-settings'
106 global-settings-type: cfp
110 artifacts: '**/target/surefire-reports/*-output.txt, '
112 - email-notification:
113 email-prefix: '[ocpplugin]'
116 maven-version: '{mvn33}'
119 name: 'ocpplugin-merge-{stream}'
121 # Job template for ODL merge jobs
123 # The purpose of this job template is to setup a ODL merge job
124 # and deploy artifacts to Nexus.
126 # Required Variables:
127 # stream: release stream (eg. stable-lithium or beryllium)
128 # branch: git branch (eg. stable/lithium or master)
137 artifactDaysToKeep: '{build-artifact-days-to-keep}'
138 artifactNumToKeep: '{build-artifact-num-to-keep}'
146 refspec: 'refs/heads/{branch}'
149 - gerrit-trigger-scm:
150 credentials-id: '{ssh-credentials}'
152 choosing-strategy: 'default'
156 - ssh-agent-credentials:
158 - '{ssh-credentials}'
164 - gerrit-trigger-patch-merged:
169 - jacoco-nojava-workaround
170 - provide-maven-settings:
171 global-settings-file: 'odl-global-settings'
172 settings-file: 'ocpplugin-settings'
175 maven-name: '{mvn33}'
177 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
178 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
179 settings: 'ocpplugin-settings'
181 global-settings: 'odl-global-settings'
182 global-settings-type: cfp
183 post-step-run-condition: UNSTABLE
187 condition-kind: file-exists
188 condition-filename: deploy-site.xml
189 condition-basedir: workspace
191 # The strategy here is intentional to run Maven site:deploy twice
192 # once using regular pom.xml to produce a staged-site which is
193 # then used by deploy-site.xml to push to Nexus. This is a
194 # workaround to Maven Site's default linking code which creates
195 # incorrect URLs for sites due to auto-detection assuming your
196 # project is configured in a certain way which ODL is not.
199 maven-version: '{mvn33}'
201 goals: 'site:deploy -V -B -Dstream={stream}'
204 settings: 'ocpplugin-settings'
206 global-settings: 'odl-global-settings'
207 global-settings-type: cfp
209 maven-version: '{mvn33}'
211 goals: 'site:deploy -V -B -Dstream={stream}'
214 settings: 'ocpplugin-settings'
216 global-settings: 'odl-global-settings'
217 global-settings-type: cfp
224 artifacts: '**/target/surefire-reports/*-output.txt, '
225 - email-notification:
226 email-prefix: '[ocpplugin]'
230 deploy-unstable: false
233 maven-version: '{mvn33}'
236 name: 'ocpplugin-periodic-{stream}'
239 # Job template for periodic builders
241 # The purpose of this job template is to setup a periodic
244 # Required Variables:
245 # stream: release stream (eg. stable-lithium or beryllium)
246 # branch: git branch (eg. stable/lithium or master)
255 artifactDaysToKeep: '{build-artifact-days-to-keep}'
256 artifactNumToKeep: '{build-artifact-num-to-keep}'
264 credentials-id: '{ssh-credentials}'
270 - ssh-agent-credentials:
272 - '{ssh-credentials}'
280 - jacoco-nojava-workaround
281 - provide-maven-settings:
282 global-settings-file: 'odl-global-settings'
283 settings-file: 'ocpplugin-settings'
286 maven-name: '{mvn33}'
288 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
289 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
290 settings: 'ocpplugin-settings'
292 global-settings: 'odl-global-settings'
293 global-settings-type: cfp
299 - email-notification:
300 email-prefix: '[ocpplugin]'
303 maven-version: '{mvn33}'
306 name: 'ocpplugin-distribution-{stream}'
308 # Required variables:
309 # stream: release stream (eg. stable-lithium or beryllium)
310 # branch: git branch (eg. stable/lithium or master)
317 daysToKeep: '{build-days-to-keep}'
318 numToKeep: '{build-num-to-keep}'
319 artifactDaysToKeep: '{build-artifact-days-to-keep}'
320 artifactNumToKeep: '{build-artifact-num-to-keep}'
324 project: 'integration/distribution'
328 credentials-id: '{ssh-credentials}'
334 - ssh-agent-credentials:
336 - '{ssh-credentials}'
342 jobs: '{project}-merge-{stream}'
346 - provide-maven-settings:
347 global-settings-file: 'odl-global-settings'
348 settings-file: 'ocpplugin-settings'
351 maven-name: '{mvn33}'
353 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
354 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
355 settings: 'integration-distribution-settings'
357 global-settings: 'odl-global-settings'
358 global-settings-type: cfp
361 - email-notification:
362 email-prefix: '[{project}]'
366 deploy-unstable: false
368 maven-version: '{mvn33}'
370 # Template: integration-patch-distribution-{stream}
371 # Goal: Build a patch and make sure the distribution can deploy with this change
372 # Operation: This job template builds a patch, creates a distribution containing
373 # the patch, and triggers the distribution deploy test
376 name: 'ocpplugin-distribution-check-{stream}'
377 disabled: '{obj:disable_distribution_check}'
385 daysToKeep: '{build-days-to-keep}'
386 numToKeep: '{build-num-to-keep}'
387 artifactDaysToKeep: '{build-artifact-days-to-keep}'
388 artifactNumToKeep: '{build-artifact-num-to-keep}'
394 refspec: 'refs/heads/{branch}'
397 - integration-distribution-git-url
400 - integration-gerrit-scm:
401 credentials-id: '{ssh-credentials}'
402 basedir: '$GERRIT_PROJECT'
403 refspec: '$GERRIT_REFSPEC'
405 - integration-distribution-scm:
406 credentials-id: '{ssh-credentials}'
411 - ssh-agent-credentials:
413 - '{ssh-credentials}'
419 server-name: 'OpenDaylight'
421 - patchset-created-event:
422 exclude-drafts: 'true'
423 exclude-trivial-rebase: 'false'
424 exclude-no-code-change: 'true'
425 - draft-published-event
426 - comment-added-contains-event:
427 comment-contains-value: 'test-distribution'
428 - comment-added-contains-event:
429 comment-contains-value: 'reverify'
430 - comment-added-contains-event:
431 comment-contains-value: 'recheck'
433 - project-compare-type: 'ANT'
434 project-pattern: '{name}'
436 - branch-compare-type: 'ANT'
437 branch-pattern: '**/{branch}'
446 maven-version: '{mvn33}'
447 pom: '$GERRIT_PROJECT/pom.xml'
448 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}'
450 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
451 settings: 'ocpplugin-settings'
453 global-settings: 'odl-global-settings'
454 global-settings-type: cfp
457 maven-name: '{mvn33}'
458 root-pom: 'distribution/pom.xml'
459 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
460 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
461 settings: 'ocpplugin-settings'
463 global-settings: 'odl-global-settings'
464 global-settings-type: cfp
465 ignore-upstream-changes: true
466 post-step-run-condition: 'SUCCESS'
469 - integration-distribution-check
473 artifacts: 'karaf.log'
475 artifacts: 'karaf_console.log'
476 - email-notification:
477 email-prefix: '[ocpplugin]'
479 maven-version: '{mvn33}'
482 name: 'ocpplugin-integration-{stream}'
485 # Job template for ODL integration verify jobs
487 # This is similar to a normal verify job, but it runs
488 # when a project that's a dependency of your project
489 # is successfully built.
491 # Required Variables:
492 # stream: release stream (eg. stable-lithium or beryllium)
493 # branch: git branch (eg. stable/lithium or master)
500 daysToKeep: '{build-days-to-keep}'
501 numToKeep: '{build-num-to-keep}'
502 artifactDaysToKeep: '{build-artifact-days-to-keep}'
503 artifactNumToKeep: '{build-artifact-num-to-keep}'
511 credentials-id: '{ssh-credentials}'
517 - ssh-agent-credentials:
519 - '{ssh-credentials}'
525 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}'
529 - jacoco-nojava-workaround
530 - provide-maven-settings:
531 global-settings-file: 'odl-global-settings'
532 settings-file: 'ocpplugin-settings'
535 maven-name: '{mvn33}'
537 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
538 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
539 settings: 'ocpplugin-settings'
541 global-settings: 'odl-global-settings'
542 global-settings-type: cfp
548 - email-notification:
549 email-prefix: '[ocpplugin] [odlparent] [yangtools] [controller]'
552 maven-version: '{mvn33}'
555 name: 'ocpplugin-sonar'
565 artifactDaysToKeep: '1'
566 artifactNumToKeep: '1'
574 credentials-id: '{ssh-credentials}'
580 - ssh-agent-credentials:
582 - '{ssh-credentials}'
588 - gerrit-trigger-patch-sonar:
592 - jacoco-nojava-workaround
593 - provide-maven-settings:
594 global-settings-file: 'odl-global-settings'
595 settings-file: 'ocpplugin-settings'
598 maven-name: '{mvn33}'
600 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
601 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
602 settings: 'ocpplugin-settings'
604 global-settings: 'odl-global-settings'
605 global-settings-type: cfp
613 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
614 - email-notification:
615 email-prefix: '[ocpplugin]'
618 maven-version: '{mvn33}'
621 name: 'ocpplugin-clm-{stream}'
629 daysToKeep: '{build-days-to-keep}'
630 numToKeep: '{build-num-to-keep}'
631 artifactDaysToKeep: '{build-artifact-days-to-keep}'
632 artifactNumToKeep: '{build-artifact-num-to-keep}'
640 credentials-id: '{ssh-credentials}'
646 - ssh-agent-credentials:
648 - '{ssh-credentials}'
656 - provide-maven-settings:
657 global-settings-file: 'odl-global-settings'
658 settings-file: 'ocpplugin-settings'
661 maven-name: '{mvn33}'
663 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'
664 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
665 settings: 'ocpplugin-settings'
667 global-settings: 'odl-global-settings'
668 global-settings-type: cfp
671 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
673 application-name: ocpplugin
676 - email-notification:
677 email-prefix: '[ocpplugin]'
679 maven-version: '{mvn33}'
682 name: 'ocpplugin-validate-autorelease-{stream}'
683 disabled: '{obj:disable_autorelease}'
691 daysToKeep: '{build-days-to-keep}'
692 numToKeep: '{build-num-to-keep}'
693 artifactDaysToKeep: '{build-artifact-days-to-keep}'
694 artifactNumToKeep: '{build-artifact-num-to-keep}'
702 refspec: 'refs/heads/{branch}'
703 - autorelease-release-tag:
704 release-tag: 'validate'
705 - autorelease-release-branch:
706 release-branch: '{branch}'
709 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
710 description: "Autorelease clone URL"
715 credentials-id: '{ssh-credentials}'
725 - autorelease-build-timeout
726 - ssh-agent-credentials:
728 - '{ssh-credentials}'
734 server-name: 'OpenDaylight'
736 - patchset-created-event:
737 exclude-drafts: 'true'
738 exclude-trivial-rebase: 'false'
739 exclude-no-code-change: 'true'
740 - draft-published-event
741 - comment-added-contains-event:
742 comment-contains-value: 'recheck'
743 - comment-added-contains-event:
744 comment-contains-value: 'reverify'
745 - comment-added-contains-event:
746 comment-contains-value: 'revalidate'
748 - project-compare-type: 'ANT'
749 project-pattern: 'ocpplugin'
751 - branch-compare-type: 'ANT'
752 branch-pattern: '**/{branch}'
758 - jacoco-nojava-workaround
759 - autorelease-checkout-gerrit-patch
760 - autorelease-generate-release-patches
762 maven-version: '{mvn33}'
763 pom: validate-pom.xml
764 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'
767 settings: 'autorelease-settings'
769 global-settings: 'odl-global-settings'
770 global-settings-type: cfp
773 maven-name: '{mvn33}'
775 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
776 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
777 settings: 'autorelease-settings'
779 global-settings: 'odl-global-settings'
780 global-settings-type: cfp
781 automatic-archiving: false
782 post-step-run-condition: UNSTABLE
785 - autorelease-sys-stats
788 - email-notification:
789 email-prefix: '[autorelease] [ocpplugin]'
791 maven-version: '{mvn33}'