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
46 branch: 'stable/helium'
50 disable_autorelease: True
51 disable_distribution_check: True
55 # For the Job templates below replace instances of:
56 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
57 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
58 # MAVEN_GOALS with your maven goals to build
59 # MAVEN_OPTS with your maven options to build
62 name: 'vtn-verify-{stream}'
64 # Job template for ODL verify jobs
66 # The purpose of this job template is to setup a ODL verify job
69 # stream: release stream (eg. stable-lithium or beryllium)
70 # branch: git branch (eg. stable/lithium or master)
87 daysToKeep: '{build-days-to-keep}'
88 numToKeep: '{build-num-to-keep}'
89 artifactDaysToKeep: '{build-artifact-days-to-keep}'
90 artifactNumToKeep: '{build-artifact-num-to-keep}'
97 - gerrit-refspec-parameter:
98 refspec: 'refs/heads/{branch}'
101 - gerrit-trigger-scm:
102 credentials-id: '{ssh-credentials}'
103 refspec: '$GERRIT_REFSPEC'
104 choosing-strategy: 'gerrit'
108 - ssh-agent-credentials:
110 - '{ssh-credentials}'
113 - gerrit-trigger-patch-submitted:
118 - wipe-org-opendaylight-repo
119 - jacoco-nojava-workaround
120 - provide-maven-settings:
121 global-settings-file: '{odl-global-settings}'
122 settings-file: '{vtn-settings}'
124 maven-version: '{mvn33}'
126 goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
128 - '-Xmx1024m -XX:MaxPermSize=256m'
129 settings: '{vtn-settings}'
130 global-settings: '{odl-global-settings}'
134 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/**'
136 - email-notification:
137 email-prefix: '[vtn]'
141 name: 'vtn-merge-{stream}'
143 # Job template for ODL merge jobs
145 # The purpose of this job template is to setup a ODL merge job
146 # and deploy artifacts to Nexus.
148 # Required Variables:
149 # stream: release stream (eg. stable-lithium or beryllium)
150 # branch: git branch (eg. stable/lithium or master)
159 artifactDaysToKeep: '{build-artifact-days-to-keep}'
160 artifactNumToKeep: '{build-artifact-num-to-keep}'
167 - gerrit-refspec-parameter:
168 refspec: 'refs/heads/{branch}'
171 - gerrit-trigger-scm:
172 credentials-id: '{ssh-credentials}'
174 choosing-strategy: 'default'
178 - ssh-agent-credentials:
180 - '{ssh-credentials}'
184 - gerrit-trigger-patch-merged:
189 - wipe-org-opendaylight-repo
190 - jacoco-nojava-workaround
191 - provide-maven-settings:
192 global-settings-file: '{odl-global-settings}'
193 settings-file: '{vtn-settings}'
196 maven-name: '{mvn33}'
198 goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
199 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
200 settings: '{vtn-settings}'
201 global-settings: '{odl-global-settings}'
202 post-step-run-condition: UNSTABLE
206 condition-kind: file-exists
207 condition-filename: deploy-site.xml
208 condition-basedir: workspace
210 # The strategy here is intentional to run Maven site:deploy twice
211 # once using regular pom.xml to produce a staged-site which is
212 # then used by deploy-site.xml to push to Nexus. This is a
213 # workaround to Maven Site's default linking code which creates
214 # incorrect URLs for sites due to auto-detection assuming your
215 # project is configured in a certain way which ODL is not.
218 maven-version: '{mvn33}'
220 goals: 'site:deploy -Dstream={stream}'
223 settings: '{vtn-settings}'
224 global-settings: '{odl-global-settings}'
226 maven-version: '{mvn33}'
228 goals: 'site:deploy -Dstream={stream}'
231 settings: '{vtn-settings}'
232 global-settings: '{odl-global-settings}'
239 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/**'
240 - email-notification:
241 email-prefix: '[vtn]'
245 deploy-unstable: false
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 - wipe-org-opendaylight-repo
292 - jacoco-nojava-workaround
293 - provide-maven-settings:
294 global-settings-file: '{odl-global-settings}'
295 settings-file: '{vtn-settings}'
298 maven-name: '{mvn33}'
300 goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
301 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
302 settings: '{vtn-settings}'
303 global-settings: '{odl-global-settings}'
309 - email-notification:
310 email-prefix: '[vtn]'
314 name: 'vtn-distribution-{stream}'
316 # Required variables:
317 # stream: release stream (eg. stable-lithium or beryllium)
318 # branch: git branch (eg. stable/lithium or master)
325 daysToKeep: '{build-days-to-keep}'
326 numToKeep: '{build-num-to-keep}'
327 artifactDaysToKeep: '{build-artifact-days-to-keep}'
328 artifactNumToKeep: '{build-artifact-num-to-keep}'
332 project: 'integration/distribution'
336 credentials-id: '{ssh-credentials}'
342 - ssh-agent-credentials:
344 - '{ssh-credentials}'
348 jobs: '{project}-merge-{stream}'
352 - wipe-org-opendaylight-repo
353 - provide-maven-settings:
354 global-settings-file: '{odl-global-settings}'
355 settings-file: '{vtn-settings}'
358 maven-name: '{mvn33}'
360 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
361 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
362 settings: '{integration-settings}'
363 global-settings: '{odl-global-settings}'
366 - email-notification:
367 email-prefix: '[{project}]'
371 deploy-unstable: false
373 # Template: integration-patch-distribution-{stream}
374 # Goal: Build a patch and make sure the distribution can deploy with this change
375 # Operation: This job template builds a patch, creates a distribution containing
376 # the patch, and triggers the distribution deploy test
379 name: 'vtn-distribution-check-{stream}'
380 disabled: '{obj:disable_distribution_check}'
390 artifactDaysToKeep: '{build-artifact-days-to-keep}'
391 artifactNumToKeep: '{build-artifact-num-to-keep}'
394 - gerrit-project-parameter:
396 - gerrit-refspec-parameter:
400 - integration-distribution-git-url
403 - integration-gerrit-scm:
404 credentials-id: '{ssh-credentials}'
405 basedir: '$GERRIT_PROJECT'
406 refspec: '$GERRIT_REFSPEC'
408 - integration-distribution-scm:
409 credentials-id: '{ssh-credentials}'
414 - ssh-agent-credentials:
416 - '{ssh-credentials}'
420 server-name: 'OpenDaylight'
422 - patchset-created-event:
423 exclude-drafts: 'true'
424 exclude-trivial-rebase: 'false'
425 exclude-no-code-change: 'true'
426 - draft-published-event
427 - comment-added-contains-event:
428 comment-contains-value: 'test-distribution'
429 - comment-added-contains-event:
430 comment-contains-value: 'reverify'
431 - comment-added-contains-event:
432 comment-contains-value: 'recheck'
434 - project-compare-type: 'ANT'
435 project-pattern: '{name}'
437 - branch-compare-type: 'ANT'
438 branch-pattern: '**/{branch}'
446 - wipe-org-opendaylight-repo
448 maven-version: '{mvn33}'
449 pom: '$GERRIT_PROJECT/pom.xml'
450 goals: 'clean install -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}'
452 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
453 settings: '{vtn-settings}'
454 global-settings: '{odl-global-settings}'
457 maven-name: '{mvn33}'
458 root-pom: 'distribution/pom.xml'
459 goals: 'clean install -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: '{vtn-settings}'
462 global-settings: '{odl-global-settings}'
463 ignore-upstream-changes: true
464 post-step-run-condition: 'SUCCESS'
467 - integration-distribution-check
471 artifacts: 'karaf.log'
473 artifacts: 'karaf_console.log'
474 - email-notification:
475 email-prefix: '[vtn]'
478 name: 'vtn-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}'
513 - ssh-agent-credentials:
515 - '{ssh-credentials}'
519 jobs: 'controller-merge-{stream},mdsal-merge-{stream},neutron-merge-{stream},odlparent-merge-{stream},openflowplugin-merge-{stream},ovsdb-merge-{stream},yangtools-merge-{stream}'
523 - wipe-org-opendaylight-repo
524 - jacoco-nojava-workaround
525 - provide-maven-settings:
526 global-settings-file: '{odl-global-settings}'
527 settings-file: '{vtn-settings}'
530 maven-name: '{mvn33}'
532 goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
533 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
534 settings: '{vtn-settings}'
535 global-settings: '{odl-global-settings}'
541 - email-notification:
542 email-prefix: '[vtn] [controller] [mdsal] [neutron] [odlparent] [openflowplugin] [ovsdb] [yangtools]'
556 artifactDaysToKeep: '1'
557 artifactNumToKeep: '1'
565 credentials-id: '{ssh-credentials}'
571 - ssh-agent-credentials:
573 - '{ssh-credentials}'
577 - gerrit-trigger-patch-sonar:
581 - wipe-org-opendaylight-repo
582 - jacoco-nojava-workaround
583 - provide-maven-settings:
584 global-settings-file: '{odl-global-settings}'
585 settings-file: '{vtn-settings}'
588 maven-name: '{mvn33}'
590 goals: 'clean install -V -Pintegrationtests,strictcheck,docs -Dvtn.build.jobs=2 -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
591 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
592 settings: '{vtn-settings}'
593 global-settings: '{odl-global-settings}'
601 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
602 - email-notification:
603 email-prefix: '[vtn]'
607 name: 'vtn-clm-{stream}'
615 daysToKeep: '{build-days-to-keep}'
616 numToKeep: '{build-num-to-keep}'
617 artifactDaysToKeep: '{build-artifact-days-to-keep}'
618 artifactNumToKeep: '{build-artifact-num-to-keep}'
626 credentials-id: '{ssh-credentials}'
632 - ssh-agent-credentials:
634 - '{ssh-credentials}'
640 - wipe-org-opendaylight-repo
641 - provide-maven-settings:
642 global-settings-file: '{odl-global-settings}'
643 settings-file: '{vtn-settings}'
646 maven-name: '{mvn33}'
648 goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
649 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
650 settings: '{vtn-settings}'
651 global-settings: '{odl-global-settings}'
654 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
656 application-name: vtn
659 - email-notification:
660 email-prefix: '[vtn]'
663 name: 'vtn-validate-autorelease-{stream}'
664 disabled: '{obj:disable_autorelease}'
672 daysToKeep: '{build-days-to-keep}'
673 numToKeep: '{build-num-to-keep}'
674 artifactDaysToKeep: '{build-artifact-days-to-keep}'
675 artifactNumToKeep: '{build-artifact-num-to-keep}'
682 - autorelease-release-tag:
683 release-tag: 'validate'
684 - autorelease-release-branch:
685 release-branch: '{branch}'
686 - autorelease-release-datestamp:
691 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
700 - autorelease-build-timeout
701 - ssh-agent-credentials:
703 - '{ssh-credentials}'
707 server-name: 'OpenDaylight'
709 - patchset-created-event:
710 exclude-drafts: 'false'
711 exclude-trivial-rebase: 'false'
712 exclude-no-code-change: 'false'
713 - draft-published-event
714 - comment-added-contains-event:
715 comment-contains-value: 'recheck'
716 - comment-added-contains-event:
717 comment-contains-value: 'reverify'
718 - comment-added-contains-event:
719 comment-contains-value: 'revalidate'
721 - project-compare-type: 'ANT'
722 project-pattern: 'vtn'
724 - branch-compare-type: 'ANT'
725 branch-pattern: '**/{branch}'
731 - wipe-org-opendaylight-repo
732 - jacoco-nojava-workaround
733 - autorelease-checkout-gerrit-patch
734 - autorelease-generate-taglist
735 - autorelease-generate-release-patches
737 maven-version: '{mvn33}'
738 pom: validate-pom.xml
739 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
742 settings: '{autorelease-settings}'
743 global-settings: '{odl-global-settings}'
746 maven-name: '{mvn33}'
748 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
749 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
750 settings: '{autorelease-settings}'
751 global-settings: '{odl-global-settings}'
752 automatic-archiving: false
753 post-step-run-condition: UNSTABLE
756 - shell: "./scripts/list-project-dependencies.sh"
757 - autorelease-sys-stats
762 - email-notification:
763 email-prefix: '[autorelease] [vtn]'