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 - 'tsdr-verify-{stream}'
10 - 'tsdr-merge-{stream}'
11 - 'tsdr-periodic-{stream}'
12 - 'tsdr-distribution-{stream}'
13 - 'tsdr-distribution-check-{stream}'
14 - 'tsdr-integration-{stream}'
17 - 'tsdr-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: 'tsdr-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'
97 - opendaylight-infra-wrappers:
98 build-timeout: '{build-timeout}'
101 - gerrit-trigger-patch-submitted:
106 - jacoco-nojava-workaround
107 - provide-maven-settings:
108 global-settings-file: 'odl-global-settings'
109 settings-file: 'tsdr-settings'
111 maven-version: '{mvn33}'
113 goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
115 - '-Xmx1024m -XX:MaxPermSize=256m'
116 settings: 'tsdr-settings'
118 global-settings: 'odl-global-settings'
119 global-settings-type: cfp
123 artifacts: '**/target/surefire-reports/*-output.txt, '
125 - email-notification:
126 email-prefix: '[tsdr]'
129 maven-version: '{mvn33}'
132 name: 'tsdr-merge-{stream}'
134 # Job template for ODL merge jobs
136 # The purpose of this job template is to setup a ODL merge job
137 # and deploy artifacts to Nexus.
139 # Required Variables:
140 # stream: release stream (eg. stable-lithium or beryllium)
141 # branch: git branch (eg. stable/lithium or master)
150 artifactDaysToKeep: '{build-artifact-days-to-keep}'
151 artifactNumToKeep: '{build-artifact-num-to-keep}'
159 refspec: 'refs/heads/{branch}'
162 - gerrit-trigger-scm:
163 credentials-id: '{ssh-credentials}'
165 choosing-strategy: 'default'
168 - opendaylight-infra-wrappers:
169 build-timeout: '{build-timeout}'
173 - gerrit-trigger-patch-merged:
178 - jacoco-nojava-workaround
179 - provide-maven-settings:
180 global-settings-file: 'odl-global-settings'
181 settings-file: 'tsdr-settings'
184 maven-name: '{mvn33}'
186 goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
187 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
188 settings: 'tsdr-settings'
190 global-settings: 'odl-global-settings'
191 global-settings-type: cfp
192 post-step-run-condition: UNSTABLE
196 condition-kind: file-exists
197 condition-filename: deploy-site.xml
198 condition-basedir: workspace
200 # The strategy here is intentional to run Maven site:deploy twice
201 # once using regular pom.xml to produce a staged-site which is
202 # then used by deploy-site.xml to push to Nexus. This is a
203 # workaround to Maven Site's default linking code which creates
204 # incorrect URLs for sites due to auto-detection assuming your
205 # project is configured in a certain way which ODL is not.
208 maven-version: '{mvn33}'
210 goals: 'site:deploy -V -B -Dstream={stream}'
213 settings: 'tsdr-settings'
215 global-settings: 'odl-global-settings'
216 global-settings-type: cfp
218 maven-version: '{mvn33}'
220 goals: 'site:deploy -V -B -Dstream={stream}'
223 settings: 'tsdr-settings'
225 global-settings: 'odl-global-settings'
226 global-settings-type: cfp
233 artifacts: '**/target/surefire-reports/*-output.txt, '
234 - email-notification:
235 email-prefix: '[tsdr]'
239 deploy-unstable: false
242 maven-version: '{mvn33}'
245 name: 'tsdr-periodic-{stream}'
248 # Job template for periodic builders
250 # The purpose of this job template is to setup a periodic
253 # Required Variables:
254 # stream: release stream (eg. stable-lithium or beryllium)
255 # branch: git branch (eg. stable/lithium or master)
264 artifactDaysToKeep: '{build-artifact-days-to-keep}'
265 artifactNumToKeep: '{build-artifact-num-to-keep}'
273 credentials-id: '{ssh-credentials}'
278 - opendaylight-infra-wrappers:
279 build-timeout: '{build-timeout}'
285 - jacoco-nojava-workaround
286 - provide-maven-settings:
287 global-settings-file: 'odl-global-settings'
288 settings-file: 'tsdr-settings'
291 maven-name: '{mvn33}'
293 goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
294 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
295 settings: 'tsdr-settings'
297 global-settings: 'odl-global-settings'
298 global-settings-type: cfp
304 - email-notification:
305 email-prefix: '[tsdr]'
308 maven-version: '{mvn33}'
311 name: 'tsdr-distribution-{stream}'
313 # Required variables:
314 # stream: release stream (eg. stable-lithium or beryllium)
315 # branch: git branch (eg. stable/lithium or master)
322 daysToKeep: '{build-days-to-keep}'
323 numToKeep: '{build-num-to-keep}'
324 artifactDaysToKeep: '{build-artifact-days-to-keep}'
325 artifactNumToKeep: '{build-artifact-num-to-keep}'
329 project: 'integration/distribution'
333 credentials-id: '{ssh-credentials}'
338 - opendaylight-infra-wrappers:
339 build-timeout: '{build-timeout}'
343 jobs: '{project}-merge-{stream}'
347 - provide-maven-settings:
348 global-settings-file: 'odl-global-settings'
349 settings-file: 'tsdr-settings'
352 maven-name: '{mvn33}'
354 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
355 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
356 settings: 'integration-distribution-settings'
358 global-settings: 'odl-global-settings'
359 global-settings-type: cfp
362 - email-notification:
363 email-prefix: '[{project}]'
367 deploy-unstable: false
369 maven-version: '{mvn33}'
371 # Template: integration-patch-distribution-{stream}
372 # Goal: Build a patch and make sure the distribution can deploy with this change
373 # Operation: This job template builds a patch, creates a distribution containing
374 # the patch, and triggers the distribution deploy test
377 name: 'tsdr-distribution-check-{stream}'
378 disabled: '{obj:disable_distribution_check}'
386 daysToKeep: '{build-days-to-keep}'
387 numToKeep: '{build-num-to-keep}'
388 artifactDaysToKeep: '{build-artifact-days-to-keep}'
389 artifactNumToKeep: '{build-artifact-num-to-keep}'
395 refspec: 'refs/heads/{branch}'
398 - integration-distribution-git-url
401 - integration-gerrit-scm:
402 credentials-id: '{ssh-credentials}'
403 basedir: '$GERRIT_PROJECT'
404 refspec: '$GERRIT_REFSPEC'
406 - integration-distribution-scm:
407 credentials-id: '{ssh-credentials}'
411 - opendaylight-infra-wrappers:
412 build-timeout: '{build-timeout}'
416 server-name: 'OpenDaylight'
418 - patchset-created-event:
419 exclude-drafts: 'true'
420 exclude-trivial-rebase: 'false'
421 exclude-no-code-change: 'true'
422 - draft-published-event
423 - comment-added-contains-event:
424 comment-contains-value: 'test-distribution'
425 - comment-added-contains-event:
426 comment-contains-value: 'reverify'
427 - comment-added-contains-event:
428 comment-contains-value: 'recheck'
430 - project-compare-type: 'ANT'
431 project-pattern: '{name}'
433 - branch-compare-type: 'ANT'
434 branch-pattern: '**/{branch}'
443 maven-version: '{mvn33}'
444 pom: '$GERRIT_PROJECT/pom.xml'
445 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}'
447 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
448 settings: 'tsdr-settings'
450 global-settings: 'odl-global-settings'
451 global-settings-type: cfp
454 maven-name: '{mvn33}'
455 root-pom: 'distribution/pom.xml'
456 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
457 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
458 settings: 'tsdr-settings'
460 global-settings: 'odl-global-settings'
461 global-settings-type: cfp
462 ignore-upstream-changes: true
463 post-step-run-condition: 'SUCCESS'
466 - integration-distribution-check
469 - email-notification:
470 email-prefix: '[tsdr]'
475 mkdir -p $WORKSPACE/archives
476 cp karaf*.log $WORKSPACE/archives
477 script-only-if-succeeded: False
478 script-only-if-failed: False
479 mark-unstable-if-failed: True
481 maven-version: '{mvn33}'
484 name: 'tsdr-integration-{stream}'
487 # Job template for ODL integration verify jobs
489 # This is similar to a normal verify job, but it runs
490 # when a project that's a dependency of your project
491 # is successfully built.
493 # Required Variables:
494 # stream: release stream (eg. stable-lithium or beryllium)
495 # branch: git branch (eg. stable/lithium or master)
502 daysToKeep: '{build-days-to-keep}'
503 numToKeep: '{build-num-to-keep}'
504 artifactDaysToKeep: '{build-artifact-days-to-keep}'
505 artifactNumToKeep: '{build-artifact-num-to-keep}'
513 credentials-id: '{ssh-credentials}'
518 - opendaylight-infra-wrappers:
519 build-timeout: '{build-timeout}'
523 jobs: 'odlparent-merge-{stream}'
527 - jacoco-nojava-workaround
528 - provide-maven-settings:
529 global-settings-file: 'odl-global-settings'
530 settings-file: 'tsdr-settings'
533 maven-name: '{mvn33}'
535 goals: 'clean install javadoc:aggregate -DrepoBuild -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: 'tsdr-settings'
539 global-settings: 'odl-global-settings'
540 global-settings-type: cfp
546 - email-notification:
547 email-prefix: '[tsdr] [odlparent]'
550 maven-version: '{mvn33}'
563 artifactDaysToKeep: '1'
564 artifactNumToKeep: '1'
572 credentials-id: '{ssh-credentials}'
577 - opendaylight-infra-wrappers:
578 build-timeout: '{build-timeout}'
582 - gerrit-trigger-patch-sonar:
586 - jacoco-nojava-workaround
587 - provide-maven-settings:
588 global-settings-file: 'odl-global-settings'
589 settings-file: 'tsdr-settings'
592 maven-name: '{mvn33}'
594 goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
595 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
596 settings: 'tsdr-settings'
598 global-settings: 'odl-global-settings'
599 global-settings-type: cfp
607 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
608 - email-notification:
609 email-prefix: '[tsdr]'
612 maven-version: '{mvn33}'
615 name: 'tsdr-clm-{stream}'
623 daysToKeep: '{build-days-to-keep}'
624 numToKeep: '{build-num-to-keep}'
625 artifactDaysToKeep: '{build-artifact-days-to-keep}'
626 artifactNumToKeep: '{build-artifact-num-to-keep}'
634 credentials-id: '{ssh-credentials}'
639 - opendaylight-infra-wrappers:
640 build-timeout: '{build-timeout}'
646 - provide-maven-settings:
647 global-settings-file: 'odl-global-settings'
648 settings-file: 'tsdr-settings'
651 maven-name: '{mvn33}'
653 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'
654 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
655 settings: 'tsdr-settings'
657 global-settings: 'odl-global-settings'
658 global-settings-type: cfp
661 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
663 application-name: tsdr
666 - email-notification:
667 email-prefix: '[tsdr]'
669 maven-version: '{mvn33}'
672 name: 'tsdr-validate-autorelease-{stream}'
673 disabled: '{obj:disable_autorelease}'
681 daysToKeep: '{build-days-to-keep}'
682 numToKeep: '{build-num-to-keep}'
683 artifactDaysToKeep: '{build-artifact-days-to-keep}'
684 artifactNumToKeep: '{build-artifact-num-to-keep}'
692 refspec: 'refs/heads/{branch}'
693 - autorelease-release-tag:
694 release-tag: 'validate'
695 - autorelease-release-branch:
696 release-branch: '{branch}'
699 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
700 description: "Autorelease clone URL"
705 credentials-id: '{ssh-credentials}'
715 - opendaylight-infra-wrappers:
716 build-timeout: '{build-timeout}'
720 server-name: 'OpenDaylight'
722 - patchset-created-event:
723 exclude-drafts: 'true'
724 exclude-trivial-rebase: 'false'
725 exclude-no-code-change: 'true'
726 - draft-published-event
727 - comment-added-contains-event:
728 comment-contains-value: 'recheck'
729 - comment-added-contains-event:
730 comment-contains-value: 'reverify'
731 - comment-added-contains-event:
732 comment-contains-value: 'revalidate'
734 - project-compare-type: 'ANT'
735 project-pattern: 'tsdr'
737 - branch-compare-type: 'ANT'
738 branch-pattern: '**/{branch}'
744 - jacoco-nojava-workaround
745 - autorelease-checkout-gerrit-patch
746 - autorelease-generate-release-patches
748 maven-version: '{mvn33}'
749 pom: validate-pom.xml
750 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'
753 settings: 'autorelease-settings'
755 global-settings: 'odl-global-settings'
756 global-settings-type: cfp
759 maven-name: '{mvn33}'
761 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
762 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
763 settings: 'autorelease-settings'
765 global-settings: 'odl-global-settings'
766 global-settings-type: cfp
767 automatic-archiving: false
768 post-step-run-condition: UNSTABLE
771 - autorelease-sys-stats
774 - email-notification:
775 email-prefix: '[autorelease] [tsdr]'
777 maven-version: '{mvn33}'