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 - 'next-verify-{stream}'
10 - 'next-merge-{stream}'
11 - 'next-periodic-{stream}'
12 - 'next-distribution-{stream}'
13 - 'next-distribution-check-{stream}'
14 - 'next-integration-{stream}'
17 - 'next-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: 'next-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)
81 refspec: 'refs/heads/{branch}'
85 credentials-id: '{ssh-credentials}'
86 refspec: '$GERRIT_REFSPEC'
87 choosing-strategy: 'gerrit'
91 - ssh-agent-credentials:
96 - gerrit-trigger-patch-submitted:
101 - jacoco-nojava-workaround
102 - provide-maven-settings:
103 global-settings-file: 'odl-global-settings'
104 settings-file: 'next-settings'
106 maven-version: '{mvn33}'
108 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
110 - '-Xmx1024m -XX:MaxPermSize=256m'
111 settings: 'next-settings'
113 global-settings: 'odl-global-settings'
114 global-settings-type: cfp
118 artifacts: '**/target/surefire-reports/*-output.txt, '
120 - email-notification:
121 email-prefix: '[next]'
124 maven-version: '{mvn33}'
127 name: 'next-merge-{stream}'
129 # Job template for ODL merge jobs
131 # The purpose of this job template is to setup a ODL merge job
132 # and deploy artifacts to Nexus.
134 # Required Variables:
135 # stream: release stream (eg. stable-lithium or beryllium)
136 # branch: git branch (eg. stable/lithium or master)
145 artifactDaysToKeep: '{build-artifact-days-to-keep}'
146 artifactNumToKeep: '{build-artifact-num-to-keep}'
154 refspec: 'refs/heads/{branch}'
157 - gerrit-trigger-scm:
158 credentials-id: '{ssh-credentials}'
160 choosing-strategy: 'default'
164 - ssh-agent-credentials:
166 - '{ssh-credentials}'
170 - gerrit-trigger-patch-merged:
175 - jacoco-nojava-workaround
176 - provide-maven-settings:
177 global-settings-file: 'odl-global-settings'
178 settings-file: 'next-settings'
181 maven-name: '{mvn33}'
183 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
184 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
185 settings: 'next-settings'
187 global-settings: 'odl-global-settings'
188 global-settings-type: cfp
189 post-step-run-condition: UNSTABLE
193 condition-kind: file-exists
194 condition-filename: deploy-site.xml
195 condition-basedir: workspace
197 # The strategy here is intentional to run Maven site:deploy twice
198 # once using regular pom.xml to produce a staged-site which is
199 # then used by deploy-site.xml to push to Nexus. This is a
200 # workaround to Maven Site's default linking code which creates
201 # incorrect URLs for sites due to auto-detection assuming your
202 # project is configured in a certain way which ODL is not.
205 maven-version: '{mvn33}'
207 goals: 'site:deploy -V -B -Dstream={stream}'
210 settings: 'next-settings'
212 global-settings: 'odl-global-settings'
213 global-settings-type: cfp
215 maven-version: '{mvn33}'
217 goals: 'site:deploy -V -B -Dstream={stream}'
220 settings: 'next-settings'
222 global-settings: 'odl-global-settings'
223 global-settings-type: cfp
230 artifacts: '**/target/surefire-reports/*-output.txt, '
231 - email-notification:
232 email-prefix: '[next]'
236 deploy-unstable: false
239 maven-version: '{mvn33}'
242 name: 'next-periodic-{stream}'
245 # Job template for periodic builders
247 # The purpose of this job template is to setup a periodic
250 # Required Variables:
251 # stream: release stream (eg. stable-lithium or beryllium)
252 # branch: git branch (eg. stable/lithium or master)
261 artifactDaysToKeep: '{build-artifact-days-to-keep}'
262 artifactNumToKeep: '{build-artifact-num-to-keep}'
270 credentials-id: '{ssh-credentials}'
276 - ssh-agent-credentials:
278 - '{ssh-credentials}'
284 - jacoco-nojava-workaround
285 - provide-maven-settings:
286 global-settings-file: 'odl-global-settings'
287 settings-file: 'next-settings'
290 maven-name: '{mvn33}'
292 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
293 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
294 settings: 'next-settings'
296 global-settings: 'odl-global-settings'
297 global-settings-type: cfp
303 - email-notification:
304 email-prefix: '[next]'
307 maven-version: '{mvn33}'
310 name: 'next-distribution-{stream}'
312 # Required variables:
313 # stream: release stream (eg. stable-lithium or beryllium)
314 # branch: git branch (eg. stable/lithium or master)
321 daysToKeep: '{build-days-to-keep}'
322 numToKeep: '{build-num-to-keep}'
323 artifactDaysToKeep: '{build-artifact-days-to-keep}'
324 artifactNumToKeep: '{build-artifact-num-to-keep}'
328 project: 'integration/distribution'
332 credentials-id: '{ssh-credentials}'
338 - ssh-agent-credentials:
340 - '{ssh-credentials}'
344 jobs: '{project}-merge-{stream}'
348 - provide-maven-settings:
349 global-settings-file: 'odl-global-settings'
350 settings-file: 'next-settings'
353 maven-name: '{mvn33}'
355 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
356 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
357 settings: 'integration-distribution-settings'
359 global-settings: 'odl-global-settings'
360 global-settings-type: cfp
363 - email-notification:
364 email-prefix: '[{project}]'
368 deploy-unstable: false
370 maven-version: '{mvn33}'
372 # Template: integration-patch-distribution-{stream}
373 # Goal: Build a patch and make sure the distribution can deploy with this change
374 # Operation: This job template builds a patch, creates a distribution containing
375 # the patch, and triggers the distribution deploy test
378 name: 'next-distribution-check-{stream}'
379 disabled: '{obj:disable_distribution_check}'
387 daysToKeep: '{build-days-to-keep}'
388 numToKeep: '{build-num-to-keep}'
389 artifactDaysToKeep: '{build-artifact-days-to-keep}'
390 artifactNumToKeep: '{build-artifact-num-to-keep}'
396 refspec: 'refs/heads/{branch}'
399 - integration-distribution-git-url
402 - integration-gerrit-scm:
403 credentials-id: '{ssh-credentials}'
404 basedir: '$GERRIT_PROJECT'
405 refspec: '$GERRIT_REFSPEC'
407 - integration-distribution-scm:
408 credentials-id: '{ssh-credentials}'
413 - ssh-agent-credentials:
415 - '{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: 'next-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: 'next-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: '[next]'
479 maven-version: '{mvn33}'
482 name: 'next-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}'
523 jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}'
527 - jacoco-nojava-workaround
528 - provide-maven-settings:
529 global-settings-file: 'odl-global-settings'
530 settings-file: 'next-settings'
533 maven-name: '{mvn33}'
535 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
536 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
537 settings: 'next-settings'
539 global-settings: 'odl-global-settings'
540 global-settings-type: cfp
546 - email-notification:
547 email-prefix: '[next] [odlparent] [controller] [yangtools]'
550 maven-version: '{mvn33}'
563 artifactDaysToKeep: '1'
564 artifactNumToKeep: '1'
572 credentials-id: '{ssh-credentials}'
578 - ssh-agent-credentials:
580 - '{ssh-credentials}'
584 - gerrit-trigger-patch-sonar:
588 - jacoco-nojava-workaround
589 - provide-maven-settings:
590 global-settings-file: 'odl-global-settings'
591 settings-file: 'next-settings'
594 maven-name: '{mvn33}'
596 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
597 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
598 settings: 'next-settings'
600 global-settings: 'odl-global-settings'
601 global-settings-type: cfp
609 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
610 - email-notification:
611 email-prefix: '[next]'
614 maven-version: '{mvn33}'
617 name: 'next-clm-{stream}'
625 daysToKeep: '{build-days-to-keep}'
626 numToKeep: '{build-num-to-keep}'
627 artifactDaysToKeep: '{build-artifact-days-to-keep}'
628 artifactNumToKeep: '{build-artifact-num-to-keep}'
636 credentials-id: '{ssh-credentials}'
642 - ssh-agent-credentials:
644 - '{ssh-credentials}'
650 - provide-maven-settings:
651 global-settings-file: 'odl-global-settings'
652 settings-file: 'next-settings'
655 maven-name: '{mvn33}'
657 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'
658 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
659 settings: 'next-settings'
661 global-settings: 'odl-global-settings'
662 global-settings-type: cfp
665 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
667 application-name: next
670 - email-notification:
671 email-prefix: '[next]'
673 maven-version: '{mvn33}'
676 name: 'next-validate-autorelease-{stream}'
677 disabled: '{obj:disable_autorelease}'
685 daysToKeep: '{build-days-to-keep}'
686 numToKeep: '{build-num-to-keep}'
687 artifactDaysToKeep: '{build-artifact-days-to-keep}'
688 artifactNumToKeep: '{build-artifact-num-to-keep}'
696 refspec: 'refs/heads/{branch}'
697 - autorelease-release-tag:
698 release-tag: 'validate'
699 - autorelease-release-branch:
700 release-branch: '{branch}'
703 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
704 description: "Autorelease clone URL"
709 credentials-id: '{ssh-credentials}'
719 - autorelease-build-timeout
720 - ssh-agent-credentials:
722 - '{ssh-credentials}'
726 server-name: 'OpenDaylight'
728 - patchset-created-event:
729 exclude-drafts: 'true'
730 exclude-trivial-rebase: 'false'
731 exclude-no-code-change: 'true'
732 - draft-published-event
733 - comment-added-contains-event:
734 comment-contains-value: 'recheck'
735 - comment-added-contains-event:
736 comment-contains-value: 'reverify'
737 - comment-added-contains-event:
738 comment-contains-value: 'revalidate'
740 - project-compare-type: 'ANT'
741 project-pattern: 'next'
743 - branch-compare-type: 'ANT'
744 branch-pattern: '**/{branch}'
750 - jacoco-nojava-workaround
751 - autorelease-checkout-gerrit-patch
752 - autorelease-generate-release-patches
754 maven-version: '{mvn33}'
755 pom: validate-pom.xml
756 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'
759 settings: 'autorelease-settings'
761 global-settings: 'odl-global-settings'
762 global-settings-type: cfp
765 maven-name: '{mvn33}'
767 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
768 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
769 settings: 'autorelease-settings'
771 global-settings: 'odl-global-settings'
772 global-settings-type: cfp
773 automatic-archiving: false
774 post-step-run-condition: UNSTABLE
777 - autorelease-sys-stats
780 - email-notification:
781 email-prefix: '[autorelease] [next]'
783 maven-version: '{mvn33}'