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 - jacoco-nojava-workaround
111 - provide-maven-settings:
112 global-settings-file: 'odl-global-settings'
113 settings-file: 'coretutorials-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: 'coretutorials-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: '[coretutorials]'
133 maven-version: '{mvn33}'
136 name: 'coretutorials-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:
180 name: 'coretutorials'
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
248 maven-version: '{mvn33}'
251 name: 'coretutorials-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: 'coretutorials-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: 'coretutorials-settings'
305 global-settings: 'odl-global-settings'
306 global-settings-type: cfp
312 - email-notification:
313 email-prefix: '[coretutorials]'
316 maven-version: '{mvn33}'
319 name: 'coretutorials-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: 'coretutorials-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: 'coretutorials-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: 'coretutorials-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: 'coretutorials-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: '[coretutorials]'
488 maven-version: '{mvn33}'
491 name: 'coretutorials-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},yangtools-merge-{stream},controller-merge-{stream}'
536 - jacoco-nojava-workaround
537 - provide-maven-settings:
538 global-settings-file: 'odl-global-settings'
539 settings-file: 'coretutorials-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: 'coretutorials-settings'
548 global-settings: 'odl-global-settings'
549 global-settings-type: cfp
555 - email-notification:
556 email-prefix: '[coretutorials] [odlparent] [yangtools] [controller]'
559 maven-version: '{mvn33}'
562 name: 'coretutorials-sonar'
572 artifactDaysToKeep: '1'
573 artifactNumToKeep: '1'
581 credentials-id: '{ssh-credentials}'
587 - ssh-agent-credentials:
589 - '{ssh-credentials}'
593 - gerrit-trigger-patch-sonar:
594 name: 'coretutorials'
597 - jacoco-nojava-workaround
598 - provide-maven-settings:
599 global-settings-file: 'odl-global-settings'
600 settings-file: 'coretutorials-settings'
603 maven-name: '{mvn33}'
605 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
606 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
607 settings: 'coretutorials-settings'
609 global-settings: 'odl-global-settings'
610 global-settings-type: cfp
618 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
619 - email-notification:
620 email-prefix: '[coretutorials]'
623 maven-version: '{mvn33}'
626 name: 'coretutorials-clm-{stream}'
634 daysToKeep: '{build-days-to-keep}'
635 numToKeep: '{build-num-to-keep}'
636 artifactDaysToKeep: '{build-artifact-days-to-keep}'
637 artifactNumToKeep: '{build-artifact-num-to-keep}'
645 credentials-id: '{ssh-credentials}'
651 - ssh-agent-credentials:
653 - '{ssh-credentials}'
659 - provide-maven-settings:
660 global-settings-file: 'odl-global-settings'
661 settings-file: 'coretutorials-settings'
664 maven-name: '{mvn33}'
666 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'
667 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
668 settings: 'coretutorials-settings'
670 global-settings: 'odl-global-settings'
671 global-settings-type: cfp
674 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
676 application-name: coretutorials
679 - email-notification:
680 email-prefix: '[coretutorials]'
682 maven-version: '{mvn33}'
685 name: 'coretutorials-validate-autorelease-{stream}'
686 disabled: '{obj:disable_autorelease}'
694 daysToKeep: '{build-days-to-keep}'
695 numToKeep: '{build-num-to-keep}'
696 artifactDaysToKeep: '{build-artifact-days-to-keep}'
697 artifactNumToKeep: '{build-artifact-num-to-keep}'
705 refspec: 'refs/heads/{branch}'
706 - autorelease-release-tag:
707 release-tag: 'validate'
708 - autorelease-release-branch:
709 release-branch: '{branch}'
712 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
713 description: "Autorelease clone URL"
718 credentials-id: '{ssh-credentials}'
728 - autorelease-build-timeout
729 - ssh-agent-credentials:
731 - '{ssh-credentials}'
735 server-name: 'OpenDaylight'
737 - patchset-created-event:
738 exclude-drafts: 'true'
739 exclude-trivial-rebase: 'false'
740 exclude-no-code-change: 'true'
741 - draft-published-event
742 - comment-added-contains-event:
743 comment-contains-value: 'recheck'
744 - comment-added-contains-event:
745 comment-contains-value: 'reverify'
746 - comment-added-contains-event:
747 comment-contains-value: 'revalidate'
749 - project-compare-type: 'ANT'
750 project-pattern: 'coretutorials'
752 - branch-compare-type: 'ANT'
753 branch-pattern: '**/{branch}'
759 - jacoco-nojava-workaround
760 - autorelease-checkout-gerrit-patch
761 - autorelease-generate-release-patches
763 maven-version: '{mvn33}'
764 pom: validate-pom.xml
765 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'
768 settings: 'autorelease-settings'
770 global-settings: 'odl-global-settings'
771 global-settings-type: cfp
774 maven-name: '{mvn33}'
776 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
777 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
778 settings: 'autorelease-settings'
780 global-settings: 'odl-global-settings'
781 global-settings-type: cfp
782 automatic-archiving: false
783 post-step-run-condition: UNSTABLE
786 - autorelease-sys-stats
789 - email-notification:
790 email-prefix: '[autorelease] [coretutorials]'
792 maven-version: '{mvn33}'