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 - 'ovsdb-verify-{stream}'
10 - 'ovsdb-merge-{stream}'
11 - 'ovsdb-periodic-{stream}'
12 - 'ovsdb-distribution-{stream}'
13 - 'ovsdb-distribution-check-{stream}'
14 - 'ovsdb-integration-{stream}'
15 - 'ovsdb-clm-{stream}'
16 - 'ovsdb-validate-autorelease-{stream}'
19 # stream: release stream (eg. stable-lithium or beryllium)
20 # branch: git branch (eg. stable/lithium or master)
27 disable_autorelease: False
28 disable_distribution_check: False
30 branch: 'stable/beryllium'
35 disable_autorelease: False
36 disable_distribution_check: False
38 branch: 'stable/lithium'
42 disable_autorelease: True
43 disable_distribution_check: True
47 # For the Job templates below replace instances of:
48 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
49 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
50 # MAVEN_GOALS with your maven goals to build
51 # MAVEN_OPTS with your maven options to build
54 name: 'ovsdb-verify-{stream}'
56 # Job template for ODL verify jobs
58 # The purpose of this job template is to setup a ODL verify job
61 # stream: release stream (eg. stable-lithium or beryllium)
62 # branch: git branch (eg. stable/lithium or master)
87 refspec: 'refs/heads/{branch}'
91 credentials-id: '{ssh-credentials}'
92 refspec: '$GERRIT_REFSPEC'
93 choosing-strategy: 'gerrit'
97 - ssh-agent-credentials:
102 - gerrit-trigger-patch-submitted:
107 - jacoco-nojava-workaround
108 - provide-maven-settings:
109 global-settings-file: 'odl-global-settings'
110 settings-file: 'ovsdb-settings'
112 maven-version: '{mvn33}'
114 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
116 - '-Xmx1024m -XX:MaxPermSize=256m'
117 settings: 'ovsdb-settings'
119 global-settings: 'odl-global-settings'
120 global-settings-type: cfp
124 artifacts: '**/target/surefire-reports/*-output.txt, '
126 - email-notification:
127 email-prefix: '[ovsdb]'
130 maven-version: '{mvn33}'
133 name: 'ovsdb-merge-{stream}'
135 # Job template for ODL merge jobs
137 # The purpose of this job template is to setup a ODL merge job
138 # and deploy artifacts to Nexus.
140 # Required Variables:
141 # stream: release stream (eg. stable-lithium or beryllium)
142 # branch: git branch (eg. stable/lithium or master)
151 artifactDaysToKeep: '{build-artifact-days-to-keep}'
152 artifactNumToKeep: '{build-artifact-num-to-keep}'
160 refspec: 'refs/heads/{branch}'
163 - gerrit-trigger-scm:
164 credentials-id: '{ssh-credentials}'
166 choosing-strategy: 'default'
170 - ssh-agent-credentials:
172 - '{ssh-credentials}'
178 - gerrit-trigger-patch-merged:
183 - jacoco-nojava-workaround
184 - provide-maven-settings:
185 global-settings-file: 'odl-global-settings'
186 settings-file: 'ovsdb-settings'
189 maven-name: '{mvn33}'
191 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
192 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
193 settings: 'ovsdb-settings'
195 global-settings: 'odl-global-settings'
196 global-settings-type: cfp
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 -V -B -Dstream={stream}'
218 settings: 'ovsdb-settings'
220 global-settings: 'odl-global-settings'
221 global-settings-type: cfp
223 maven-version: '{mvn33}'
225 goals: 'site:deploy -V -B -Dstream={stream}'
228 settings: 'ovsdb-settings'
230 global-settings: 'odl-global-settings'
231 global-settings-type: cfp
238 artifacts: '**/target/surefire-reports/*-output.txt, '
239 - email-notification:
240 email-prefix: '[ovsdb]'
244 deploy-unstable: false
247 maven-version: '{mvn33}'
250 name: 'ovsdb-periodic-{stream}'
253 # Job template for periodic builders
255 # The purpose of this job template is to setup a periodic
258 # Required Variables:
259 # stream: release stream (eg. stable-lithium or beryllium)
260 # branch: git branch (eg. stable/lithium or master)
269 artifactDaysToKeep: '{build-artifact-days-to-keep}'
270 artifactNumToKeep: '{build-artifact-num-to-keep}'
278 credentials-id: '{ssh-credentials}'
284 - ssh-agent-credentials:
286 - '{ssh-credentials}'
294 - jacoco-nojava-workaround
295 - provide-maven-settings:
296 global-settings-file: 'odl-global-settings'
297 settings-file: 'ovsdb-settings'
300 maven-name: '{mvn33}'
302 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
303 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
304 settings: 'ovsdb-settings'
306 global-settings: 'odl-global-settings'
307 global-settings-type: cfp
313 - email-notification:
314 email-prefix: '[ovsdb]'
317 maven-version: '{mvn33}'
320 name: 'ovsdb-distribution-{stream}'
322 # Required variables:
323 # stream: release stream (eg. stable-lithium or beryllium)
324 # branch: git branch (eg. stable/lithium or master)
331 daysToKeep: '{build-days-to-keep}'
332 numToKeep: '{build-num-to-keep}'
333 artifactDaysToKeep: '{build-artifact-days-to-keep}'
334 artifactNumToKeep: '{build-artifact-num-to-keep}'
338 project: 'integration/distribution'
342 credentials-id: '{ssh-credentials}'
348 - ssh-agent-credentials:
350 - '{ssh-credentials}'
356 jobs: '{project}-merge-{stream}'
360 - provide-maven-settings:
361 global-settings-file: 'odl-global-settings'
362 settings-file: 'ovsdb-settings'
365 maven-name: '{mvn33}'
367 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
368 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
369 settings: 'integration-distribution-settings'
371 global-settings: 'odl-global-settings'
372 global-settings-type: cfp
375 - email-notification:
376 email-prefix: '[{project}]'
380 deploy-unstable: false
382 maven-version: '{mvn33}'
384 # Template: integration-patch-distribution-{stream}
385 # Goal: Build a patch and make sure the distribution can deploy with this change
386 # Operation: This job template builds a patch, creates a distribution containing
387 # the patch, and triggers the distribution deploy test
390 name: 'ovsdb-distribution-check-{stream}'
391 disabled: '{obj:disable_distribution_check}'
399 daysToKeep: '{build-days-to-keep}'
400 numToKeep: '{build-num-to-keep}'
401 artifactDaysToKeep: '{build-artifact-days-to-keep}'
402 artifactNumToKeep: '{build-artifact-num-to-keep}'
408 refspec: 'refs/heads/{branch}'
411 - integration-distribution-git-url
414 - integration-gerrit-scm:
415 credentials-id: '{ssh-credentials}'
416 basedir: '$GERRIT_PROJECT'
417 refspec: '$GERRIT_REFSPEC'
419 - integration-distribution-scm:
420 credentials-id: '{ssh-credentials}'
425 - ssh-agent-credentials:
427 - '{ssh-credentials}'
433 server-name: 'OpenDaylight'
435 - patchset-created-event:
436 exclude-drafts: 'true'
437 exclude-trivial-rebase: 'false'
438 exclude-no-code-change: 'true'
439 - draft-published-event
440 - comment-added-contains-event:
441 comment-contains-value: 'test-distribution'
442 - comment-added-contains-event:
443 comment-contains-value: 'reverify'
444 - comment-added-contains-event:
445 comment-contains-value: 'recheck'
447 - project-compare-type: 'ANT'
448 project-pattern: '{name}'
450 - branch-compare-type: 'ANT'
451 branch-pattern: '**/{branch}'
460 maven-version: '{mvn33}'
461 pom: '$GERRIT_PROJECT/pom.xml'
462 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}'
464 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
465 settings: 'ovsdb-settings'
467 global-settings: 'odl-global-settings'
468 global-settings-type: cfp
471 maven-name: '{mvn33}'
472 root-pom: 'distribution/pom.xml'
473 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
474 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
475 settings: 'ovsdb-settings'
477 global-settings: 'odl-global-settings'
478 global-settings-type: cfp
479 ignore-upstream-changes: true
480 post-step-run-condition: 'SUCCESS'
483 - integration-distribution-check
487 artifacts: 'karaf.log'
489 artifacts: 'karaf_console.log'
490 - email-notification:
491 email-prefix: '[ovsdb]'
493 maven-version: '{mvn33}'
496 name: 'ovsdb-integration-{stream}'
499 # Job template for ODL integration verify jobs
501 # This is similar to a normal verify job, but it runs
502 # when a project that's a dependency of your project
503 # is successfully built.
505 # Required Variables:
506 # stream: release stream (eg. stable-lithium or beryllium)
507 # branch: git branch (eg. stable/lithium or master)
514 daysToKeep: '{build-days-to-keep}'
515 numToKeep: '{build-num-to-keep}'
516 artifactDaysToKeep: '{build-artifact-days-to-keep}'
517 artifactNumToKeep: '{build-artifact-num-to-keep}'
525 credentials-id: '{ssh-credentials}'
531 - ssh-agent-credentials:
533 - '{ssh-credentials}'
539 jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}'
543 - jacoco-nojava-workaround
544 - provide-maven-settings:
545 global-settings-file: 'odl-global-settings'
546 settings-file: 'ovsdb-settings'
549 maven-name: '{mvn33}'
551 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
552 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
553 settings: 'ovsdb-settings'
555 global-settings: 'odl-global-settings'
556 global-settings-type: cfp
562 - email-notification:
563 email-prefix: '[ovsdb] [odlparent] [controller] [yangtools]'
566 maven-version: '{mvn33}'
569 name: 'ovsdb-clm-{stream}'
577 daysToKeep: '{build-days-to-keep}'
578 numToKeep: '{build-num-to-keep}'
579 artifactDaysToKeep: '{build-artifact-days-to-keep}'
580 artifactNumToKeep: '{build-artifact-num-to-keep}'
588 credentials-id: '{ssh-credentials}'
594 - ssh-agent-credentials:
596 - '{ssh-credentials}'
604 - provide-maven-settings:
605 global-settings-file: 'odl-global-settings'
606 settings-file: 'ovsdb-settings'
609 maven-name: '{mvn33}'
611 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'
612 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
613 settings: 'ovsdb-settings'
615 global-settings: 'odl-global-settings'
616 global-settings-type: cfp
619 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
621 application-name: ovsdb
624 - email-notification:
625 email-prefix: '[ovsdb]'
627 maven-version: '{mvn33}'
630 name: 'ovsdb-validate-autorelease-{stream}'
631 disabled: '{obj:disable_autorelease}'
639 daysToKeep: '{build-days-to-keep}'
640 numToKeep: '{build-num-to-keep}'
641 artifactDaysToKeep: '{build-artifact-days-to-keep}'
642 artifactNumToKeep: '{build-artifact-num-to-keep}'
650 refspec: 'refs/heads/{branch}'
651 - autorelease-release-tag:
652 release-tag: 'validate'
653 - autorelease-release-branch:
654 release-branch: '{branch}'
657 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
658 description: "Autorelease clone URL"
663 credentials-id: '{ssh-credentials}'
673 - autorelease-build-timeout
674 - ssh-agent-credentials:
676 - '{ssh-credentials}'
682 server-name: 'OpenDaylight'
684 - patchset-created-event:
685 exclude-drafts: 'true'
686 exclude-trivial-rebase: 'false'
687 exclude-no-code-change: 'true'
688 - draft-published-event
689 - comment-added-contains-event:
690 comment-contains-value: 'recheck'
691 - comment-added-contains-event:
692 comment-contains-value: 'reverify'
693 - comment-added-contains-event:
694 comment-contains-value: 'revalidate'
696 - project-compare-type: 'ANT'
697 project-pattern: 'ovsdb'
699 - branch-compare-type: 'ANT'
700 branch-pattern: '**/{branch}'
706 - jacoco-nojava-workaround
707 - autorelease-checkout-gerrit-patch
708 - autorelease-generate-release-patches
710 maven-version: '{mvn33}'
711 pom: validate-pom.xml
712 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'
715 settings: 'autorelease-settings'
717 global-settings: 'odl-global-settings'
718 global-settings-type: cfp
721 maven-name: '{mvn33}'
723 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
724 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
725 settings: 'autorelease-settings'
727 global-settings: 'odl-global-settings'
728 global-settings-type: cfp
729 automatic-archiving: false
730 post-step-run-condition: UNSTABLE
733 - autorelease-sys-stats
736 - email-notification:
737 email-prefix: '[autorelease] [ovsdb]'
739 maven-version: '{mvn33}'