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 - 'persistence-verify-{stream}'
10 - 'persistence-merge-{stream}'
11 - 'persistence-periodic-{stream}'
12 - 'persistence-distribution-{stream}'
13 - 'persistence-distribution-check-{stream}'
14 - 'persistence-integration-{stream}'
16 - 'persistence-clm-{stream}'
17 - 'persistence-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
29 disable_autorelease: True
30 disable_distribution_check: False
32 branch: 'stable/beryllium'
37 disable_autorelease: True
38 disable_distribution_check: False
40 branch: 'stable/lithium'
45 disable_autorelease: True
46 disable_distribution_check: True
48 project: 'persistence'
50 # For the Job templates below replace instances of:
51 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
52 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
53 # MAVEN_GOALS with your maven goals to build
54 # MAVEN_OPTS with your maven options to build
57 name: 'persistence-verify-{stream}'
59 # Job template for ODL verify jobs
61 # The purpose of this job template is to setup a ODL verify job
64 # stream: release stream (eg. stable-lithium or beryllium)
65 # branch: git branch (eg. stable/lithium or master)
82 daysToKeep: '{build-days-to-keep}'
83 numToKeep: '{build-num-to-keep}'
84 artifactDaysToKeep: '{build-artifact-days-to-keep}'
85 artifactNumToKeep: '{build-artifact-num-to-keep}'
92 - gerrit-refspec-parameter:
93 refspec: 'refs/heads/{branch}'
97 credentials-id: '{ssh-credentials}'
98 refspec: '$GERRIT_REFSPEC'
99 choosing-strategy: 'gerrit'
103 - ssh-agent-credentials:
105 - '{ssh-credentials}'
108 - gerrit-trigger-patch-submitted:
113 - wipe-org-opendaylight-repo
114 - jacoco-nojava-workaround
115 - provide-maven-settings:
116 global-settings-file: '{odl-global-settings}'
117 settings-file: '{persistence-settings}'
119 maven-version: '{mvn33}'
121 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
123 - '-Xmx1024m -XX:MaxPermSize=256m'
124 settings: '{persistence-settings}'
125 global-settings: '{odl-global-settings}'
129 artifacts: '**/target/surefire-reports/*-output.txt, '
131 - email-notification:
132 email-prefix: '[persistence]'
136 name: 'persistence-merge-{stream}'
138 # Job template for ODL merge jobs
140 # The purpose of this job template is to setup a ODL merge job
141 # and deploy artifacts to Nexus.
143 # Required Variables:
144 # stream: release stream (eg. stable-lithium or beryllium)
145 # branch: git branch (eg. stable/lithium or master)
154 artifactDaysToKeep: '{build-artifact-days-to-keep}'
155 artifactNumToKeep: '{build-artifact-num-to-keep}'
162 - gerrit-refspec-parameter:
163 refspec: 'refs/heads/{branch}'
166 - gerrit-trigger-scm:
167 credentials-id: '{ssh-credentials}'
169 choosing-strategy: 'default'
173 - ssh-agent-credentials:
175 - '{ssh-credentials}'
179 - gerrit-trigger-patch-merged:
184 - wipe-org-opendaylight-repo
185 - jacoco-nojava-workaround
186 - provide-maven-settings:
187 global-settings-file: '{odl-global-settings}'
188 settings-file: '{persistence-settings}'
191 maven-name: '{mvn33}'
193 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
194 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
195 settings: '{persistence-settings}'
196 global-settings: '{odl-global-settings}'
197 post-step-run-condition: UNSTABLE
201 condition-kind: file-exists
202 condition-filename: deploy-site.xml
203 condition-basedir: workspace
205 # The strategy here is intentional to run Maven site:deploy twice
206 # once using regular pom.xml to produce a staged-site which is
207 # then used by deploy-site.xml to push to Nexus. This is a
208 # workaround to Maven Site's default linking code which creates
209 # incorrect URLs for sites due to auto-detection assuming your
210 # project is configured in a certain way which ODL is not.
213 maven-version: '{mvn33}'
215 goals: 'site:deploy -Dstream={stream}'
218 settings: '{persistence-settings}'
219 global-settings: '{odl-global-settings}'
221 maven-version: '{mvn33}'
223 goals: 'site:deploy -Dstream={stream}'
226 settings: '{persistence-settings}'
227 global-settings: '{odl-global-settings}'
234 artifacts: '**/target/surefire-reports/*-output.txt, '
235 - email-notification:
236 email-prefix: '[persistence]'
240 deploy-unstable: false
244 name: 'persistence-periodic-{stream}'
247 # Job template for periodic builders
249 # The purpose of this job template is to setup a periodic
252 # Required Variables:
253 # stream: release stream (eg. stable-lithium or beryllium)
254 # branch: git branch (eg. stable/lithium or master)
263 artifactDaysToKeep: '{build-artifact-days-to-keep}'
264 artifactNumToKeep: '{build-artifact-num-to-keep}'
272 credentials-id: '{ssh-credentials}'
278 - ssh-agent-credentials:
280 - '{ssh-credentials}'
286 - wipe-org-opendaylight-repo
287 - jacoco-nojava-workaround
288 - provide-maven-settings:
289 global-settings-file: '{odl-global-settings}'
290 settings-file: '{persistence-settings}'
293 maven-name: '{mvn33}'
295 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
296 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
297 settings: '{persistence-settings}'
298 global-settings: '{odl-global-settings}'
304 - email-notification:
305 email-prefix: '[persistence]'
309 name: 'persistence-distribution-{stream}'
311 # Required variables:
312 # stream: release stream (eg. stable-lithium or beryllium)
313 # branch: git branch (eg. stable/lithium or master)
320 daysToKeep: '{build-days-to-keep}'
321 numToKeep: '{build-num-to-keep}'
322 artifactDaysToKeep: '{build-artifact-days-to-keep}'
323 artifactNumToKeep: '{build-artifact-num-to-keep}'
327 project: 'integration/distribution'
331 credentials-id: '{ssh-credentials}'
337 - ssh-agent-credentials:
339 - '{ssh-credentials}'
343 jobs: '{project}-merge-{stream}'
347 - wipe-org-opendaylight-repo
348 - provide-maven-settings:
349 global-settings-file: '{odl-global-settings}'
350 settings-file: '{persistence-settings}'
353 maven-name: '{mvn33}'
355 goals: 'clean install -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-settings}'
358 global-settings: '{odl-global-settings}'
361 - email-notification:
362 email-prefix: '[{project}]'
366 deploy-unstable: false
368 # Template: integration-patch-distribution-{stream}
369 # Goal: Build a patch and make sure the distribution can deploy with this change
370 # Operation: This job template builds a patch, creates a distribution containing
371 # the patch, and triggers the distribution deploy test
374 name: 'persistence-distribution-check-{stream}'
375 disabled: '{obj:disable_distribution_check}'
385 artifactDaysToKeep: '{build-artifact-days-to-keep}'
386 artifactNumToKeep: '{build-artifact-num-to-keep}'
389 - gerrit-project-parameter:
391 - gerrit-refspec-parameter:
395 - integration-distribution-git-url
398 - integration-gerrit-scm:
399 credentials-id: '{ssh-credentials}'
400 basedir: '$GERRIT_PROJECT'
401 refspec: '$GERRIT_REFSPEC'
403 - integration-distribution-scm:
404 credentials-id: '{ssh-credentials}'
409 - ssh-agent-credentials:
411 - '{ssh-credentials}'
415 server-name: 'OpenDaylight'
417 - patchset-created-event:
418 exclude-drafts: 'true'
419 exclude-trivial-rebase: 'false'
420 exclude-no-code-change: 'true'
421 - draft-published-event
422 - comment-added-contains-event:
423 comment-contains-value: 'test-distribution'
425 - project-compare-type: 'ANT'
426 project-pattern: '{name}'
428 - branch-compare-type: 'ANT'
429 branch-pattern: '**/{branch}'
437 - wipe-org-opendaylight-repo
439 maven-version: '{mvn33}'
440 pom: '$GERRIT_PROJECT/pom.xml'
441 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}'
443 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
444 settings: '{persistence-settings}'
445 global-settings: '{odl-global-settings}'
448 maven-name: '{mvn33}'
449 root-pom: 'distribution/pom.xml'
450 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
451 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
452 settings: '{persistence-settings}'
453 global-settings: '{odl-global-settings}'
454 ignore-upstream-changes: true
455 post-step-run-condition: 'SUCCESS'
458 - integration-distribution-check
462 artifacts: 'karaf.log'
464 artifacts: 'karaf_console.log'
465 - email-notification:
466 email-prefix: '[persistence]'
469 name: 'persistence-integration-{stream}'
472 # Job template for ODL integration verify jobs
474 # This is similar to a normal verify job, but it runs
475 # when a project that's a dependency of your project
476 # is successfully built.
478 # Required Variables:
479 # stream: release stream (eg. stable-lithium or beryllium)
480 # branch: git branch (eg. stable/lithium or master)
487 daysToKeep: '{build-days-to-keep}'
488 numToKeep: '{build-num-to-keep}'
489 artifactDaysToKeep: '{build-artifact-days-to-keep}'
490 artifactNumToKeep: '{build-artifact-num-to-keep}'
498 credentials-id: '{ssh-credentials}'
504 - ssh-agent-credentials:
506 - '{ssh-credentials}'
510 jobs: 'odlparent-merge-{stream}'
514 - wipe-org-opendaylight-repo
515 - jacoco-nojava-workaround
516 - provide-maven-settings:
517 global-settings-file: '{odl-global-settings}'
518 settings-file: '{persistence-settings}'
521 maven-name: '{mvn33}'
523 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
524 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
525 settings: '{persistence-settings}'
526 global-settings: '{odl-global-settings}'
532 - email-notification:
533 email-prefix: '[persistence] [odlparent]'
537 name: 'persistence-sonar'
547 artifactDaysToKeep: '1'
548 artifactNumToKeep: '1'
556 credentials-id: '{ssh-credentials}'
562 - ssh-agent-credentials:
564 - '{ssh-credentials}'
568 - gerrit-trigger-patch-sonar:
572 - wipe-org-opendaylight-repo
573 - jacoco-nojava-workaround
574 - provide-maven-settings:
575 global-settings-file: '{odl-global-settings}'
576 settings-file: '{persistence-settings}'
579 maven-name: '{mvn33}'
581 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
582 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
583 settings: '{persistence-settings}'
584 global-settings: '{odl-global-settings}'
592 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
593 - email-notification:
594 email-prefix: '[persistence]'
598 name: 'persistence-clm-{stream}'
606 daysToKeep: '{build-days-to-keep}'
607 numToKeep: '{build-num-to-keep}'
608 artifactDaysToKeep: '{build-artifact-days-to-keep}'
609 artifactNumToKeep: '{build-artifact-num-to-keep}'
617 credentials-id: '{ssh-credentials}'
623 - ssh-agent-credentials:
625 - '{ssh-credentials}'
631 - wipe-org-opendaylight-repo
632 - provide-maven-settings:
633 global-settings-file: '{odl-global-settings}'
634 settings-file: '{persistence-settings}'
637 maven-name: '{mvn33}'
639 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'
640 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
641 settings: '{persistence-settings}'
642 global-settings: '{odl-global-settings}'
645 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
647 application-name: persistence
650 - email-notification:
651 email-prefix: '[persistence]'
654 name: 'persistence-validate-autorelease-{stream}'
655 disabled: '{obj:disable_autorelease}'
663 daysToKeep: '{build-days-to-keep}'
664 numToKeep: '{build-num-to-keep}'
665 artifactDaysToKeep: '{build-artifact-days-to-keep}'
666 artifactNumToKeep: '{build-artifact-num-to-keep}'
673 - autorelease-release-tag:
674 release-tag: 'validate'
675 - autorelease-release-branch:
676 release-branch: '{branch}'
677 - autorelease-release-datestamp:
682 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
691 - autorelease-build-timeout
692 - ssh-agent-credentials:
694 - '{ssh-credentials}'
698 server-name: 'OpenDaylight'
700 - patchset-created-event:
701 exclude-drafts: 'false'
702 exclude-trivial-rebase: 'false'
703 exclude-no-code-change: 'false'
704 - draft-published-event
705 - comment-added-contains-event:
706 comment-contains-value: 'recheck'
707 - comment-added-contains-event:
708 comment-contains-value: 'reverify'
709 - comment-added-contains-event:
710 comment-contains-value: 'revalidate'
712 - project-compare-type: 'ANT'
713 project-pattern: 'persistence'
715 - branch-compare-type: 'ANT'
716 branch-pattern: '**/{branch}'
722 - wipe-org-opendaylight-repo
723 - jacoco-nojava-workaround
724 - autorelease-checkout-gerrit-patch
725 - autorelease-generate-taglist
726 - autorelease-generate-release-patches
728 maven-version: '{mvn33}'
729 pom: validate-pom.xml
730 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
733 settings: '{autorelease-settings}'
734 global-settings: '{odl-global-settings}'
737 maven-name: '{mvn33}'
739 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
740 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
741 settings: '{autorelease-settings}'
742 global-settings: '{odl-global-settings}'
743 automatic-archiving: false
744 post-step-run-condition: UNSTABLE
747 - shell: "./scripts/list-project-dependencies.sh"
748 - autorelease-sys-stats
753 - email-notification:
754 email-prefix: '[autorelease] [persistence]'