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 - 'discovery-verify-{stream}'
10 - 'discovery-merge-{stream}'
11 - 'discovery-periodic-{stream}'
12 - 'discovery-distribution-{stream}'
13 - 'discovery-distribution-check-{stream}'
14 - 'discovery-integration-{stream}'
16 - 'discovery-clm-{stream}'
17 - 'discovery-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
28 disable_autorelease: True
29 disable_distribution_check: False
31 branch: 'stable/beryllium'
35 disable_autorelease: True
36 disable_distribution_check: False
40 # For the Job templates below replace instances of:
41 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
42 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
43 # MAVEN_GOALS with your maven goals to build
44 # MAVEN_OPTS with your maven options to build
47 name: 'discovery-verify-{stream}'
49 # Job template for ODL verify jobs
51 # The purpose of this job template is to setup a ODL verify job
54 # stream: release stream (eg. stable-lithium or beryllium)
55 # branch: git branch (eg. stable/lithium or master)
72 daysToKeep: '{build-days-to-keep}'
73 numToKeep: '{build-num-to-keep}'
74 artifactDaysToKeep: '{build-artifact-days-to-keep}'
75 artifactNumToKeep: '{build-artifact-num-to-keep}'
83 refspec: 'refs/heads/{branch}'
87 credentials-id: '{ssh-credentials}'
88 refspec: '$GERRIT_REFSPEC'
89 choosing-strategy: 'gerrit'
93 - ssh-agent-credentials:
98 - gerrit-trigger-patch-submitted:
103 - wipe-org-opendaylight-repo
104 - jacoco-nojava-workaround
105 - provide-maven-settings:
106 global-settings-file: 'odl-global-settings'
107 settings-file: 'discovery-settings'
109 maven-version: '{mvn33}'
111 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
113 - '-Xmx1024m -XX:MaxPermSize=256m'
114 settings: 'discovery-settings'
116 global-settings: 'odl-global-settings'
117 global-settings-type: cfp
121 artifacts: '**/target/surefire-reports/*-output.txt, '
123 - email-notification:
124 email-prefix: '[discovery]'
127 maven-version: '{mvn33}'
130 name: 'discovery-merge-{stream}'
132 # Job template for ODL merge jobs
134 # The purpose of this job template is to setup a ODL merge job
135 # and deploy artifacts to Nexus.
137 # Required Variables:
138 # stream: release stream (eg. stable-lithium or beryllium)
139 # branch: git branch (eg. stable/lithium or master)
148 artifactDaysToKeep: '{build-artifact-days-to-keep}'
149 artifactNumToKeep: '{build-artifact-num-to-keep}'
157 refspec: 'refs/heads/{branch}'
160 - gerrit-trigger-scm:
161 credentials-id: '{ssh-credentials}'
163 choosing-strategy: 'default'
167 - ssh-agent-credentials:
169 - '{ssh-credentials}'
173 - gerrit-trigger-patch-merged:
178 - wipe-org-opendaylight-repo
179 - jacoco-nojava-workaround
180 - provide-maven-settings:
181 global-settings-file: 'odl-global-settings'
182 settings-file: 'discovery-settings'
185 maven-name: '{mvn33}'
187 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
188 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
189 settings: 'discovery-settings'
191 global-settings: 'odl-global-settings'
192 global-settings-type: cfp
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 -V -B -Dstream={stream}'
214 settings: 'discovery-settings'
216 global-settings: 'odl-global-settings'
217 global-settings-type: cfp
219 maven-version: '{mvn33}'
221 goals: 'site:deploy -V -B -Dstream={stream}'
224 settings: 'discovery-settings'
226 global-settings: 'odl-global-settings'
227 global-settings-type: cfp
234 artifacts: '**/target/surefire-reports/*-output.txt, '
235 - email-notification:
236 email-prefix: '[discovery]'
240 deploy-unstable: false
243 maven-version: '{mvn33}'
246 name: 'discovery-periodic-{stream}'
249 # Job template for periodic builders
251 # The purpose of this job template is to setup a periodic
254 # Required Variables:
255 # stream: release stream (eg. stable-lithium or beryllium)
256 # branch: git branch (eg. stable/lithium or master)
265 artifactDaysToKeep: '{build-artifact-days-to-keep}'
266 artifactNumToKeep: '{build-artifact-num-to-keep}'
274 credentials-id: '{ssh-credentials}'
280 - ssh-agent-credentials:
282 - '{ssh-credentials}'
288 - wipe-org-opendaylight-repo
289 - jacoco-nojava-workaround
290 - provide-maven-settings:
291 global-settings-file: 'odl-global-settings'
292 settings-file: 'discovery-settings'
295 maven-name: '{mvn33}'
297 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
298 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
299 settings: 'discovery-settings'
301 global-settings: 'odl-global-settings'
302 global-settings-type: cfp
308 - email-notification:
309 email-prefix: '[discovery]'
312 maven-version: '{mvn33}'
315 name: 'discovery-distribution-{stream}'
317 # Required variables:
318 # stream: release stream (eg. stable-lithium or beryllium)
319 # branch: git branch (eg. stable/lithium or master)
326 daysToKeep: '{build-days-to-keep}'
327 numToKeep: '{build-num-to-keep}'
328 artifactDaysToKeep: '{build-artifact-days-to-keep}'
329 artifactNumToKeep: '{build-artifact-num-to-keep}'
333 project: 'integration/distribution'
337 credentials-id: '{ssh-credentials}'
343 - ssh-agent-credentials:
345 - '{ssh-credentials}'
349 jobs: '{project}-merge-{stream}'
353 - wipe-org-opendaylight-repo
354 - provide-maven-settings:
355 global-settings-file: 'odl-global-settings'
356 settings-file: 'discovery-settings'
359 maven-name: '{mvn33}'
361 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
362 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
363 settings: 'integration-distribution-settings'
365 global-settings: 'odl-global-settings'
366 global-settings-type: cfp
369 - email-notification:
370 email-prefix: '[{project}]'
374 deploy-unstable: false
376 maven-version: '{mvn33}'
378 # Template: integration-patch-distribution-{stream}
379 # Goal: Build a patch and make sure the distribution can deploy with this change
380 # Operation: This job template builds a patch, creates a distribution containing
381 # the patch, and triggers the distribution deploy test
384 name: 'discovery-distribution-check-{stream}'
385 disabled: '{obj:disable_distribution_check}'
393 daysToKeep: '{build-days-to-keep}'
394 numToKeep: '{build-num-to-keep}'
395 artifactDaysToKeep: '{build-artifact-days-to-keep}'
396 artifactNumToKeep: '{build-artifact-num-to-keep}'
402 refspec: 'refs/heads/{branch}'
405 - integration-distribution-git-url
408 - integration-gerrit-scm:
409 credentials-id: '{ssh-credentials}'
410 basedir: '$GERRIT_PROJECT'
411 refspec: '$GERRIT_REFSPEC'
413 - integration-distribution-scm:
414 credentials-id: '{ssh-credentials}'
419 - ssh-agent-credentials:
421 - '{ssh-credentials}'
425 server-name: 'OpenDaylight'
427 - patchset-created-event:
428 exclude-drafts: 'true'
429 exclude-trivial-rebase: 'false'
430 exclude-no-code-change: 'true'
431 - draft-published-event
432 - comment-added-contains-event:
433 comment-contains-value: 'test-distribution'
434 - comment-added-contains-event:
435 comment-contains-value: 'reverify'
436 - comment-added-contains-event:
437 comment-contains-value: 'recheck'
439 - project-compare-type: 'ANT'
440 project-pattern: '{name}'
442 - branch-compare-type: 'ANT'
443 branch-pattern: '**/{branch}'
451 - wipe-org-opendaylight-repo
453 maven-version: '{mvn33}'
454 pom: '$GERRIT_PROJECT/pom.xml'
455 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}'
457 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
458 settings: 'discovery-settings'
460 global-settings: 'odl-global-settings'
461 global-settings-type: cfp
464 maven-name: '{mvn33}'
465 root-pom: 'distribution/pom.xml'
466 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
467 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
468 settings: 'discovery-settings'
470 global-settings: 'odl-global-settings'
471 global-settings-type: cfp
472 ignore-upstream-changes: true
473 post-step-run-condition: 'SUCCESS'
476 - integration-distribution-check
480 artifacts: 'karaf.log'
482 artifacts: 'karaf_console.log'
483 - email-notification:
484 email-prefix: '[discovery]'
486 maven-version: '{mvn33}'
489 name: 'discovery-integration-{stream}'
492 # Job template for ODL integration verify jobs
494 # This is similar to a normal verify job, but it runs
495 # when a project that's a dependency of your project
496 # is successfully built.
498 # Required Variables:
499 # stream: release stream (eg. stable-lithium or beryllium)
500 # branch: git branch (eg. stable/lithium or master)
507 daysToKeep: '{build-days-to-keep}'
508 numToKeep: '{build-num-to-keep}'
509 artifactDaysToKeep: '{build-artifact-days-to-keep}'
510 artifactNumToKeep: '{build-artifact-num-to-keep}'
518 credentials-id: '{ssh-credentials}'
524 - ssh-agent-credentials:
526 - '{ssh-credentials}'
530 jobs: 'odlparent-merge-{stream}'
534 - wipe-org-opendaylight-repo
535 - jacoco-nojava-workaround
536 - provide-maven-settings:
537 global-settings-file: 'odl-global-settings'
538 settings-file: 'discovery-settings'
541 maven-name: '{mvn33}'
543 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
544 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
545 settings: 'discovery-settings'
547 global-settings: 'odl-global-settings'
548 global-settings-type: cfp
554 - email-notification:
555 email-prefix: '[discovery] [odlparent]'
558 maven-version: '{mvn33}'
561 name: 'discovery-sonar'
571 artifactDaysToKeep: '1'
572 artifactNumToKeep: '1'
580 credentials-id: '{ssh-credentials}'
586 - ssh-agent-credentials:
588 - '{ssh-credentials}'
592 - gerrit-trigger-patch-sonar:
596 - wipe-org-opendaylight-repo
597 - jacoco-nojava-workaround
598 - provide-maven-settings:
599 global-settings-file: 'odl-global-settings'
600 settings-file: 'discovery-settings'
603 maven-name: '{mvn33}'
605 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
606 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
607 settings: 'discovery-settings'
609 global-settings: 'odl-global-settings'
610 global-settings-type: cfp
618 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
619 - email-notification:
620 email-prefix: '[discovery]'
623 maven-version: '{mvn33}'
626 name: 'discovery-clm-{stream}'
634 daysToKeep: '{build-days-to-keep}'
635 numToKeep: '{build-num-to-keep}'
636 artifactDaysToKeep: '{build-artifact-days-to-keep}'
637 artifactNumToKeep: '{build-artifact-num-to-keep}'
645 credentials-id: '{ssh-credentials}'
651 - ssh-agent-credentials:
653 - '{ssh-credentials}'
659 - wipe-org-opendaylight-repo
660 - provide-maven-settings:
661 global-settings-file: 'odl-global-settings'
662 settings-file: 'discovery-settings'
665 maven-name: '{mvn33}'
667 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'
668 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
669 settings: 'discovery-settings'
671 global-settings: 'odl-global-settings'
672 global-settings-type: cfp
675 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
677 application-name: discovery
680 - email-notification:
681 email-prefix: '[discovery]'
683 maven-version: '{mvn33}'
686 name: 'discovery-validate-autorelease-{stream}'
687 disabled: '{obj:disable_autorelease}'
695 daysToKeep: '{build-days-to-keep}'
696 numToKeep: '{build-num-to-keep}'
697 artifactDaysToKeep: '{build-artifact-days-to-keep}'
698 artifactNumToKeep: '{build-artifact-num-to-keep}'
706 refspec: 'refs/heads/{branch}'
707 - autorelease-release-tag:
708 release-tag: 'validate'
709 - autorelease-release-branch:
710 release-branch: '{branch}'
713 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
714 description: "Autorelease clone URL"
719 credentials-id: '{ssh-credentials}'
729 - autorelease-build-timeout
730 - ssh-agent-credentials:
732 - '{ssh-credentials}'
736 server-name: 'OpenDaylight'
738 - patchset-created-event:
739 exclude-drafts: 'true'
740 exclude-trivial-rebase: 'false'
741 exclude-no-code-change: 'true'
742 - draft-published-event
743 - comment-added-contains-event:
744 comment-contains-value: 'recheck'
745 - comment-added-contains-event:
746 comment-contains-value: 'reverify'
747 - comment-added-contains-event:
748 comment-contains-value: 'revalidate'
750 - project-compare-type: 'ANT'
751 project-pattern: 'discovery'
753 - branch-compare-type: 'ANT'
754 branch-pattern: '**/{branch}'
760 - wipe-org-opendaylight-repo
761 - jacoco-nojava-workaround
762 - autorelease-checkout-gerrit-patch
763 - autorelease-generate-release-patches
765 maven-version: '{mvn33}'
766 pom: validate-pom.xml
767 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'
770 settings: 'autorelease-settings'
772 global-settings: 'odl-global-settings'
773 global-settings-type: cfp
776 maven-name: '{mvn33}'
778 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
779 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
780 settings: 'autorelease-settings'
782 global-settings: 'odl-global-settings'
783 global-settings-type: cfp
784 automatic-archiving: false
785 post-step-run-condition: UNSTABLE
788 - autorelease-sys-stats
791 - email-notification:
792 email-prefix: '[autorelease] [discovery]'
794 maven-version: '{mvn33}'