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 - 'yang-push-verify-{stream}'
10 - 'yang-push-merge-{stream}'
11 - 'yang-push-periodic-{stream}'
12 - 'yang-push-distribution-{stream}'
13 - 'yang-push-distribution-check-{stream}'
14 - 'yang-push-integration-{stream}'
16 - 'yang-push-clm-{stream}'
17 - 'yang-push-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
28 disable_autorelease: False
29 disable_distribution_check: False
31 branch: 'stable/beryllium'
36 disable_autorelease: False
37 disable_distribution_check: False
41 # For the Job templates below replace instances of:
42 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
43 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
44 # MAVEN_GOALS with your maven goals to build
45 # MAVEN_OPTS with your maven options to build
48 name: 'yang-push-verify-{stream}'
50 # Job template for ODL verify jobs
52 # The purpose of this job template is to setup a ODL verify job
55 # stream: release stream (eg. stable-lithium or beryllium)
56 # branch: git branch (eg. stable/lithium or master)
81 refspec: 'refs/heads/{branch}'
85 refspec: '$GERRIT_REFSPEC'
86 choosing-strategy: 'gerrit'
89 - opendaylight-infra-wrappers:
90 build-timeout: '{build-timeout}'
93 - gerrit-trigger-patch-submitted:
98 - jacoco-nojava-workaround
99 - provide-maven-settings:
100 global-settings-file: 'odl-global-settings'
101 settings-file: 'yang-push-settings'
103 maven-version: '{mvn33}'
105 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
107 - '-Xmx1024m -XX:MaxPermSize=256m'
108 settings: 'yang-push-settings'
110 global-settings: 'odl-global-settings'
111 global-settings-type: cfp
115 artifacts: '**/target/surefire-reports/*-output.txt, '
117 - email-notification:
118 email-prefix: '[yang-push]'
121 maven-version: '{mvn33}'
124 name: 'yang-push-merge-{stream}'
126 # Job template for ODL merge jobs
128 # The purpose of this job template is to setup a ODL merge job
129 # and deploy artifacts to Nexus.
131 # Required Variables:
132 # stream: release stream (eg. stable-lithium or beryllium)
133 # branch: git branch (eg. stable/lithium or master)
142 artifactDaysToKeep: '{build-artifact-days-to-keep}'
143 artifactNumToKeep: '{build-artifact-num-to-keep}'
151 refspec: 'refs/heads/{branch}'
154 - gerrit-trigger-scm:
156 choosing-strategy: 'default'
159 - opendaylight-infra-wrappers:
160 build-timeout: '{build-timeout}'
164 - gerrit-trigger-patch-merged:
169 - jacoco-nojava-workaround
170 - provide-maven-settings:
171 global-settings-file: 'odl-global-settings'
172 settings-file: 'yang-push-settings'
175 maven-name: '{mvn33}'
177 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
178 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
179 settings: 'yang-push-settings'
181 global-settings: 'odl-global-settings'
182 global-settings-type: cfp
183 post-step-run-condition: UNSTABLE
187 condition-kind: file-exists
188 condition-filename: deploy-site.xml
189 condition-basedir: workspace
191 # The strategy here is intentional to run Maven site:deploy twice
192 # once using regular pom.xml to produce a staged-site which is
193 # then used by deploy-site.xml to push to Nexus. This is a
194 # workaround to Maven Site's default linking code which creates
195 # incorrect URLs for sites due to auto-detection assuming your
196 # project is configured in a certain way which ODL is not.
199 maven-version: '{mvn33}'
201 goals: 'site:deploy -V -B -Dstream={stream}'
204 settings: 'yang-push-settings'
206 global-settings: 'odl-global-settings'
207 global-settings-type: cfp
209 maven-version: '{mvn33}'
211 goals: 'site:deploy -V -B -Dstream={stream}'
214 settings: 'yang-push-settings'
216 global-settings: 'odl-global-settings'
217 global-settings-type: cfp
224 artifacts: '**/target/surefire-reports/*-output.txt, '
225 - email-notification:
226 email-prefix: '[yang-push]'
230 deploy-unstable: false
233 maven-version: '{mvn33}'
236 name: 'yang-push-periodic-{stream}'
239 # Job template for periodic builders
241 # The purpose of this job template is to setup a periodic
244 # Required Variables:
245 # stream: release stream (eg. stable-lithium or beryllium)
246 # branch: git branch (eg. stable/lithium or master)
255 artifactDaysToKeep: '{build-artifact-days-to-keep}'
256 artifactNumToKeep: '{build-artifact-num-to-keep}'
268 - opendaylight-infra-wrappers:
269 build-timeout: '{build-timeout}'
275 - jacoco-nojava-workaround
276 - provide-maven-settings:
277 global-settings-file: 'odl-global-settings'
278 settings-file: 'yang-push-settings'
281 maven-name: '{mvn33}'
283 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
284 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
285 settings: 'yang-push-settings'
287 global-settings: 'odl-global-settings'
288 global-settings-type: cfp
294 - email-notification:
295 email-prefix: '[yang-push]'
298 maven-version: '{mvn33}'
301 name: 'yang-push-distribution-{stream}'
303 # Required variables:
304 # stream: release stream (eg. stable-lithium or beryllium)
305 # branch: git branch (eg. stable/lithium or master)
312 daysToKeep: '{build-days-to-keep}'
313 numToKeep: '{build-num-to-keep}'
314 artifactDaysToKeep: '{build-artifact-days-to-keep}'
315 artifactNumToKeep: '{build-artifact-num-to-keep}'
319 project: 'integration/distribution'
327 - opendaylight-infra-wrappers:
328 build-timeout: '{build-timeout}'
332 jobs: '{project}-merge-{stream}'
336 - provide-maven-settings:
337 global-settings-file: 'odl-global-settings'
338 settings-file: 'yang-push-settings'
341 maven-name: '{mvn33}'
343 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
344 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
345 settings: 'integration-distribution-settings'
347 global-settings: 'odl-global-settings'
348 global-settings-type: cfp
351 - email-notification:
352 email-prefix: '[{project}]'
356 deploy-unstable: false
358 maven-version: '{mvn33}'
360 # Template: integration-patch-distribution-{stream}
361 # Goal: Build a patch and make sure the distribution can deploy with this change
362 # Operation: This job template builds a patch, creates a distribution containing
363 # the patch, and triggers the distribution deploy test
366 name: 'yang-push-distribution-check-{stream}'
367 disabled: '{obj:disable_distribution_check}'
375 daysToKeep: '{build-days-to-keep}'
376 numToKeep: '{build-num-to-keep}'
377 artifactDaysToKeep: '{build-artifact-days-to-keep}'
378 artifactNumToKeep: '{build-artifact-num-to-keep}'
384 refspec: 'refs/heads/{branch}'
387 - integration-distribution-git-url
390 - integration-gerrit-scm:
391 basedir: '$GERRIT_PROJECT'
392 refspec: '$GERRIT_REFSPEC'
394 - integration-distribution-scm:
398 - opendaylight-infra-wrappers:
399 build-timeout: '{build-timeout}'
403 server-name: 'OpenDaylight'
405 - patchset-created-event:
406 exclude-drafts: 'true'
407 exclude-trivial-rebase: 'false'
408 exclude-no-code-change: 'true'
409 - draft-published-event
410 - comment-added-contains-event:
411 comment-contains-value: 'test-distribution'
412 - comment-added-contains-event:
413 comment-contains-value: 'reverify'
414 - comment-added-contains-event:
415 comment-contains-value: 'recheck'
417 - project-compare-type: 'ANT'
418 project-pattern: '{name}'
420 - branch-compare-type: 'ANT'
421 branch-pattern: '**/{branch}'
430 maven-version: '{mvn33}'
431 pom: '$GERRIT_PROJECT/pom.xml'
432 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}'
434 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
435 settings: 'yang-push-settings'
437 global-settings: 'odl-global-settings'
438 global-settings-type: cfp
441 maven-name: '{mvn33}'
442 root-pom: 'distribution/pom.xml'
443 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
444 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
445 settings: 'yang-push-settings'
447 global-settings: 'odl-global-settings'
448 global-settings-type: cfp
449 ignore-upstream-changes: true
450 post-step-run-condition: 'SUCCESS'
453 - integration-distribution-check
456 - email-notification:
457 email-prefix: '[yang-push]'
462 mkdir -p $WORKSPACE/archives
463 cp karaf*.log $WORKSPACE/archives
464 script-only-if-succeeded: False
465 script-only-if-failed: False
466 mark-unstable-if-failed: True
468 maven-version: '{mvn33}'
471 name: 'yang-push-integration-{stream}'
474 # Job template for ODL integration verify jobs
476 # This is similar to a normal verify job, but it runs
477 # when a project that's a dependency of your project
478 # is successfully built.
480 # Required Variables:
481 # stream: release stream (eg. stable-lithium or beryllium)
482 # branch: git branch (eg. stable/lithium or master)
489 daysToKeep: '{build-days-to-keep}'
490 numToKeep: '{build-num-to-keep}'
491 artifactDaysToKeep: '{build-artifact-days-to-keep}'
492 artifactNumToKeep: '{build-artifact-num-to-keep}'
504 - opendaylight-infra-wrappers:
505 build-timeout: '{build-timeout}'
509 jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}'
513 - jacoco-nojava-workaround
514 - provide-maven-settings:
515 global-settings-file: 'odl-global-settings'
516 settings-file: 'yang-push-settings'
519 maven-name: '{mvn33}'
521 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
522 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
523 settings: 'yang-push-settings'
525 global-settings: 'odl-global-settings'
526 global-settings-type: cfp
532 - email-notification:
533 email-prefix: '[yang-push] [controller] [yangtools] [odlparent]'
536 maven-version: '{mvn33}'
539 name: 'yang-push-sonar'
549 artifactDaysToKeep: '1'
550 artifactNumToKeep: '1'
562 - opendaylight-infra-wrappers:
563 build-timeout: '{build-timeout}'
567 - gerrit-trigger-patch-sonar:
571 - jacoco-nojava-workaround
572 - provide-maven-settings:
573 global-settings-file: 'odl-global-settings'
574 settings-file: 'yang-push-settings'
577 maven-name: '{mvn33}'
579 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
580 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
581 settings: 'yang-push-settings'
583 global-settings: 'odl-global-settings'
584 global-settings-type: cfp
592 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
593 - email-notification:
594 email-prefix: '[yang-push]'
597 maven-version: '{mvn33}'
600 name: 'yang-push-clm-{stream}'
608 daysToKeep: '{build-days-to-keep}'
609 numToKeep: '{build-num-to-keep}'
610 artifactDaysToKeep: '{build-artifact-days-to-keep}'
611 artifactNumToKeep: '{build-artifact-num-to-keep}'
623 - opendaylight-infra-wrappers:
624 build-timeout: '{build-timeout}'
630 - provide-maven-settings:
631 global-settings-file: 'odl-global-settings'
632 settings-file: 'yang-push-settings'
635 maven-name: '{mvn33}'
637 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'
638 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
639 settings: 'yang-push-settings'
641 global-settings: 'odl-global-settings'
642 global-settings-type: cfp
645 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
647 application-name: yang-push
650 - email-notification:
651 email-prefix: '[yang-push]'
653 maven-version: '{mvn33}'
656 name: 'yang-push-validate-autorelease-{stream}'
657 disabled: '{obj:disable_autorelease}'
665 daysToKeep: '{build-days-to-keep}'
666 numToKeep: '{build-num-to-keep}'
667 artifactDaysToKeep: '{build-artifact-days-to-keep}'
668 artifactNumToKeep: '{build-artifact-num-to-keep}'
676 refspec: 'refs/heads/{branch}'
677 - autorelease-release-tag:
678 release-tag: 'validate'
679 - autorelease-release-branch:
680 release-branch: '{branch}'
683 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
684 description: "Autorelease clone URL"
689 credentials-id: 'opendaylight-jenkins-ssh'
699 - opendaylight-infra-wrappers:
700 build-timeout: '{build-timeout}'
704 server-name: 'OpenDaylight'
706 - patchset-created-event:
707 exclude-drafts: 'true'
708 exclude-trivial-rebase: 'false'
709 exclude-no-code-change: 'true'
710 - draft-published-event
711 - comment-added-contains-event:
712 comment-contains-value: 'recheck'
713 - comment-added-contains-event:
714 comment-contains-value: 'reverify'
715 - comment-added-contains-event:
716 comment-contains-value: 'revalidate'
718 - project-compare-type: 'ANT'
719 project-pattern: 'yang-push'
721 - branch-compare-type: 'ANT'
722 branch-pattern: '**/{branch}'
728 - jacoco-nojava-workaround
729 - autorelease-checkout-gerrit-patch
730 - autorelease-generate-release-patches
732 maven-version: '{mvn33}'
733 pom: validate-pom.xml
734 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'
737 settings: 'autorelease-settings'
739 global-settings: 'odl-global-settings'
740 global-settings-type: cfp
743 maven-name: '{mvn33}'
745 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
746 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
747 settings: 'autorelease-settings'
749 global-settings: 'odl-global-settings'
750 global-settings-type: cfp
751 automatic-archiving: false
752 post-step-run-condition: UNSTABLE
755 - autorelease-sys-stats
758 - email-notification:
759 email-prefix: '[autorelease] [yang-push]'
761 maven-version: '{mvn33}'