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)
80 daysToKeep: '{build-days-to-keep}'
81 numToKeep: '{build-num-to-keep}'
82 artifactDaysToKeep: '{build-artifact-days-to-keep}'
83 artifactNumToKeep: '{build-artifact-num-to-keep}'
90 - gerrit-refspec-parameter:
91 refspec: 'refs/heads/{branch}'
95 credentials-id: '{ssh-credentials}'
96 refspec: '$GERRIT_REFSPEC'
97 choosing-strategy: 'gerrit'
101 - ssh-agent-credentials:
103 - '{ssh-credentials}'
106 - gerrit-trigger-patch-submitted:
111 - wipe-org-opendaylight-repo
112 - jacoco-nojava-workaround
113 - provide-maven-settings:
114 global-settings-file: '{odl-global-settings}'
115 settings-file: '{tsdr-settings}'
117 maven-version: '{mvn33}'
119 goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
121 - '-Xmx1024m -XX:MaxPermSize=256m'
122 settings: '{tsdr-settings}'
123 global-settings: '{odl-global-settings}'
127 - email-notification:
128 email-prefix: '[tsdr]'
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}'
158 - gerrit-refspec-parameter:
159 refspec: 'refs/heads/{branch}'
162 - gerrit-trigger-scm:
163 credentials-id: '{ssh-credentials}'
165 choosing-strategy: 'default'
169 - ssh-agent-credentials:
171 - '{ssh-credentials}'
175 - gerrit-trigger-patch-merged:
180 - wipe-org-opendaylight-repo
181 - jacoco-nojava-workaround
182 - provide-maven-settings:
183 global-settings-file: '{odl-global-settings}'
184 settings-file: '{tsdr-settings}'
187 maven-name: '{mvn33}'
189 goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
190 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
191 settings: '{tsdr-settings}'
192 global-settings: '{odl-global-settings}'
193 post-step-run-condition: UNSTABLE
197 condition-kind: file-exists
198 condition-filename: deploy-site.xml
199 condition-basedir: workspace
201 # The strategy here is intentional to run Maven site:deploy twice
202 # once using regular pom.xml to produce a staged-site which is
203 # then used by deploy-site.xml to push to Nexus. This is a
204 # workaround to Maven Site's default linking code which creates
205 # incorrect URLs for sites due to auto-detection assuming your
206 # project is configured in a certain way which ODL is not.
209 maven-version: '{mvn33}'
211 goals: 'site:deploy -Dstream={stream}'
214 settings: '{tsdr-settings}'
215 global-settings: '{odl-global-settings}'
217 maven-version: '{mvn33}'
219 goals: 'site:deploy -Dstream={stream}'
222 settings: '{tsdr-settings}'
223 global-settings: '{odl-global-settings}'
230 artifacts: '**/target/surefire-reports/*-output.txt, '
231 - email-notification:
232 email-prefix: '[tsdr]'
236 deploy-unstable: false
240 name: 'tsdr-periodic-{stream}'
243 # Job template for periodic builders
245 # The purpose of this job template is to setup a periodic
248 # Required Variables:
249 # stream: release stream (eg. stable-lithium or beryllium)
250 # branch: git branch (eg. stable/lithium or master)
259 artifactDaysToKeep: '{build-artifact-days-to-keep}'
260 artifactNumToKeep: '{build-artifact-num-to-keep}'
268 credentials-id: '{ssh-credentials}'
274 - ssh-agent-credentials:
276 - '{ssh-credentials}'
282 - wipe-org-opendaylight-repo
283 - jacoco-nojava-workaround
284 - provide-maven-settings:
285 global-settings-file: '{odl-global-settings}'
286 settings-file: '{tsdr-settings}'
289 maven-name: '{mvn33}'
291 goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
292 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
293 settings: '{tsdr-settings}'
294 global-settings: '{odl-global-settings}'
300 - email-notification:
301 email-prefix: '[tsdr]'
305 name: 'tsdr-distribution-{stream}'
307 # Required variables:
308 # stream: release stream (eg. stable-lithium or beryllium)
309 # branch: git branch (eg. stable/lithium or master)
316 daysToKeep: '{build-days-to-keep}'
317 numToKeep: '{build-num-to-keep}'
318 artifactDaysToKeep: '{build-artifact-days-to-keep}'
319 artifactNumToKeep: '{build-artifact-num-to-keep}'
323 project: 'integration/distribution'
327 credentials-id: '{ssh-credentials}'
333 - ssh-agent-credentials:
335 - '{ssh-credentials}'
339 jobs: '{project}-merge-{stream}'
343 - wipe-org-opendaylight-repo
344 - provide-maven-settings:
345 global-settings-file: '{odl-global-settings}'
346 settings-file: '{tsdr-settings}'
349 maven-name: '{mvn33}'
351 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
352 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
353 settings: '{integration-settings}'
354 global-settings: '{odl-global-settings}'
357 - email-notification:
358 email-prefix: '[{project}]'
362 deploy-unstable: false
364 # Template: integration-patch-distribution-{stream}
365 # Goal: Build a patch and make sure the distribution can deploy with this change
366 # Operation: This job template builds a patch, creates a distribution containing
367 # the patch, and triggers the distribution deploy test
370 name: 'tsdr-distribution-check-{stream}'
371 disabled: '{obj:disable_distribution_check}'
381 artifactDaysToKeep: '{build-artifact-days-to-keep}'
382 artifactNumToKeep: '{build-artifact-num-to-keep}'
385 - gerrit-project-parameter:
387 - gerrit-refspec-parameter:
391 - integration-distribution-git-url
394 - integration-gerrit-scm:
395 credentials-id: '{ssh-credentials}'
396 basedir: '$GERRIT_PROJECT'
397 refspec: '$GERRIT_REFSPEC'
399 - integration-distribution-scm:
400 credentials-id: '{ssh-credentials}'
405 - ssh-agent-credentials:
407 - '{ssh-credentials}'
411 server-name: 'OpenDaylight'
413 - patchset-created-event:
414 exclude-drafts: 'true'
415 exclude-trivial-rebase: 'false'
416 exclude-no-code-change: 'true'
417 - draft-published-event
418 - comment-added-contains-event:
419 comment-contains-value: 'test-distribution'
421 - project-compare-type: 'ANT'
422 project-pattern: '{name}'
424 - branch-compare-type: 'ANT'
425 branch-pattern: '**/{branch}'
433 - wipe-org-opendaylight-repo
435 maven-version: '{mvn33}'
436 pom: '$GERRIT_PROJECT/pom.xml'
437 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}'
439 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
440 settings: '{tsdr-settings}'
441 global-settings: '{odl-global-settings}'
444 maven-name: '{mvn33}'
445 root-pom: 'distribution/pom.xml'
446 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
447 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
448 settings: '{tsdr-settings}'
449 global-settings: '{odl-global-settings}'
450 ignore-upstream-changes: true
451 post-step-run-condition: 'SUCCESS'
454 - integration-distribution-check
458 artifacts: 'karaf.log'
460 artifacts: 'karaf_console.log'
461 - email-notification:
462 email-prefix: '[tsdr]'
465 name: 'tsdr-integration-{stream}'
468 # Job template for ODL integration verify jobs
470 # This is similar to a normal verify job, but it runs
471 # when a project that's a dependency of your project
472 # is successfully built.
474 # Required Variables:
475 # stream: release stream (eg. stable-lithium or beryllium)
476 # branch: git branch (eg. stable/lithium or master)
483 daysToKeep: '{build-days-to-keep}'
484 numToKeep: '{build-num-to-keep}'
485 artifactDaysToKeep: '{build-artifact-days-to-keep}'
486 artifactNumToKeep: '{build-artifact-num-to-keep}'
494 credentials-id: '{ssh-credentials}'
500 - ssh-agent-credentials:
502 - '{ssh-credentials}'
506 jobs: 'odlparent-merge-{stream}'
510 - wipe-org-opendaylight-repo
511 - jacoco-nojava-workaround
512 - provide-maven-settings:
513 global-settings-file: '{odl-global-settings}'
514 settings-file: '{tsdr-settings}'
517 maven-name: '{mvn33}'
519 goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
520 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
521 settings: '{tsdr-settings}'
522 global-settings: '{odl-global-settings}'
528 - email-notification:
529 email-prefix: '[tsdr] [odlparent]'
543 artifactDaysToKeep: '1'
544 artifactNumToKeep: '1'
552 credentials-id: '{ssh-credentials}'
558 - ssh-agent-credentials:
560 - '{ssh-credentials}'
564 - gerrit-trigger-patch-sonar:
568 - wipe-org-opendaylight-repo
569 - jacoco-nojava-workaround
570 - provide-maven-settings:
571 global-settings-file: '{odl-global-settings}'
572 settings-file: '{tsdr-settings}'
575 maven-name: '{mvn33}'
577 goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
578 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
579 settings: '{tsdr-settings}'
580 global-settings: '{odl-global-settings}'
588 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
589 - email-notification:
590 email-prefix: '[tsdr]'
594 name: 'tsdr-clm-{stream}'
602 daysToKeep: '{build-days-to-keep}'
603 numToKeep: '{build-num-to-keep}'
604 artifactDaysToKeep: '{build-artifact-days-to-keep}'
605 artifactNumToKeep: '{build-artifact-num-to-keep}'
613 credentials-id: '{ssh-credentials}'
619 - ssh-agent-credentials:
621 - '{ssh-credentials}'
627 - wipe-org-opendaylight-repo
628 - provide-maven-settings:
629 global-settings-file: '{odl-global-settings}'
630 settings-file: '{tsdr-settings}'
633 maven-name: '{mvn33}'
635 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'
636 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
637 settings: '{tsdr-settings}'
638 global-settings: '{odl-global-settings}'
641 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
643 application-name: tsdr
646 - email-notification:
647 email-prefix: '[tsdr]'
650 name: 'tsdr-validate-autorelease-{stream}'
651 disabled: '{obj:disable_autorelease}'
659 daysToKeep: '{build-days-to-keep}'
660 numToKeep: '{build-num-to-keep}'
661 artifactDaysToKeep: '{build-artifact-days-to-keep}'
662 artifactNumToKeep: '{build-artifact-num-to-keep}'
669 - autorelease-release-tag:
670 release-tag: 'validate'
671 - autorelease-release-branch:
672 release-branch: '{branch}'
673 - autorelease-release-datestamp:
678 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
687 - autorelease-build-timeout
688 - ssh-agent-credentials:
690 - '{ssh-credentials}'
694 server-name: 'OpenDaylight'
696 - patchset-created-event:
697 exclude-drafts: 'false'
698 exclude-trivial-rebase: 'false'
699 exclude-no-code-change: 'false'
700 - draft-published-event
701 - comment-added-contains-event:
702 comment-contains-value: 'recheck'
703 - comment-added-contains-event:
704 comment-contains-value: 'reverify'
705 - comment-added-contains-event:
706 comment-contains-value: 'revalidate'
708 - project-compare-type: 'ANT'
709 project-pattern: 'tsdr'
711 - branch-compare-type: 'ANT'
712 branch-pattern: '**/{branch}'
715 - wipe-org-opendaylight-repo
716 - jacoco-nojava-workaround
717 - autorelease-checkout-gerrit-patch
718 - autorelease-generate-taglist
719 - autorelease-generate-release-patches
721 maven-version: '{mvn33}'
722 pom: validate-pom.xml
723 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
726 settings: '{autorelease-settings}'
727 global-settings: '{odl-global-settings}'
730 maven-name: '{mvn33}'
732 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
733 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
734 settings: '{autorelease-settings}'
735 global-settings: '{odl-global-settings}'
736 automatic-archiving: false
737 post-step-run-condition: UNSTABLE
740 - shell: "./scripts/list-project-dependencies.sh"
741 - autorelease-sys-stats
746 - email-notification:
747 email-prefix: '[autorelease] [tsdr]'