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'
96 - opendaylight-infra-wrappers:
97 build-timeout: '{build-timeout}'
100 - gerrit-trigger-patch-submitted:
105 - jacoco-nojava-workaround
106 - provide-maven-settings:
107 global-settings-file: 'odl-global-settings'
108 settings-file: 'ovsdb-settings'
110 maven-version: '{mvn33}'
112 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
114 - '-Xmx1024m -XX:MaxPermSize=256m'
115 settings: 'ovsdb-settings'
117 global-settings: 'odl-global-settings'
118 global-settings-type: cfp
122 artifacts: '**/target/surefire-reports/*-output.txt, '
124 - email-notification:
125 email-prefix: '[ovsdb]'
128 maven-version: '{mvn33}'
131 name: 'ovsdb-merge-{stream}'
133 # Job template for ODL merge jobs
135 # The purpose of this job template is to setup a ODL merge job
136 # and deploy artifacts to Nexus.
138 # Required Variables:
139 # stream: release stream (eg. stable-lithium or beryllium)
140 # branch: git branch (eg. stable/lithium or master)
149 artifactDaysToKeep: '{build-artifact-days-to-keep}'
150 artifactNumToKeep: '{build-artifact-num-to-keep}'
158 refspec: 'refs/heads/{branch}'
161 - gerrit-trigger-scm:
162 credentials-id: '{ssh-credentials}'
164 choosing-strategy: 'default'
167 - opendaylight-infra-wrappers:
168 build-timeout: '{build-timeout}'
172 - gerrit-trigger-patch-merged:
177 - jacoco-nojava-workaround
178 - provide-maven-settings:
179 global-settings-file: 'odl-global-settings'
180 settings-file: 'ovsdb-settings'
183 maven-name: '{mvn33}'
185 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
186 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
187 settings: 'ovsdb-settings'
189 global-settings: 'odl-global-settings'
190 global-settings-type: cfp
191 post-step-run-condition: UNSTABLE
195 condition-kind: file-exists
196 condition-filename: deploy-site.xml
197 condition-basedir: workspace
199 # The strategy here is intentional to run Maven site:deploy twice
200 # once using regular pom.xml to produce a staged-site which is
201 # then used by deploy-site.xml to push to Nexus. This is a
202 # workaround to Maven Site's default linking code which creates
203 # incorrect URLs for sites due to auto-detection assuming your
204 # project is configured in a certain way which ODL is not.
207 maven-version: '{mvn33}'
209 goals: 'site:deploy -V -B -Dstream={stream}'
212 settings: 'ovsdb-settings'
214 global-settings: 'odl-global-settings'
215 global-settings-type: cfp
217 maven-version: '{mvn33}'
219 goals: 'site:deploy -V -B -Dstream={stream}'
222 settings: 'ovsdb-settings'
224 global-settings: 'odl-global-settings'
225 global-settings-type: cfp
232 artifacts: '**/target/surefire-reports/*-output.txt, '
233 - email-notification:
234 email-prefix: '[ovsdb]'
238 deploy-unstable: false
241 maven-version: '{mvn33}'
244 name: 'ovsdb-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}'
277 - opendaylight-infra-wrappers:
278 build-timeout: '{build-timeout}'
284 - jacoco-nojava-workaround
285 - provide-maven-settings:
286 global-settings-file: 'odl-global-settings'
287 settings-file: 'ovsdb-settings'
290 maven-name: '{mvn33}'
292 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
293 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
294 settings: 'ovsdb-settings'
296 global-settings: 'odl-global-settings'
297 global-settings-type: cfp
303 - email-notification:
304 email-prefix: '[ovsdb]'
307 maven-version: '{mvn33}'
310 name: 'ovsdb-distribution-{stream}'
312 # Required variables:
313 # stream: release stream (eg. stable-lithium or beryllium)
314 # branch: git branch (eg. stable/lithium or master)
321 daysToKeep: '{build-days-to-keep}'
322 numToKeep: '{build-num-to-keep}'
323 artifactDaysToKeep: '{build-artifact-days-to-keep}'
324 artifactNumToKeep: '{build-artifact-num-to-keep}'
328 project: 'integration/distribution'
332 credentials-id: '{ssh-credentials}'
337 - opendaylight-infra-wrappers:
338 build-timeout: '{build-timeout}'
342 jobs: '{project}-merge-{stream}'
346 - provide-maven-settings:
347 global-settings-file: 'odl-global-settings'
348 settings-file: 'ovsdb-settings'
351 maven-name: '{mvn33}'
353 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
354 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
355 settings: 'integration-distribution-settings'
357 global-settings: 'odl-global-settings'
358 global-settings-type: cfp
361 - email-notification:
362 email-prefix: '[{project}]'
366 deploy-unstable: false
368 maven-version: '{mvn33}'
370 # Template: integration-patch-distribution-{stream}
371 # Goal: Build a patch and make sure the distribution can deploy with this change
372 # Operation: This job template builds a patch, creates a distribution containing
373 # the patch, and triggers the distribution deploy test
376 name: 'ovsdb-distribution-check-{stream}'
377 disabled: '{obj:disable_distribution_check}'
385 daysToKeep: '{build-days-to-keep}'
386 numToKeep: '{build-num-to-keep}'
387 artifactDaysToKeep: '{build-artifact-days-to-keep}'
388 artifactNumToKeep: '{build-artifact-num-to-keep}'
394 refspec: 'refs/heads/{branch}'
397 - integration-distribution-git-url
400 - integration-gerrit-scm:
401 credentials-id: '{ssh-credentials}'
402 basedir: '$GERRIT_PROJECT'
403 refspec: '$GERRIT_REFSPEC'
405 - integration-distribution-scm:
406 credentials-id: '{ssh-credentials}'
410 - opendaylight-infra-wrappers:
411 build-timeout: '{build-timeout}'
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'
424 - comment-added-contains-event:
425 comment-contains-value: 'reverify'
426 - comment-added-contains-event:
427 comment-contains-value: 'recheck'
429 - project-compare-type: 'ANT'
430 project-pattern: '{name}'
432 - branch-compare-type: 'ANT'
433 branch-pattern: '**/{branch}'
442 maven-version: '{mvn33}'
443 pom: '$GERRIT_PROJECT/pom.xml'
444 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}'
446 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
447 settings: 'ovsdb-settings'
449 global-settings: 'odl-global-settings'
450 global-settings-type: cfp
453 maven-name: '{mvn33}'
454 root-pom: 'distribution/pom.xml'
455 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
456 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
457 settings: 'ovsdb-settings'
459 global-settings: 'odl-global-settings'
460 global-settings-type: cfp
461 ignore-upstream-changes: true
462 post-step-run-condition: 'SUCCESS'
465 - integration-distribution-check
468 - email-notification:
469 email-prefix: '[ovsdb]'
474 mkdir -p $WORKSPACE/archives
475 cp karaf*.log $WORKSPACE/archives
476 script-only-if-succeeded: False
477 script-only-if-failed: False
478 mark-unstable-if-failed: True
480 maven-version: '{mvn33}'
483 name: 'ovsdb-integration-{stream}'
486 # Job template for ODL integration verify jobs
488 # This is similar to a normal verify job, but it runs
489 # when a project that's a dependency of your project
490 # is successfully built.
492 # Required Variables:
493 # stream: release stream (eg. stable-lithium or beryllium)
494 # branch: git branch (eg. stable/lithium or master)
501 daysToKeep: '{build-days-to-keep}'
502 numToKeep: '{build-num-to-keep}'
503 artifactDaysToKeep: '{build-artifact-days-to-keep}'
504 artifactNumToKeep: '{build-artifact-num-to-keep}'
512 credentials-id: '{ssh-credentials}'
517 - opendaylight-infra-wrappers:
518 build-timeout: '{build-timeout}'
522 jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}'
526 - jacoco-nojava-workaround
527 - provide-maven-settings:
528 global-settings-file: 'odl-global-settings'
529 settings-file: 'ovsdb-settings'
532 maven-name: '{mvn33}'
534 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
535 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
536 settings: 'ovsdb-settings'
538 global-settings: 'odl-global-settings'
539 global-settings-type: cfp
545 - email-notification:
546 email-prefix: '[ovsdb] [odlparent] [controller] [yangtools]'
549 maven-version: '{mvn33}'
552 name: 'ovsdb-clm-{stream}'
560 daysToKeep: '{build-days-to-keep}'
561 numToKeep: '{build-num-to-keep}'
562 artifactDaysToKeep: '{build-artifact-days-to-keep}'
563 artifactNumToKeep: '{build-artifact-num-to-keep}'
571 credentials-id: '{ssh-credentials}'
576 - opendaylight-infra-wrappers:
577 build-timeout: '{build-timeout}'
583 - provide-maven-settings:
584 global-settings-file: 'odl-global-settings'
585 settings-file: 'ovsdb-settings'
588 maven-name: '{mvn33}'
590 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'
591 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
592 settings: 'ovsdb-settings'
594 global-settings: 'odl-global-settings'
595 global-settings-type: cfp
598 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
600 application-name: ovsdb
603 - email-notification:
604 email-prefix: '[ovsdb]'
606 maven-version: '{mvn33}'
609 name: 'ovsdb-validate-autorelease-{stream}'
610 disabled: '{obj:disable_autorelease}'
618 daysToKeep: '{build-days-to-keep}'
619 numToKeep: '{build-num-to-keep}'
620 artifactDaysToKeep: '{build-artifact-days-to-keep}'
621 artifactNumToKeep: '{build-artifact-num-to-keep}'
629 refspec: 'refs/heads/{branch}'
630 - autorelease-release-tag:
631 release-tag: 'validate'
632 - autorelease-release-branch:
633 release-branch: '{branch}'
636 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
637 description: "Autorelease clone URL"
642 credentials-id: '{ssh-credentials}'
652 - opendaylight-infra-wrappers:
653 build-timeout: '{build-timeout}'
657 server-name: 'OpenDaylight'
659 - patchset-created-event:
660 exclude-drafts: 'true'
661 exclude-trivial-rebase: 'false'
662 exclude-no-code-change: 'true'
663 - draft-published-event
664 - comment-added-contains-event:
665 comment-contains-value: 'recheck'
666 - comment-added-contains-event:
667 comment-contains-value: 'reverify'
668 - comment-added-contains-event:
669 comment-contains-value: 'revalidate'
671 - project-compare-type: 'ANT'
672 project-pattern: 'ovsdb'
674 - branch-compare-type: 'ANT'
675 branch-pattern: '**/{branch}'
681 - jacoco-nojava-workaround
682 - autorelease-checkout-gerrit-patch
683 - autorelease-generate-release-patches
685 maven-version: '{mvn33}'
686 pom: validate-pom.xml
687 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'
690 settings: 'autorelease-settings'
692 global-settings: 'odl-global-settings'
693 global-settings-type: cfp
696 maven-name: '{mvn33}'
698 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
699 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
700 settings: 'autorelease-settings'
702 global-settings: 'odl-global-settings'
703 global-settings-type: cfp
704 automatic-archiving: false
705 post-step-run-condition: UNSTABLE
708 - autorelease-sys-stats
711 - email-notification:
712 email-prefix: '[autorelease] [ovsdb]'
714 maven-version: '{mvn33}'