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]'
135 name: 'coretutorials-merge-{stream}'
137 # Job template for ODL merge jobs
139 # The purpose of this job template is to setup a ODL merge job
140 # and deploy artifacts to Nexus.
142 # Required Variables:
143 # stream: release stream (eg. stable-lithium or beryllium)
144 # branch: git branch (eg. stable/lithium or master)
153 artifactDaysToKeep: '{build-artifact-days-to-keep}'
154 artifactNumToKeep: '{build-artifact-num-to-keep}'
162 refspec: 'refs/heads/{branch}'
165 - gerrit-trigger-scm:
166 credentials-id: '{ssh-credentials}'
168 choosing-strategy: 'default'
172 - ssh-agent-credentials:
174 - '{ssh-credentials}'
178 - gerrit-trigger-patch-merged:
179 name: 'coretutorials'
183 - wipe-org-opendaylight-repo
184 - jacoco-nojava-workaround
185 - provide-maven-settings:
186 global-settings-file: 'odl-global-settings'
187 settings-file: 'coretutorials-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: 'coretutorials-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: 'coretutorials-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: 'coretutorials-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: '[coretutorials]'
245 deploy-unstable: false
249 name: 'coretutorials-periodic-{stream}'
252 # Job template for periodic builders
254 # The purpose of this job template is to setup a periodic
257 # Required Variables:
258 # stream: release stream (eg. stable-lithium or beryllium)
259 # branch: git branch (eg. stable/lithium or master)
268 artifactDaysToKeep: '{build-artifact-days-to-keep}'
269 artifactNumToKeep: '{build-artifact-num-to-keep}'
277 credentials-id: '{ssh-credentials}'
283 - ssh-agent-credentials:
285 - '{ssh-credentials}'
291 - wipe-org-opendaylight-repo
292 - jacoco-nojava-workaround
293 - provide-maven-settings:
294 global-settings-file: 'odl-global-settings'
295 settings-file: 'coretutorials-settings'
298 maven-name: '{mvn33}'
300 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
301 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
302 settings: 'coretutorials-settings'
304 global-settings: 'odl-global-settings'
305 global-settings-type: cfp
311 - email-notification:
312 email-prefix: '[coretutorials]'
316 name: 'coretutorials-distribution-{stream}'
318 # Required variables:
319 # stream: release stream (eg. stable-lithium or beryllium)
320 # branch: git branch (eg. stable/lithium or master)
327 daysToKeep: '{build-days-to-keep}'
328 numToKeep: '{build-num-to-keep}'
329 artifactDaysToKeep: '{build-artifact-days-to-keep}'
330 artifactNumToKeep: '{build-artifact-num-to-keep}'
334 project: 'integration/distribution'
338 credentials-id: '{ssh-credentials}'
344 - ssh-agent-credentials:
346 - '{ssh-credentials}'
350 jobs: '{project}-merge-{stream}'
354 - wipe-org-opendaylight-repo
355 - provide-maven-settings:
356 global-settings-file: 'odl-global-settings'
357 settings-file: 'coretutorials-settings'
360 maven-name: '{mvn33}'
362 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
363 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
364 settings: 'integration-distribution-settings'
366 global-settings: 'odl-global-settings'
367 global-settings-type: cfp
370 - email-notification:
371 email-prefix: '[{project}]'
375 deploy-unstable: false
377 # Template: integration-patch-distribution-{stream}
378 # Goal: Build a patch and make sure the distribution can deploy with this change
379 # Operation: This job template builds a patch, creates a distribution containing
380 # the patch, and triggers the distribution deploy test
383 name: 'coretutorials-distribution-check-{stream}'
384 disabled: '{obj:disable_distribution_check}'
392 daysToKeep: '{build-days-to-keep}'
393 numToKeep: '{build-num-to-keep}'
394 artifactDaysToKeep: '{build-artifact-days-to-keep}'
395 artifactNumToKeep: '{build-artifact-num-to-keep}'
401 refspec: 'refs/heads/{branch}'
404 - integration-distribution-git-url
407 - integration-gerrit-scm:
408 credentials-id: '{ssh-credentials}'
409 basedir: '$GERRIT_PROJECT'
410 refspec: '$GERRIT_REFSPEC'
412 - integration-distribution-scm:
413 credentials-id: '{ssh-credentials}'
418 - ssh-agent-credentials:
420 - '{ssh-credentials}'
424 server-name: 'OpenDaylight'
426 - patchset-created-event:
427 exclude-drafts: 'true'
428 exclude-trivial-rebase: 'false'
429 exclude-no-code-change: 'true'
430 - draft-published-event
431 - comment-added-contains-event:
432 comment-contains-value: 'test-distribution'
433 - comment-added-contains-event:
434 comment-contains-value: 'reverify'
435 - comment-added-contains-event:
436 comment-contains-value: 'recheck'
438 - project-compare-type: 'ANT'
439 project-pattern: '{name}'
441 - branch-compare-type: 'ANT'
442 branch-pattern: '**/{branch}'
450 - wipe-org-opendaylight-repo
452 maven-version: '{mvn33}'
453 pom: '$GERRIT_PROJECT/pom.xml'
454 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}'
456 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
457 settings: 'coretutorials-settings'
459 global-settings: 'odl-global-settings'
460 global-settings-type: cfp
463 maven-name: '{mvn33}'
464 root-pom: 'distribution/pom.xml'
465 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
466 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
467 settings: 'coretutorials-settings'
469 global-settings: 'odl-global-settings'
470 global-settings-type: cfp
471 ignore-upstream-changes: true
472 post-step-run-condition: 'SUCCESS'
475 - integration-distribution-check
479 artifacts: 'karaf.log'
481 artifacts: 'karaf_console.log'
482 - email-notification:
483 email-prefix: '[coretutorials]'
486 name: 'coretutorials-integration-{stream}'
489 # Job template for ODL integration verify jobs
491 # This is similar to a normal verify job, but it runs
492 # when a project that's a dependency of your project
493 # is successfully built.
495 # Required Variables:
496 # stream: release stream (eg. stable-lithium or beryllium)
497 # branch: git branch (eg. stable/lithium or master)
504 daysToKeep: '{build-days-to-keep}'
505 numToKeep: '{build-num-to-keep}'
506 artifactDaysToKeep: '{build-artifact-days-to-keep}'
507 artifactNumToKeep: '{build-artifact-num-to-keep}'
515 credentials-id: '{ssh-credentials}'
521 - ssh-agent-credentials:
523 - '{ssh-credentials}'
527 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}'
531 - wipe-org-opendaylight-repo
532 - jacoco-nojava-workaround
533 - provide-maven-settings:
534 global-settings-file: 'odl-global-settings'
535 settings-file: 'coretutorials-settings'
538 maven-name: '{mvn33}'
540 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
541 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
542 settings: 'coretutorials-settings'
544 global-settings: 'odl-global-settings'
545 global-settings-type: cfp
551 - email-notification:
552 email-prefix: '[coretutorials] [odlparent] [yangtools] [controller]'
556 name: 'coretutorials-sonar'
566 artifactDaysToKeep: '1'
567 artifactNumToKeep: '1'
575 credentials-id: '{ssh-credentials}'
581 - ssh-agent-credentials:
583 - '{ssh-credentials}'
587 - gerrit-trigger-patch-sonar:
588 name: 'coretutorials'
591 - wipe-org-opendaylight-repo
592 - jacoco-nojava-workaround
593 - provide-maven-settings:
594 global-settings-file: 'odl-global-settings'
595 settings-file: 'coretutorials-settings'
598 maven-name: '{mvn33}'
600 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
601 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
602 settings: 'coretutorials-settings'
604 global-settings: 'odl-global-settings'
605 global-settings-type: cfp
613 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
614 - email-notification:
615 email-prefix: '[coretutorials]'
619 name: 'coretutorials-clm-{stream}'
627 daysToKeep: '{build-days-to-keep}'
628 numToKeep: '{build-num-to-keep}'
629 artifactDaysToKeep: '{build-artifact-days-to-keep}'
630 artifactNumToKeep: '{build-artifact-num-to-keep}'
638 credentials-id: '{ssh-credentials}'
644 - ssh-agent-credentials:
646 - '{ssh-credentials}'
652 - wipe-org-opendaylight-repo
653 - provide-maven-settings:
654 global-settings-file: 'odl-global-settings'
655 settings-file: 'coretutorials-settings'
658 maven-name: '{mvn33}'
660 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'
661 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
662 settings: 'coretutorials-settings'
664 global-settings: 'odl-global-settings'
665 global-settings-type: cfp
668 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
670 application-name: coretutorials
673 - email-notification:
674 email-prefix: '[coretutorials]'
677 name: 'coretutorials-validate-autorelease-{stream}'
678 disabled: '{obj:disable_autorelease}'
686 daysToKeep: '{build-days-to-keep}'
687 numToKeep: '{build-num-to-keep}'
688 artifactDaysToKeep: '{build-artifact-days-to-keep}'
689 artifactNumToKeep: '{build-artifact-num-to-keep}'
697 refspec: 'refs/heads/{branch}'
698 - autorelease-release-tag:
699 release-tag: 'validate'
700 - autorelease-release-branch:
701 release-branch: '{branch}'
704 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
705 description: "Autorelease clone URL"
710 credentials-id: '{ssh-credentials}'
720 - autorelease-build-timeout
721 - ssh-agent-credentials:
723 - '{ssh-credentials}'
727 server-name: 'OpenDaylight'
729 - patchset-created-event:
730 exclude-drafts: 'true'
731 exclude-trivial-rebase: 'false'
732 exclude-no-code-change: 'true'
733 - draft-published-event
734 - comment-added-contains-event:
735 comment-contains-value: 'recheck'
736 - comment-added-contains-event:
737 comment-contains-value: 'reverify'
738 - comment-added-contains-event:
739 comment-contains-value: 'revalidate'
741 - project-compare-type: 'ANT'
742 project-pattern: 'coretutorials'
744 - branch-compare-type: 'ANT'
745 branch-pattern: '**/{branch}'
751 - wipe-org-opendaylight-repo
752 - jacoco-nojava-workaround
753 - autorelease-checkout-gerrit-patch
754 - autorelease-generate-release-patches
756 maven-version: '{mvn33}'
757 pom: validate-pom.xml
758 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'
761 settings: 'autorelease-settings'
763 global-settings: 'odl-global-settings'
764 global-settings-type: cfp
767 maven-name: '{mvn33}'
769 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
770 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
771 settings: 'autorelease-settings'
773 global-settings: 'odl-global-settings'
774 global-settings-type: cfp
775 automatic-archiving: false
776 post-step-run-condition: UNSTABLE
779 - autorelease-sys-stats
782 - email-notification:
783 email-prefix: '[autorelease] [coretutorials]'