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 - 'coretutorials-verify-{stream}'
10 - 'coretutorials-merge-{stream}'
11 - 'coretutorials-periodic-{stream}'
12 - 'coretutorials-distribution-{stream}'
13 - 'coretutorials-distribution-check-{stream}'
14 - 'coretutorials-integration-{stream}'
15 - 'coretutorials-sonar'
16 - 'coretutorials-clm-{stream}'
17 - 'coretutorials-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
38 branch: 'stable/lithium'
42 disable_autorelease: True
43 disable_distribution_check: True
45 project: 'coretutorials'
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: 'coretutorials-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:
101 name: 'coretutorials'
105 - jacoco-nojava-workaround
106 - provide-maven-settings:
107 global-settings-file: 'odl-global-settings'
108 settings-file: 'coretutorials-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: 'coretutorials-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: '[coretutorials]'
128 maven-version: '{mvn33}'
131 name: 'coretutorials-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:
173 name: 'coretutorials'
177 - jacoco-nojava-workaround
178 - provide-maven-settings:
179 global-settings-file: 'odl-global-settings'
180 settings-file: 'coretutorials-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: 'coretutorials-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: 'coretutorials-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: 'coretutorials-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: '[coretutorials]'
238 deploy-unstable: false
241 maven-version: '{mvn33}'
244 name: 'coretutorials-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: 'coretutorials-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: 'coretutorials-settings'
296 global-settings: 'odl-global-settings'
297 global-settings-type: cfp
303 - email-notification:
304 email-prefix: '[coretutorials]'
307 maven-version: '{mvn33}'
310 name: 'coretutorials-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: 'coretutorials-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: 'coretutorials-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: 'coretutorials-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: 'coretutorials-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: '[coretutorials]'
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: 'coretutorials-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},yangtools-merge-{stream},controller-merge-{stream}'
526 - jacoco-nojava-workaround
527 - provide-maven-settings:
528 global-settings-file: 'odl-global-settings'
529 settings-file: 'coretutorials-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: 'coretutorials-settings'
538 global-settings: 'odl-global-settings'
539 global-settings-type: cfp
545 - email-notification:
546 email-prefix: '[coretutorials] [odlparent] [yangtools] [controller]'
549 maven-version: '{mvn33}'
552 name: 'coretutorials-sonar'
562 artifactDaysToKeep: '1'
563 artifactNumToKeep: '1'
571 credentials-id: '{ssh-credentials}'
576 - opendaylight-infra-wrappers:
577 build-timeout: '{build-timeout}'
581 - gerrit-trigger-patch-sonar:
582 name: 'coretutorials'
585 - jacoco-nojava-workaround
586 - provide-maven-settings:
587 global-settings-file: 'odl-global-settings'
588 settings-file: 'coretutorials-settings'
591 maven-name: '{mvn33}'
593 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
594 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
595 settings: 'coretutorials-settings'
597 global-settings: 'odl-global-settings'
598 global-settings-type: cfp
606 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
607 - email-notification:
608 email-prefix: '[coretutorials]'
611 maven-version: '{mvn33}'
614 name: 'coretutorials-clm-{stream}'
622 daysToKeep: '{build-days-to-keep}'
623 numToKeep: '{build-num-to-keep}'
624 artifactDaysToKeep: '{build-artifact-days-to-keep}'
625 artifactNumToKeep: '{build-artifact-num-to-keep}'
633 credentials-id: '{ssh-credentials}'
638 - opendaylight-infra-wrappers:
639 build-timeout: '{build-timeout}'
645 - provide-maven-settings:
646 global-settings-file: 'odl-global-settings'
647 settings-file: 'coretutorials-settings'
650 maven-name: '{mvn33}'
652 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'
653 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
654 settings: 'coretutorials-settings'
656 global-settings: 'odl-global-settings'
657 global-settings-type: cfp
660 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
662 application-name: coretutorials
665 - email-notification:
666 email-prefix: '[coretutorials]'
668 maven-version: '{mvn33}'
671 name: 'coretutorials-validate-autorelease-{stream}'
672 disabled: '{obj:disable_autorelease}'
680 daysToKeep: '{build-days-to-keep}'
681 numToKeep: '{build-num-to-keep}'
682 artifactDaysToKeep: '{build-artifact-days-to-keep}'
683 artifactNumToKeep: '{build-artifact-num-to-keep}'
691 refspec: 'refs/heads/{branch}'
692 - autorelease-release-tag:
693 release-tag: 'validate'
694 - autorelease-release-branch:
695 release-branch: '{branch}'
698 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
699 description: "Autorelease clone URL"
704 credentials-id: '{ssh-credentials}'
714 - opendaylight-infra-wrappers:
715 build-timeout: '{build-timeout}'
719 server-name: 'OpenDaylight'
721 - patchset-created-event:
722 exclude-drafts: 'true'
723 exclude-trivial-rebase: 'false'
724 exclude-no-code-change: 'true'
725 - draft-published-event
726 - comment-added-contains-event:
727 comment-contains-value: 'recheck'
728 - comment-added-contains-event:
729 comment-contains-value: 'reverify'
730 - comment-added-contains-event:
731 comment-contains-value: 'revalidate'
733 - project-compare-type: 'ANT'
734 project-pattern: 'coretutorials'
736 - branch-compare-type: 'ANT'
737 branch-pattern: '**/{branch}'
743 - jacoco-nojava-workaround
744 - autorelease-checkout-gerrit-patch
745 - autorelease-generate-release-patches
747 maven-version: '{mvn33}'
748 pom: validate-pom.xml
749 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'
752 settings: 'autorelease-settings'
754 global-settings: 'odl-global-settings'
755 global-settings-type: cfp
758 maven-name: '{mvn33}'
760 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
761 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
762 settings: 'autorelease-settings'
764 global-settings: 'odl-global-settings'
765 global-settings-type: cfp
766 automatic-archiving: false
767 post-step-run-condition: UNSTABLE
770 - autorelease-sys-stats
773 - email-notification:
774 email-prefix: '[autorelease] [coretutorials]'
776 maven-version: '{mvn33}'