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 - 'mdsal-verify-{stream}'
10 - 'mdsal-merge-{stream}'
11 - 'mdsal-periodic-{stream}'
12 - 'mdsal-distribution-{stream}'
13 - 'mdsal-distribution-check-{stream}'
14 - 'mdsal-integration-{stream}'
16 - 'mdsal-clm-{stream}'
17 - 'mdsal-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
31 branch: 'stable/beryllium'
36 disable_autorelease: False
37 disable_distribution_check: False
41 # For the Job templates below replace instances of:
42 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
43 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
44 # MAVEN_GOALS with your maven goals to build
45 # MAVEN_OPTS with your maven options to build
48 name: 'mdsal-verify-{stream}'
50 # Job template for ODL verify jobs
52 # The purpose of this job template is to setup a ODL verify job
55 # stream: release stream (eg. stable-lithium or beryllium)
56 # branch: git branch (eg. stable/lithium or master)
73 daysToKeep: '{build-days-to-keep}'
74 numToKeep: '{build-num-to-keep}'
75 artifactDaysToKeep: '{build-artifact-days-to-keep}'
76 artifactNumToKeep: '{build-artifact-num-to-keep}'
84 refspec: 'refs/heads/{branch}'
88 credentials-id: '{ssh-credentials}'
89 refspec: '$GERRIT_REFSPEC'
90 choosing-strategy: 'gerrit'
94 - ssh-agent-credentials:
99 - gerrit-trigger-patch-submitted:
104 - wipe-org-opendaylight-repo
105 - jacoco-nojava-workaround
106 - provide-maven-settings:
107 global-settings-file: 'odl-global-settings'
108 settings-file: 'mdsal-settings'
110 maven-version: '{mvn33}'
112 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dmaven.compile.fork=true clean install -Dintegrationtests -V -B -Djenkins -Dstream={stream}'
114 - '-Xmx2048m -XX:MaxPermSize=1024m'
115 settings: 'mdsal-settings'
117 global-settings: 'odl-global-settings'
118 global-settings-type: cfp
122 artifacts: '**/target/surefire-reports/*-output.txt, '
124 - email-notification:
125 email-prefix: '[mdsal]'
128 maven-version: '{mvn33}'
131 name: 'mdsal-merge-{stream}'
133 # Job template for ODL merge jobs
135 # The purpose of this job template is to setup a ODL merge job
136 # and deploy artifacts to Nexus.
138 # Required Variables:
139 # stream: release stream (eg. stable-lithium or beryllium)
140 # branch: git branch (eg. stable/lithium or master)
149 artifactDaysToKeep: '{build-artifact-days-to-keep}'
150 artifactNumToKeep: '{build-artifact-num-to-keep}'
158 refspec: 'refs/heads/{branch}'
161 - gerrit-trigger-scm:
162 credentials-id: '{ssh-credentials}'
164 choosing-strategy: 'default'
168 - ssh-agent-credentials:
170 - '{ssh-credentials}'
174 - gerrit-trigger-patch-merged:
179 - wipe-org-opendaylight-repo
180 - jacoco-nojava-workaround
181 - provide-maven-settings:
182 global-settings-file: 'odl-global-settings'
183 settings-file: 'mdsal-settings'
186 maven-name: '{mvn33}'
188 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dmaven.compile.fork=true clean install -Dintegrationtests -V -B -Djenkins -Dmerge -Dstream={stream}'
189 maven-opts: '-Xmx2048m -XX:MaxPermSize=1024m'
190 settings: 'mdsal-settings'
192 global-settings: 'odl-global-settings'
193 global-settings-type: cfp
194 post-step-run-condition: UNSTABLE
198 condition-kind: file-exists
199 condition-filename: deploy-site.xml
200 condition-basedir: workspace
202 # The strategy here is intentional to run Maven site:deploy twice
203 # once using regular pom.xml to produce a staged-site which is
204 # then used by deploy-site.xml to push to Nexus. This is a
205 # workaround to Maven Site's default linking code which creates
206 # incorrect URLs for sites due to auto-detection assuming your
207 # project is configured in a certain way which ODL is not.
210 maven-version: '{mvn33}'
212 goals: 'site:deploy -V -B -Dstream={stream}'
215 settings: 'mdsal-settings'
217 global-settings: 'odl-global-settings'
218 global-settings-type: cfp
220 maven-version: '{mvn33}'
222 goals: 'site:deploy -V -B -Dstream={stream}'
225 settings: 'mdsal-settings'
227 global-settings: 'odl-global-settings'
228 global-settings-type: cfp
235 artifacts: '**/target/surefire-reports/*-output.txt, '
236 - email-notification:
237 email-prefix: '[mdsal]'
241 deploy-unstable: false
244 maven-version: '{mvn33}'
247 name: 'mdsal-periodic-{stream}'
250 # Job template for periodic builders
252 # The purpose of this job template is to setup a periodic
255 # Required Variables:
256 # stream: release stream (eg. stable-lithium or beryllium)
257 # branch: git branch (eg. stable/lithium or master)
266 artifactDaysToKeep: '{build-artifact-days-to-keep}'
267 artifactNumToKeep: '{build-artifact-num-to-keep}'
275 credentials-id: '{ssh-credentials}'
281 - ssh-agent-credentials:
283 - '{ssh-credentials}'
289 - wipe-org-opendaylight-repo
290 - jacoco-nojava-workaround
291 - provide-maven-settings:
292 global-settings-file: 'odl-global-settings'
293 settings-file: 'mdsal-settings'
296 maven-name: '{mvn33}'
298 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dmaven.compile.fork=true clean install -Dintegrationtests -V -B -Djenkins'
299 maven-opts: '-Xmx2048m -XX:MaxPermSize=1024m'
300 settings: 'mdsal-settings'
302 global-settings: 'odl-global-settings'
303 global-settings-type: cfp
309 - email-notification:
310 email-prefix: '[mdsal]'
313 maven-version: '{mvn33}'
316 name: 'mdsal-distribution-{stream}'
318 # Required variables:
319 # stream: release stream (eg. stable-lithium or beryllium)
320 # branch: git branch (eg. stable/lithium or master)
327 daysToKeep: '{build-days-to-keep}'
328 numToKeep: '{build-num-to-keep}'
329 artifactDaysToKeep: '{build-artifact-days-to-keep}'
330 artifactNumToKeep: '{build-artifact-num-to-keep}'
334 project: 'integration/distribution'
338 credentials-id: '{ssh-credentials}'
344 - ssh-agent-credentials:
346 - '{ssh-credentials}'
350 jobs: '{project}-merge-{stream}'
354 - wipe-org-opendaylight-repo
355 - provide-maven-settings:
356 global-settings-file: 'odl-global-settings'
357 settings-file: 'mdsal-settings'
360 maven-name: '{mvn33}'
362 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
363 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
364 settings: 'integration-distribution-settings'
366 global-settings: 'odl-global-settings'
367 global-settings-type: cfp
370 - email-notification:
371 email-prefix: '[{project}]'
375 deploy-unstable: false
377 maven-version: '{mvn33}'
379 # Template: integration-patch-distribution-{stream}
380 # Goal: Build a patch and make sure the distribution can deploy with this change
381 # Operation: This job template builds a patch, creates a distribution containing
382 # the patch, and triggers the distribution deploy test
385 name: 'mdsal-distribution-check-{stream}'
386 disabled: '{obj:disable_distribution_check}'
394 daysToKeep: '{build-days-to-keep}'
395 numToKeep: '{build-num-to-keep}'
396 artifactDaysToKeep: '{build-artifact-days-to-keep}'
397 artifactNumToKeep: '{build-artifact-num-to-keep}'
403 refspec: 'refs/heads/{branch}'
406 - integration-distribution-git-url
409 - integration-gerrit-scm:
410 credentials-id: '{ssh-credentials}'
411 basedir: '$GERRIT_PROJECT'
412 refspec: '$GERRIT_REFSPEC'
414 - integration-distribution-scm:
415 credentials-id: '{ssh-credentials}'
420 - ssh-agent-credentials:
422 - '{ssh-credentials}'
426 server-name: 'OpenDaylight'
428 - patchset-created-event:
429 exclude-drafts: 'true'
430 exclude-trivial-rebase: 'false'
431 exclude-no-code-change: 'true'
432 - draft-published-event
433 - comment-added-contains-event:
434 comment-contains-value: 'test-distribution'
435 - comment-added-contains-event:
436 comment-contains-value: 'reverify'
437 - comment-added-contains-event:
438 comment-contains-value: 'recheck'
440 - project-compare-type: 'ANT'
441 project-pattern: '{name}'
443 - branch-compare-type: 'ANT'
444 branch-pattern: '**/{branch}'
452 - wipe-org-opendaylight-repo
454 maven-version: '{mvn33}'
455 pom: '$GERRIT_PROJECT/pom.xml'
456 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}'
458 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
459 settings: 'mdsal-settings'
461 global-settings: 'odl-global-settings'
462 global-settings-type: cfp
465 maven-name: '{mvn33}'
466 root-pom: 'distribution/pom.xml'
467 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
468 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
469 settings: 'mdsal-settings'
471 global-settings: 'odl-global-settings'
472 global-settings-type: cfp
473 ignore-upstream-changes: true
474 post-step-run-condition: 'SUCCESS'
477 - integration-distribution-check
481 artifacts: 'karaf.log'
483 artifacts: 'karaf_console.log'
484 - email-notification:
485 email-prefix: '[mdsal]'
487 maven-version: '{mvn33}'
490 name: 'mdsal-integration-{stream}'
493 # Job template for ODL integration verify jobs
495 # This is similar to a normal verify job, but it runs
496 # when a project that's a dependency of your project
497 # is successfully built.
499 # Required Variables:
500 # stream: release stream (eg. stable-lithium or beryllium)
501 # branch: git branch (eg. stable/lithium or master)
508 daysToKeep: '{build-days-to-keep}'
509 numToKeep: '{build-num-to-keep}'
510 artifactDaysToKeep: '{build-artifact-days-to-keep}'
511 artifactNumToKeep: '{build-artifact-num-to-keep}'
519 credentials-id: '{ssh-credentials}'
525 - ssh-agent-credentials:
527 - '{ssh-credentials}'
531 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream}'
535 - wipe-org-opendaylight-repo
536 - jacoco-nojava-workaround
537 - provide-maven-settings:
538 global-settings-file: 'odl-global-settings'
539 settings-file: 'mdsal-settings'
542 maven-name: '{mvn33}'
544 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dmaven.compile.fork=true clean install -Dintegrationtests -V -B -Djenkins'
545 maven-opts: '-Xmx2048m -XX:MaxPermSize=1024m'
546 settings: 'mdsal-settings'
548 global-settings: 'odl-global-settings'
549 global-settings-type: cfp
555 - email-notification:
556 email-prefix: '[mdsal] [odlparent] [yangtools]'
559 maven-version: '{mvn33}'
572 artifactDaysToKeep: '1'
573 artifactNumToKeep: '1'
581 credentials-id: '{ssh-credentials}'
587 - ssh-agent-credentials:
589 - '{ssh-credentials}'
593 - gerrit-trigger-patch-sonar:
597 - wipe-org-opendaylight-repo
598 - jacoco-nojava-workaround
599 - provide-maven-settings:
600 global-settings-file: 'odl-global-settings'
601 settings-file: 'mdsal-settings'
604 maven-name: '{mvn33}'
606 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dmaven.compile.fork=true clean install -Dintegrationtests -V -B -Djenkins -Dsonar'
607 maven-opts: '-Xmx2048m -XX:MaxPermSize=1024m'
608 settings: 'mdsal-settings'
610 global-settings: 'odl-global-settings'
611 global-settings-type: cfp
619 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
620 - email-notification:
621 email-prefix: '[mdsal]'
624 maven-version: '{mvn33}'
627 name: 'mdsal-clm-{stream}'
635 daysToKeep: '{build-days-to-keep}'
636 numToKeep: '{build-num-to-keep}'
637 artifactDaysToKeep: '{build-artifact-days-to-keep}'
638 artifactNumToKeep: '{build-artifact-num-to-keep}'
646 credentials-id: '{ssh-credentials}'
652 - ssh-agent-credentials:
654 - '{ssh-credentials}'
660 - wipe-org-opendaylight-repo
661 - provide-maven-settings:
662 global-settings-file: 'odl-global-settings'
663 settings-file: 'mdsal-settings'
666 maven-name: '{mvn33}'
668 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'
669 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
670 settings: 'mdsal-settings'
672 global-settings: 'odl-global-settings'
673 global-settings-type: cfp
676 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
678 application-name: mdsal
681 - email-notification:
682 email-prefix: '[mdsal]'
684 maven-version: '{mvn33}'
687 name: 'mdsal-validate-autorelease-{stream}'
688 disabled: '{obj:disable_autorelease}'
696 daysToKeep: '{build-days-to-keep}'
697 numToKeep: '{build-num-to-keep}'
698 artifactDaysToKeep: '{build-artifact-days-to-keep}'
699 artifactNumToKeep: '{build-artifact-num-to-keep}'
707 refspec: 'refs/heads/{branch}'
708 - autorelease-release-tag:
709 release-tag: 'validate'
710 - autorelease-release-branch:
711 release-branch: '{branch}'
714 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
715 description: "Autorelease clone URL"
720 credentials-id: '{ssh-credentials}'
730 - autorelease-build-timeout
731 - ssh-agent-credentials:
733 - '{ssh-credentials}'
737 server-name: 'OpenDaylight'
739 - patchset-created-event:
740 exclude-drafts: 'true'
741 exclude-trivial-rebase: 'false'
742 exclude-no-code-change: 'true'
743 - draft-published-event
744 - comment-added-contains-event:
745 comment-contains-value: 'recheck'
746 - comment-added-contains-event:
747 comment-contains-value: 'reverify'
748 - comment-added-contains-event:
749 comment-contains-value: 'revalidate'
751 - project-compare-type: 'ANT'
752 project-pattern: 'mdsal'
754 - branch-compare-type: 'ANT'
755 branch-pattern: '**/{branch}'
761 - wipe-org-opendaylight-repo
762 - jacoco-nojava-workaround
763 - autorelease-checkout-gerrit-patch
764 - autorelease-generate-release-patches
766 maven-version: '{mvn33}'
767 pom: validate-pom.xml
768 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'
771 settings: 'autorelease-settings'
773 global-settings: 'odl-global-settings'
774 global-settings-type: cfp
777 maven-name: '{mvn33}'
779 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
780 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
781 settings: 'autorelease-settings'
783 global-settings: 'odl-global-settings'
784 global-settings-type: cfp
785 automatic-archiving: false
786 post-step-run-condition: UNSTABLE
789 - autorelease-sys-stats
792 - email-notification:
793 email-prefix: '[autorelease] [mdsal]'
795 maven-version: '{mvn33}'