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)
79 daysToKeep: '{build-days-to-keep}'
80 numToKeep: '{build-num-to-keep}'
81 artifactDaysToKeep: '{build-artifact-days-to-keep}'
82 artifactNumToKeep: '{build-artifact-num-to-keep}'
90 refspec: 'refs/heads/{branch}'
94 credentials-id: '{ssh-credentials}'
95 refspec: '$GERRIT_REFSPEC'
96 choosing-strategy: 'gerrit'
100 - ssh-agent-credentials:
102 - '{ssh-credentials}'
105 - gerrit-trigger-patch-submitted:
110 - jacoco-nojava-workaround
111 - provide-maven-settings:
112 global-settings-file: 'odl-global-settings'
113 settings-file: 'ovsdb-settings'
115 maven-version: '{mvn33}'
117 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
119 - '-Xmx1024m -XX:MaxPermSize=256m'
120 settings: 'ovsdb-settings'
122 global-settings: 'odl-global-settings'
123 global-settings-type: cfp
127 artifacts: '**/target/surefire-reports/*-output.txt, '
129 - email-notification:
130 email-prefix: '[ovsdb]'
133 maven-version: '{mvn33}'
136 name: 'ovsdb-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}'
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 - jacoco-nojava-workaround
185 - provide-maven-settings:
186 global-settings-file: 'odl-global-settings'
187 settings-file: 'ovsdb-settings'
190 maven-name: '{mvn33}'
192 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
193 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
194 settings: 'ovsdb-settings'
196 global-settings: 'odl-global-settings'
197 global-settings-type: cfp
198 post-step-run-condition: UNSTABLE
202 condition-kind: file-exists
203 condition-filename: deploy-site.xml
204 condition-basedir: workspace
206 # The strategy here is intentional to run Maven site:deploy twice
207 # once using regular pom.xml to produce a staged-site which is
208 # then used by deploy-site.xml to push to Nexus. This is a
209 # workaround to Maven Site's default linking code which creates
210 # incorrect URLs for sites due to auto-detection assuming your
211 # project is configured in a certain way which ODL is not.
214 maven-version: '{mvn33}'
216 goals: 'site:deploy -V -B -Dstream={stream}'
219 settings: 'ovsdb-settings'
221 global-settings: 'odl-global-settings'
222 global-settings-type: cfp
224 maven-version: '{mvn33}'
226 goals: 'site:deploy -V -B -Dstream={stream}'
229 settings: 'ovsdb-settings'
231 global-settings: 'odl-global-settings'
232 global-settings-type: cfp
239 artifacts: '**/target/surefire-reports/*-output.txt, '
240 - email-notification:
241 email-prefix: '[ovsdb]'
245 deploy-unstable: false
248 maven-version: '{mvn33}'
251 name: 'ovsdb-periodic-{stream}'
254 # Job template for periodic builders
256 # The purpose of this job template is to setup a periodic
259 # Required Variables:
260 # stream: release stream (eg. stable-lithium or beryllium)
261 # branch: git branch (eg. stable/lithium or master)
270 artifactDaysToKeep: '{build-artifact-days-to-keep}'
271 artifactNumToKeep: '{build-artifact-num-to-keep}'
279 credentials-id: '{ssh-credentials}'
285 - ssh-agent-credentials:
287 - '{ssh-credentials}'
293 - jacoco-nojava-workaround
294 - provide-maven-settings:
295 global-settings-file: 'odl-global-settings'
296 settings-file: 'ovsdb-settings'
299 maven-name: '{mvn33}'
301 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
302 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
303 settings: 'ovsdb-settings'
305 global-settings: 'odl-global-settings'
306 global-settings-type: cfp
312 - email-notification:
313 email-prefix: '[ovsdb]'
316 maven-version: '{mvn33}'
319 name: 'ovsdb-distribution-{stream}'
321 # Required variables:
322 # stream: release stream (eg. stable-lithium or beryllium)
323 # branch: git branch (eg. stable/lithium or master)
330 daysToKeep: '{build-days-to-keep}'
331 numToKeep: '{build-num-to-keep}'
332 artifactDaysToKeep: '{build-artifact-days-to-keep}'
333 artifactNumToKeep: '{build-artifact-num-to-keep}'
337 project: 'integration/distribution'
341 credentials-id: '{ssh-credentials}'
347 - ssh-agent-credentials:
349 - '{ssh-credentials}'
353 jobs: '{project}-merge-{stream}'
357 - provide-maven-settings:
358 global-settings-file: 'odl-global-settings'
359 settings-file: 'ovsdb-settings'
362 maven-name: '{mvn33}'
364 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
365 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
366 settings: 'integration-distribution-settings'
368 global-settings: 'odl-global-settings'
369 global-settings-type: cfp
372 - email-notification:
373 email-prefix: '[{project}]'
377 deploy-unstable: false
379 maven-version: '{mvn33}'
381 # Template: integration-patch-distribution-{stream}
382 # Goal: Build a patch and make sure the distribution can deploy with this change
383 # Operation: This job template builds a patch, creates a distribution containing
384 # the patch, and triggers the distribution deploy test
387 name: 'ovsdb-distribution-check-{stream}'
388 disabled: '{obj:disable_distribution_check}'
396 daysToKeep: '{build-days-to-keep}'
397 numToKeep: '{build-num-to-keep}'
398 artifactDaysToKeep: '{build-artifact-days-to-keep}'
399 artifactNumToKeep: '{build-artifact-num-to-keep}'
405 refspec: 'refs/heads/{branch}'
408 - integration-distribution-git-url
411 - integration-gerrit-scm:
412 credentials-id: '{ssh-credentials}'
413 basedir: '$GERRIT_PROJECT'
414 refspec: '$GERRIT_REFSPEC'
416 - integration-distribution-scm:
417 credentials-id: '{ssh-credentials}'
422 - ssh-agent-credentials:
424 - '{ssh-credentials}'
428 server-name: 'OpenDaylight'
430 - patchset-created-event:
431 exclude-drafts: 'true'
432 exclude-trivial-rebase: 'false'
433 exclude-no-code-change: 'true'
434 - draft-published-event
435 - comment-added-contains-event:
436 comment-contains-value: 'test-distribution'
437 - comment-added-contains-event:
438 comment-contains-value: 'reverify'
439 - comment-added-contains-event:
440 comment-contains-value: 'recheck'
442 - project-compare-type: 'ANT'
443 project-pattern: '{name}'
445 - branch-compare-type: 'ANT'
446 branch-pattern: '**/{branch}'
455 maven-version: '{mvn33}'
456 pom: '$GERRIT_PROJECT/pom.xml'
457 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}'
459 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
460 settings: 'ovsdb-settings'
462 global-settings: 'odl-global-settings'
463 global-settings-type: cfp
466 maven-name: '{mvn33}'
467 root-pom: 'distribution/pom.xml'
468 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
469 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
470 settings: 'ovsdb-settings'
472 global-settings: 'odl-global-settings'
473 global-settings-type: cfp
474 ignore-upstream-changes: true
475 post-step-run-condition: 'SUCCESS'
478 - integration-distribution-check
482 artifacts: 'karaf.log'
484 artifacts: 'karaf_console.log'
485 - email-notification:
486 email-prefix: '[ovsdb]'
488 maven-version: '{mvn33}'
491 name: 'ovsdb-integration-{stream}'
494 # Job template for ODL integration verify jobs
496 # This is similar to a normal verify job, but it runs
497 # when a project that's a dependency of your project
498 # is successfully built.
500 # Required Variables:
501 # stream: release stream (eg. stable-lithium or beryllium)
502 # branch: git branch (eg. stable/lithium or master)
509 daysToKeep: '{build-days-to-keep}'
510 numToKeep: '{build-num-to-keep}'
511 artifactDaysToKeep: '{build-artifact-days-to-keep}'
512 artifactNumToKeep: '{build-artifact-num-to-keep}'
520 credentials-id: '{ssh-credentials}'
526 - ssh-agent-credentials:
528 - '{ssh-credentials}'
532 jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}'
536 - jacoco-nojava-workaround
537 - provide-maven-settings:
538 global-settings-file: 'odl-global-settings'
539 settings-file: 'ovsdb-settings'
542 maven-name: '{mvn33}'
544 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
545 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
546 settings: 'ovsdb-settings'
548 global-settings: 'odl-global-settings'
549 global-settings-type: cfp
555 - email-notification:
556 email-prefix: '[ovsdb] [odlparent] [controller] [yangtools]'
559 maven-version: '{mvn33}'
562 name: 'ovsdb-clm-{stream}'
570 daysToKeep: '{build-days-to-keep}'
571 numToKeep: '{build-num-to-keep}'
572 artifactDaysToKeep: '{build-artifact-days-to-keep}'
573 artifactNumToKeep: '{build-artifact-num-to-keep}'
581 credentials-id: '{ssh-credentials}'
587 - ssh-agent-credentials:
589 - '{ssh-credentials}'
595 - provide-maven-settings:
596 global-settings-file: 'odl-global-settings'
597 settings-file: 'ovsdb-settings'
600 maven-name: '{mvn33}'
602 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'
603 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
604 settings: 'ovsdb-settings'
606 global-settings: 'odl-global-settings'
607 global-settings-type: cfp
610 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
612 application-name: ovsdb
615 - email-notification:
616 email-prefix: '[ovsdb]'
618 maven-version: '{mvn33}'
621 name: 'ovsdb-validate-autorelease-{stream}'
622 disabled: '{obj:disable_autorelease}'
630 daysToKeep: '{build-days-to-keep}'
631 numToKeep: '{build-num-to-keep}'
632 artifactDaysToKeep: '{build-artifact-days-to-keep}'
633 artifactNumToKeep: '{build-artifact-num-to-keep}'
641 refspec: 'refs/heads/{branch}'
642 - autorelease-release-tag:
643 release-tag: 'validate'
644 - autorelease-release-branch:
645 release-branch: '{branch}'
648 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
649 description: "Autorelease clone URL"
654 credentials-id: '{ssh-credentials}'
664 - autorelease-build-timeout
665 - ssh-agent-credentials:
667 - '{ssh-credentials}'
671 server-name: 'OpenDaylight'
673 - patchset-created-event:
674 exclude-drafts: 'true'
675 exclude-trivial-rebase: 'false'
676 exclude-no-code-change: 'true'
677 - draft-published-event
678 - comment-added-contains-event:
679 comment-contains-value: 'recheck'
680 - comment-added-contains-event:
681 comment-contains-value: 'reverify'
682 - comment-added-contains-event:
683 comment-contains-value: 'revalidate'
685 - project-compare-type: 'ANT'
686 project-pattern: 'ovsdb'
688 - branch-compare-type: 'ANT'
689 branch-pattern: '**/{branch}'
695 - jacoco-nojava-workaround
696 - autorelease-checkout-gerrit-patch
697 - autorelease-generate-release-patches
699 maven-version: '{mvn33}'
700 pom: validate-pom.xml
701 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'
704 settings: 'autorelease-settings'
706 global-settings: 'odl-global-settings'
707 global-settings-type: cfp
710 maven-name: '{mvn33}'
712 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
713 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
714 settings: 'autorelease-settings'
716 global-settings: 'odl-global-settings'
717 global-settings-type: cfp
718 automatic-archiving: false
719 post-step-run-condition: UNSTABLE
722 - autorelease-sys-stats
725 - email-notification:
726 email-prefix: '[autorelease] [ovsdb]'
728 maven-version: '{mvn33}'