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)
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:
106 name: 'coretutorials'
110 - wipe-org-opendaylight-repo
111 - jacoco-nojava-workaround
112 - provide-maven-settings:
113 global-settings-file: 'odl-global-settings'
114 settings-file: 'coretutorials-settings'
116 maven-version: '{mvn33}'
118 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
120 - '-Xmx1024m -XX:MaxPermSize=256m'
121 settings: 'coretutorials-settings'
123 global-settings: 'odl-global-settings'
124 global-settings-type: cfp
128 artifacts: '**/target/surefire-reports/*-output.txt, '
130 - email-notification:
131 email-prefix: '[coretutorials]'
134 maven-version: '{mvn33}'
137 name: 'coretutorials-merge-{stream}'
139 # Job template for ODL merge jobs
141 # The purpose of this job template is to setup a ODL merge job
142 # and deploy artifacts to Nexus.
144 # Required Variables:
145 # stream: release stream (eg. stable-lithium or beryllium)
146 # branch: git branch (eg. stable/lithium or master)
155 artifactDaysToKeep: '{build-artifact-days-to-keep}'
156 artifactNumToKeep: '{build-artifact-num-to-keep}'
164 refspec: 'refs/heads/{branch}'
167 - gerrit-trigger-scm:
168 credentials-id: '{ssh-credentials}'
170 choosing-strategy: 'default'
174 - ssh-agent-credentials:
176 - '{ssh-credentials}'
180 - gerrit-trigger-patch-merged:
181 name: 'coretutorials'
185 - wipe-org-opendaylight-repo
186 - jacoco-nojava-workaround
187 - provide-maven-settings:
188 global-settings-file: 'odl-global-settings'
189 settings-file: 'coretutorials-settings'
192 maven-name: '{mvn33}'
194 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
195 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
196 settings: 'coretutorials-settings'
198 global-settings: 'odl-global-settings'
199 global-settings-type: cfp
200 post-step-run-condition: UNSTABLE
204 condition-kind: file-exists
205 condition-filename: deploy-site.xml
206 condition-basedir: workspace
208 # The strategy here is intentional to run Maven site:deploy twice
209 # once using regular pom.xml to produce a staged-site which is
210 # then used by deploy-site.xml to push to Nexus. This is a
211 # workaround to Maven Site's default linking code which creates
212 # incorrect URLs for sites due to auto-detection assuming your
213 # project is configured in a certain way which ODL is not.
216 maven-version: '{mvn33}'
218 goals: 'site:deploy -V -B -Dstream={stream}'
221 settings: 'coretutorials-settings'
223 global-settings: 'odl-global-settings'
224 global-settings-type: cfp
226 maven-version: '{mvn33}'
228 goals: 'site:deploy -V -B -Dstream={stream}'
231 settings: 'coretutorials-settings'
233 global-settings: 'odl-global-settings'
234 global-settings-type: cfp
241 artifacts: '**/target/surefire-reports/*-output.txt, '
242 - email-notification:
243 email-prefix: '[coretutorials]'
247 deploy-unstable: false
250 maven-version: '{mvn33}'
253 name: 'coretutorials-periodic-{stream}'
256 # Job template for periodic builders
258 # The purpose of this job template is to setup a periodic
261 # Required Variables:
262 # stream: release stream (eg. stable-lithium or beryllium)
263 # branch: git branch (eg. stable/lithium or master)
272 artifactDaysToKeep: '{build-artifact-days-to-keep}'
273 artifactNumToKeep: '{build-artifact-num-to-keep}'
281 credentials-id: '{ssh-credentials}'
287 - ssh-agent-credentials:
289 - '{ssh-credentials}'
295 - wipe-org-opendaylight-repo
296 - jacoco-nojava-workaround
297 - provide-maven-settings:
298 global-settings-file: 'odl-global-settings'
299 settings-file: 'coretutorials-settings'
302 maven-name: '{mvn33}'
304 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
305 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
306 settings: 'coretutorials-settings'
308 global-settings: 'odl-global-settings'
309 global-settings-type: cfp
315 - email-notification:
316 email-prefix: '[coretutorials]'
319 maven-version: '{mvn33}'
322 name: 'coretutorials-distribution-{stream}'
324 # Required variables:
325 # stream: release stream (eg. stable-lithium or beryllium)
326 # branch: git branch (eg. stable/lithium or master)
333 daysToKeep: '{build-days-to-keep}'
334 numToKeep: '{build-num-to-keep}'
335 artifactDaysToKeep: '{build-artifact-days-to-keep}'
336 artifactNumToKeep: '{build-artifact-num-to-keep}'
340 project: 'integration/distribution'
344 credentials-id: '{ssh-credentials}'
350 - ssh-agent-credentials:
352 - '{ssh-credentials}'
356 jobs: '{project}-merge-{stream}'
360 - wipe-org-opendaylight-repo
361 - provide-maven-settings:
362 global-settings-file: 'odl-global-settings'
363 settings-file: 'coretutorials-settings'
366 maven-name: '{mvn33}'
368 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
369 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
370 settings: 'integration-distribution-settings'
372 global-settings: 'odl-global-settings'
373 global-settings-type: cfp
376 - email-notification:
377 email-prefix: '[{project}]'
381 deploy-unstable: false
383 maven-version: '{mvn33}'
385 # Template: integration-patch-distribution-{stream}
386 # Goal: Build a patch and make sure the distribution can deploy with this change
387 # Operation: This job template builds a patch, creates a distribution containing
388 # the patch, and triggers the distribution deploy test
391 name: 'coretutorials-distribution-check-{stream}'
392 disabled: '{obj:disable_distribution_check}'
400 daysToKeep: '{build-days-to-keep}'
401 numToKeep: '{build-num-to-keep}'
402 artifactDaysToKeep: '{build-artifact-days-to-keep}'
403 artifactNumToKeep: '{build-artifact-num-to-keep}'
409 refspec: 'refs/heads/{branch}'
412 - integration-distribution-git-url
415 - integration-gerrit-scm:
416 credentials-id: '{ssh-credentials}'
417 basedir: '$GERRIT_PROJECT'
418 refspec: '$GERRIT_REFSPEC'
420 - integration-distribution-scm:
421 credentials-id: '{ssh-credentials}'
426 - ssh-agent-credentials:
428 - '{ssh-credentials}'
432 server-name: 'OpenDaylight'
434 - patchset-created-event:
435 exclude-drafts: 'true'
436 exclude-trivial-rebase: 'false'
437 exclude-no-code-change: 'true'
438 - draft-published-event
439 - comment-added-contains-event:
440 comment-contains-value: 'test-distribution'
441 - comment-added-contains-event:
442 comment-contains-value: 'reverify'
443 - comment-added-contains-event:
444 comment-contains-value: 'recheck'
446 - project-compare-type: 'ANT'
447 project-pattern: '{name}'
449 - branch-compare-type: 'ANT'
450 branch-pattern: '**/{branch}'
458 - wipe-org-opendaylight-repo
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: 'coretutorials-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: 'coretutorials-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: '[coretutorials]'
493 maven-version: '{mvn33}'
496 name: 'coretutorials-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}'
537 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}'
541 - wipe-org-opendaylight-repo
542 - jacoco-nojava-workaround
543 - provide-maven-settings:
544 global-settings-file: 'odl-global-settings'
545 settings-file: 'coretutorials-settings'
548 maven-name: '{mvn33}'
550 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
551 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
552 settings: 'coretutorials-settings'
554 global-settings: 'odl-global-settings'
555 global-settings-type: cfp
561 - email-notification:
562 email-prefix: '[coretutorials] [odlparent] [yangtools] [controller]'
565 maven-version: '{mvn33}'
568 name: 'coretutorials-sonar'
578 artifactDaysToKeep: '1'
579 artifactNumToKeep: '1'
587 credentials-id: '{ssh-credentials}'
593 - ssh-agent-credentials:
595 - '{ssh-credentials}'
599 - gerrit-trigger-patch-sonar:
600 name: 'coretutorials'
603 - wipe-org-opendaylight-repo
604 - jacoco-nojava-workaround
605 - provide-maven-settings:
606 global-settings-file: 'odl-global-settings'
607 settings-file: 'coretutorials-settings'
610 maven-name: '{mvn33}'
612 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
613 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
614 settings: 'coretutorials-settings'
616 global-settings: 'odl-global-settings'
617 global-settings-type: cfp
625 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
626 - email-notification:
627 email-prefix: '[coretutorials]'
630 maven-version: '{mvn33}'
633 name: 'coretutorials-clm-{stream}'
641 daysToKeep: '{build-days-to-keep}'
642 numToKeep: '{build-num-to-keep}'
643 artifactDaysToKeep: '{build-artifact-days-to-keep}'
644 artifactNumToKeep: '{build-artifact-num-to-keep}'
652 credentials-id: '{ssh-credentials}'
658 - ssh-agent-credentials:
660 - '{ssh-credentials}'
666 - wipe-org-opendaylight-repo
667 - provide-maven-settings:
668 global-settings-file: 'odl-global-settings'
669 settings-file: 'coretutorials-settings'
672 maven-name: '{mvn33}'
674 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'
675 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
676 settings: 'coretutorials-settings'
678 global-settings: 'odl-global-settings'
679 global-settings-type: cfp
682 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
684 application-name: coretutorials
687 - email-notification:
688 email-prefix: '[coretutorials]'
690 maven-version: '{mvn33}'
693 name: 'coretutorials-validate-autorelease-{stream}'
694 disabled: '{obj:disable_autorelease}'
702 daysToKeep: '{build-days-to-keep}'
703 numToKeep: '{build-num-to-keep}'
704 artifactDaysToKeep: '{build-artifact-days-to-keep}'
705 artifactNumToKeep: '{build-artifact-num-to-keep}'
713 refspec: 'refs/heads/{branch}'
714 - autorelease-release-tag:
715 release-tag: 'validate'
716 - autorelease-release-branch:
717 release-branch: '{branch}'
720 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
721 description: "Autorelease clone URL"
726 credentials-id: '{ssh-credentials}'
736 - autorelease-build-timeout
737 - ssh-agent-credentials:
739 - '{ssh-credentials}'
743 server-name: 'OpenDaylight'
745 - patchset-created-event:
746 exclude-drafts: 'true'
747 exclude-trivial-rebase: 'false'
748 exclude-no-code-change: 'true'
749 - draft-published-event
750 - comment-added-contains-event:
751 comment-contains-value: 'recheck'
752 - comment-added-contains-event:
753 comment-contains-value: 'reverify'
754 - comment-added-contains-event:
755 comment-contains-value: 'revalidate'
757 - project-compare-type: 'ANT'
758 project-pattern: 'coretutorials'
760 - branch-compare-type: 'ANT'
761 branch-pattern: '**/{branch}'
767 - wipe-org-opendaylight-repo
768 - jacoco-nojava-workaround
769 - autorelease-checkout-gerrit-patch
770 - autorelease-generate-release-patches
772 maven-version: '{mvn33}'
773 pom: validate-pom.xml
774 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'
777 settings: 'autorelease-settings'
779 global-settings: 'odl-global-settings'
780 global-settings-type: cfp
783 maven-name: '{mvn33}'
785 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
786 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
787 settings: 'autorelease-settings'
789 global-settings: 'odl-global-settings'
790 global-settings-type: cfp
791 automatic-archiving: false
792 post-step-run-condition: UNSTABLE
795 - autorelease-sys-stats
798 - email-notification:
799 email-prefix: '[autorelease] [coretutorials]'
801 maven-version: '{mvn33}'