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 - 'vtn-verify-{stream}'
10 - 'vtn-merge-{stream}'
11 - 'vtn-periodic-{stream}'
12 - 'vtn-distribution-{stream}'
13 - 'vtn-distribution-check-{stream}'
14 - 'vtn-integration-{stream}'
17 - 'vtn-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
39 branch: 'stable/lithium'
43 disable_autorelease: True
44 disable_distribution_check: True
48 # For the Job templates below replace instances of:
49 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
50 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
51 # MAVEN_GOALS with your maven goals to build
52 # MAVEN_OPTS with your maven options to build
55 name: 'vtn-verify-{stream}'
57 # Job template for ODL verify jobs
59 # The purpose of this job template is to setup a ODL verify job
62 # stream: release stream (eg. stable-lithium or beryllium)
63 # branch: git branch (eg. stable/lithium or master)
88 refspec: 'refs/heads/{branch}'
92 credentials-id: '{ssh-credentials}'
93 refspec: '$GERRIT_REFSPEC'
94 choosing-strategy: 'gerrit'
98 - ssh-agent-credentials:
100 - '{ssh-credentials}'
103 - gerrit-trigger-patch-submitted:
108 - jacoco-nojava-workaround
109 - provide-maven-settings:
110 global-settings-file: 'odl-global-settings'
111 settings-file: 'vtn-settings'
113 maven-version: '{mvn33}'
115 goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
117 - '-Xmx1024m -XX:MaxPermSize=256m'
118 settings: 'vtn-settings'
120 global-settings: 'odl-global-settings'
121 global-settings-type: cfp
125 artifacts: '**/target/surefire-reports/*-output.txt, manager/dist/*/target/*.zip, coordinator/dist/target/*.bz2, manager/northbound/target/site/wsdocs/**, manager/api/target/*-javadoc.jar, manager/api/target/apidocs/**, target/*-javadoc.jar, target/apidocs/**, manager/model/target/site/models/**'
127 - email-notification:
128 email-prefix: '[vtn]'
131 maven-version: '{mvn33}'
134 name: 'vtn-merge-{stream}'
136 # Job template for ODL merge jobs
138 # The purpose of this job template is to setup a ODL merge job
139 # and deploy artifacts to Nexus.
141 # Required Variables:
142 # stream: release stream (eg. stable-lithium or beryllium)
143 # branch: git branch (eg. stable/lithium or master)
152 artifactDaysToKeep: '{build-artifact-days-to-keep}'
153 artifactNumToKeep: '{build-artifact-num-to-keep}'
161 refspec: 'refs/heads/{branch}'
164 - gerrit-trigger-scm:
165 credentials-id: '{ssh-credentials}'
167 choosing-strategy: 'default'
171 - ssh-agent-credentials:
173 - '{ssh-credentials}'
177 - gerrit-trigger-patch-merged:
182 - jacoco-nojava-workaround
183 - provide-maven-settings:
184 global-settings-file: 'odl-global-settings'
185 settings-file: 'vtn-settings'
188 maven-name: '{mvn33}'
190 goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
191 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
192 settings: 'vtn-settings'
194 global-settings: 'odl-global-settings'
195 global-settings-type: cfp
196 post-step-run-condition: UNSTABLE
200 condition-kind: file-exists
201 condition-filename: deploy-site.xml
202 condition-basedir: workspace
204 # The strategy here is intentional to run Maven site:deploy twice
205 # once using regular pom.xml to produce a staged-site which is
206 # then used by deploy-site.xml to push to Nexus. This is a
207 # workaround to Maven Site's default linking code which creates
208 # incorrect URLs for sites due to auto-detection assuming your
209 # project is configured in a certain way which ODL is not.
212 maven-version: '{mvn33}'
214 goals: 'site:deploy -V -B -Dstream={stream}'
217 settings: 'vtn-settings'
219 global-settings: 'odl-global-settings'
220 global-settings-type: cfp
222 maven-version: '{mvn33}'
224 goals: 'site:deploy -V -B -Dstream={stream}'
227 settings: 'vtn-settings'
229 global-settings: 'odl-global-settings'
230 global-settings-type: cfp
237 artifacts: '**/target/surefire-reports/*-output.txt, manager/dist/*/target/*.zip, coordinator/dist/target/*.bz2, manager/northbound/target/site/wsdocs/**, manager/api/target/*-javadoc.jar, manager/api/target/apidocs/**, target/*-javadoc.jar, target/apidocs/**, manager/model/target/site/models/**'
238 - email-notification:
239 email-prefix: '[vtn]'
243 deploy-unstable: false
246 maven-version: '{mvn33}'
249 name: 'vtn-periodic-{stream}'
252 # Job template for periodic builders
254 # The purpose of this job template is to setup a periodic
257 # Required Variables:
258 # stream: release stream (eg. stable-lithium or beryllium)
259 # branch: git branch (eg. stable/lithium or master)
268 artifactDaysToKeep: '{build-artifact-days-to-keep}'
269 artifactNumToKeep: '{build-artifact-num-to-keep}'
277 credentials-id: '{ssh-credentials}'
283 - ssh-agent-credentials:
285 - '{ssh-credentials}'
291 - jacoco-nojava-workaround
292 - provide-maven-settings:
293 global-settings-file: 'odl-global-settings'
294 settings-file: 'vtn-settings'
297 maven-name: '{mvn33}'
299 goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
300 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
301 settings: 'vtn-settings'
303 global-settings: 'odl-global-settings'
304 global-settings-type: cfp
310 - email-notification:
311 email-prefix: '[vtn]'
314 maven-version: '{mvn33}'
317 name: 'vtn-distribution-{stream}'
319 # Required variables:
320 # stream: release stream (eg. stable-lithium or beryllium)
321 # branch: git branch (eg. stable/lithium or master)
328 daysToKeep: '{build-days-to-keep}'
329 numToKeep: '{build-num-to-keep}'
330 artifactDaysToKeep: '{build-artifact-days-to-keep}'
331 artifactNumToKeep: '{build-artifact-num-to-keep}'
335 project: 'integration/distribution'
339 credentials-id: '{ssh-credentials}'
345 - ssh-agent-credentials:
347 - '{ssh-credentials}'
351 jobs: '{project}-merge-{stream}'
355 - provide-maven-settings:
356 global-settings-file: 'odl-global-settings'
357 settings-file: 'vtn-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: 'vtn-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}'
453 maven-version: '{mvn33}'
454 pom: '$GERRIT_PROJECT/pom.xml'
455 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}'
457 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
458 settings: 'vtn-settings'
460 global-settings: 'odl-global-settings'
461 global-settings-type: cfp
464 maven-name: '{mvn33}'
465 root-pom: 'distribution/pom.xml'
466 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
467 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
468 settings: 'vtn-settings'
470 global-settings: 'odl-global-settings'
471 global-settings-type: cfp
472 ignore-upstream-changes: true
473 post-step-run-condition: 'SUCCESS'
476 - integration-distribution-check
480 artifacts: 'karaf.log'
482 artifacts: 'karaf_console.log'
483 - email-notification:
484 email-prefix: '[vtn]'
486 maven-version: '{mvn33}'
489 name: 'vtn-integration-{stream}'
492 # Job template for ODL integration verify jobs
494 # This is similar to a normal verify job, but it runs
495 # when a project that's a dependency of your project
496 # is successfully built.
498 # Required Variables:
499 # stream: release stream (eg. stable-lithium or beryllium)
500 # branch: git branch (eg. stable/lithium or master)
507 daysToKeep: '{build-days-to-keep}'
508 numToKeep: '{build-num-to-keep}'
509 artifactDaysToKeep: '{build-artifact-days-to-keep}'
510 artifactNumToKeep: '{build-artifact-num-to-keep}'
518 credentials-id: '{ssh-credentials}'
524 - ssh-agent-credentials:
526 - '{ssh-credentials}'
530 jobs: 'controller-merge-{stream},mdsal-merge-{stream},neutron-merge-{stream},odlparent-merge-{stream},openflowplugin-merge-{stream},ovsdb-merge-{stream},yangtools-merge-{stream}'
534 - jacoco-nojava-workaround
535 - provide-maven-settings:
536 global-settings-file: 'odl-global-settings'
537 settings-file: 'vtn-settings'
540 maven-name: '{mvn33}'
542 goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
543 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
544 settings: 'vtn-settings'
546 global-settings: 'odl-global-settings'
547 global-settings-type: cfp
553 - email-notification:
554 email-prefix: '[vtn] [controller] [mdsal] [neutron] [odlparent] [openflowplugin] [ovsdb] [yangtools]'
557 maven-version: '{mvn33}'
570 artifactDaysToKeep: '1'
571 artifactNumToKeep: '1'
579 credentials-id: '{ssh-credentials}'
585 - ssh-agent-credentials:
587 - '{ssh-credentials}'
591 - gerrit-trigger-patch-sonar:
595 - jacoco-nojava-workaround
596 - provide-maven-settings:
597 global-settings-file: 'odl-global-settings'
598 settings-file: 'vtn-settings'
601 maven-name: '{mvn33}'
603 goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
604 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
605 settings: 'vtn-settings'
607 global-settings: 'odl-global-settings'
608 global-settings-type: cfp
616 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
617 - email-notification:
618 email-prefix: '[vtn]'
621 maven-version: '{mvn33}'
624 name: 'vtn-clm-{stream}'
632 daysToKeep: '{build-days-to-keep}'
633 numToKeep: '{build-num-to-keep}'
634 artifactDaysToKeep: '{build-artifact-days-to-keep}'
635 artifactNumToKeep: '{build-artifact-num-to-keep}'
643 credentials-id: '{ssh-credentials}'
649 - ssh-agent-credentials:
651 - '{ssh-credentials}'
657 - provide-maven-settings:
658 global-settings-file: 'odl-global-settings'
659 settings-file: 'vtn-settings'
662 maven-name: '{mvn33}'
664 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'
665 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
666 settings: 'vtn-settings'
668 global-settings: 'odl-global-settings'
669 global-settings-type: cfp
672 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
674 application-name: vtn
677 - email-notification:
678 email-prefix: '[vtn]'
680 maven-version: '{mvn33}'
683 name: 'vtn-validate-autorelease-{stream}'
684 disabled: '{obj:disable_autorelease}'
692 daysToKeep: '{build-days-to-keep}'
693 numToKeep: '{build-num-to-keep}'
694 artifactDaysToKeep: '{build-artifact-days-to-keep}'
695 artifactNumToKeep: '{build-artifact-num-to-keep}'
703 refspec: 'refs/heads/{branch}'
704 - autorelease-release-tag:
705 release-tag: 'validate'
706 - autorelease-release-branch:
707 release-branch: '{branch}'
710 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
711 description: "Autorelease clone URL"
716 credentials-id: '{ssh-credentials}'
726 - autorelease-build-timeout
727 - ssh-agent-credentials:
729 - '{ssh-credentials}'
733 server-name: 'OpenDaylight'
735 - patchset-created-event:
736 exclude-drafts: 'true'
737 exclude-trivial-rebase: 'false'
738 exclude-no-code-change: 'true'
739 - draft-published-event
740 - comment-added-contains-event:
741 comment-contains-value: 'recheck'
742 - comment-added-contains-event:
743 comment-contains-value: 'reverify'
744 - comment-added-contains-event:
745 comment-contains-value: 'revalidate'
747 - project-compare-type: 'ANT'
748 project-pattern: 'vtn'
750 - branch-compare-type: 'ANT'
751 branch-pattern: '**/{branch}'
757 - jacoco-nojava-workaround
758 - autorelease-checkout-gerrit-patch
759 - autorelease-generate-release-patches
761 maven-version: '{mvn33}'
762 pom: validate-pom.xml
763 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'
766 settings: 'autorelease-settings'
768 global-settings: 'odl-global-settings'
769 global-settings-type: cfp
772 maven-name: '{mvn33}'
774 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
775 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
776 settings: 'autorelease-settings'
778 global-settings: 'odl-global-settings'
779 global-settings-type: cfp
780 automatic-archiving: false
781 post-step-run-condition: UNSTABLE
784 - autorelease-sys-stats
787 - email-notification:
788 email-prefix: '[autorelease] [vtn]'
790 maven-version: '{mvn33}'