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'
97 - ssh-agent-credentials:
102 - gerrit-trigger-patch-submitted:
103 name: 'coretutorials'
107 - jacoco-nojava-workaround
108 - provide-maven-settings:
109 global-settings-file: 'odl-global-settings'
110 settings-file: 'coretutorials-settings'
112 maven-version: '{mvn33}'
114 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
116 - '-Xmx1024m -XX:MaxPermSize=256m'
117 settings: 'coretutorials-settings'
119 global-settings: 'odl-global-settings'
120 global-settings-type: cfp
124 artifacts: '**/target/surefire-reports/*-output.txt, '
126 - email-notification:
127 email-prefix: '[coretutorials]'
130 maven-version: '{mvn33}'
133 name: 'coretutorials-merge-{stream}'
135 # Job template for ODL merge jobs
137 # The purpose of this job template is to setup a ODL merge job
138 # and deploy artifacts to Nexus.
140 # Required Variables:
141 # stream: release stream (eg. stable-lithium or beryllium)
142 # branch: git branch (eg. stable/lithium or master)
151 artifactDaysToKeep: '{build-artifact-days-to-keep}'
152 artifactNumToKeep: '{build-artifact-num-to-keep}'
160 refspec: 'refs/heads/{branch}'
163 - gerrit-trigger-scm:
164 credentials-id: '{ssh-credentials}'
166 choosing-strategy: 'default'
170 - ssh-agent-credentials:
172 - '{ssh-credentials}'
178 - gerrit-trigger-patch-merged:
179 name: 'coretutorials'
183 - jacoco-nojava-workaround
184 - provide-maven-settings:
185 global-settings-file: 'odl-global-settings'
186 settings-file: 'coretutorials-settings'
189 maven-name: '{mvn33}'
191 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
192 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
193 settings: 'coretutorials-settings'
195 global-settings: 'odl-global-settings'
196 global-settings-type: cfp
197 post-step-run-condition: UNSTABLE
201 condition-kind: file-exists
202 condition-filename: deploy-site.xml
203 condition-basedir: workspace
205 # The strategy here is intentional to run Maven site:deploy twice
206 # once using regular pom.xml to produce a staged-site which is
207 # then used by deploy-site.xml to push to Nexus. This is a
208 # workaround to Maven Site's default linking code which creates
209 # incorrect URLs for sites due to auto-detection assuming your
210 # project is configured in a certain way which ODL is not.
213 maven-version: '{mvn33}'
215 goals: 'site:deploy -V -B -Dstream={stream}'
218 settings: 'coretutorials-settings'
220 global-settings: 'odl-global-settings'
221 global-settings-type: cfp
223 maven-version: '{mvn33}'
225 goals: 'site:deploy -V -B -Dstream={stream}'
228 settings: 'coretutorials-settings'
230 global-settings: 'odl-global-settings'
231 global-settings-type: cfp
238 artifacts: '**/target/surefire-reports/*-output.txt, '
239 - email-notification:
240 email-prefix: '[coretutorials]'
244 deploy-unstable: false
247 maven-version: '{mvn33}'
250 name: 'coretutorials-periodic-{stream}'
253 # Job template for periodic builders
255 # The purpose of this job template is to setup a periodic
258 # Required Variables:
259 # stream: release stream (eg. stable-lithium or beryllium)
260 # branch: git branch (eg. stable/lithium or master)
269 artifactDaysToKeep: '{build-artifact-days-to-keep}'
270 artifactNumToKeep: '{build-artifact-num-to-keep}'
278 credentials-id: '{ssh-credentials}'
284 - ssh-agent-credentials:
286 - '{ssh-credentials}'
294 - jacoco-nojava-workaround
295 - provide-maven-settings:
296 global-settings-file: 'odl-global-settings'
297 settings-file: 'coretutorials-settings'
300 maven-name: '{mvn33}'
302 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
303 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
304 settings: 'coretutorials-settings'
306 global-settings: 'odl-global-settings'
307 global-settings-type: cfp
313 - email-notification:
314 email-prefix: '[coretutorials]'
317 maven-version: '{mvn33}'
320 name: 'coretutorials-distribution-{stream}'
322 # Required variables:
323 # stream: release stream (eg. stable-lithium or beryllium)
324 # branch: git branch (eg. stable/lithium or master)
331 daysToKeep: '{build-days-to-keep}'
332 numToKeep: '{build-num-to-keep}'
333 artifactDaysToKeep: '{build-artifact-days-to-keep}'
334 artifactNumToKeep: '{build-artifact-num-to-keep}'
338 project: 'integration/distribution'
342 credentials-id: '{ssh-credentials}'
348 - ssh-agent-credentials:
350 - '{ssh-credentials}'
356 jobs: '{project}-merge-{stream}'
360 - provide-maven-settings:
361 global-settings-file: 'odl-global-settings'
362 settings-file: 'coretutorials-settings'
365 maven-name: '{mvn33}'
367 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
368 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
369 settings: 'integration-distribution-settings'
371 global-settings: 'odl-global-settings'
372 global-settings-type: cfp
375 - email-notification:
376 email-prefix: '[{project}]'
380 deploy-unstable: false
382 maven-version: '{mvn33}'
384 # Template: integration-patch-distribution-{stream}
385 # Goal: Build a patch and make sure the distribution can deploy with this change
386 # Operation: This job template builds a patch, creates a distribution containing
387 # the patch, and triggers the distribution deploy test
390 name: 'coretutorials-distribution-check-{stream}'
391 disabled: '{obj:disable_distribution_check}'
399 daysToKeep: '{build-days-to-keep}'
400 numToKeep: '{build-num-to-keep}'
401 artifactDaysToKeep: '{build-artifact-days-to-keep}'
402 artifactNumToKeep: '{build-artifact-num-to-keep}'
408 refspec: 'refs/heads/{branch}'
411 - integration-distribution-git-url
414 - integration-gerrit-scm:
415 credentials-id: '{ssh-credentials}'
416 basedir: '$GERRIT_PROJECT'
417 refspec: '$GERRIT_REFSPEC'
419 - integration-distribution-scm:
420 credentials-id: '{ssh-credentials}'
425 - ssh-agent-credentials:
427 - '{ssh-credentials}'
433 server-name: 'OpenDaylight'
435 - patchset-created-event:
436 exclude-drafts: 'true'
437 exclude-trivial-rebase: 'false'
438 exclude-no-code-change: 'true'
439 - draft-published-event
440 - comment-added-contains-event:
441 comment-contains-value: 'test-distribution'
442 - comment-added-contains-event:
443 comment-contains-value: 'reverify'
444 - comment-added-contains-event:
445 comment-contains-value: 'recheck'
447 - project-compare-type: 'ANT'
448 project-pattern: '{name}'
450 - branch-compare-type: 'ANT'
451 branch-pattern: '**/{branch}'
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}'
539 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}'
543 - jacoco-nojava-workaround
544 - provide-maven-settings:
545 global-settings-file: 'odl-global-settings'
546 settings-file: 'coretutorials-settings'
549 maven-name: '{mvn33}'
551 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
552 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
553 settings: 'coretutorials-settings'
555 global-settings: 'odl-global-settings'
556 global-settings-type: cfp
562 - email-notification:
563 email-prefix: '[coretutorials] [odlparent] [yangtools] [controller]'
566 maven-version: '{mvn33}'
569 name: 'coretutorials-sonar'
579 artifactDaysToKeep: '1'
580 artifactNumToKeep: '1'
588 credentials-id: '{ssh-credentials}'
594 - ssh-agent-credentials:
596 - '{ssh-credentials}'
602 - gerrit-trigger-patch-sonar:
603 name: 'coretutorials'
606 - jacoco-nojava-workaround
607 - provide-maven-settings:
608 global-settings-file: 'odl-global-settings'
609 settings-file: 'coretutorials-settings'
612 maven-name: '{mvn33}'
614 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
615 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
616 settings: 'coretutorials-settings'
618 global-settings: 'odl-global-settings'
619 global-settings-type: cfp
627 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
628 - email-notification:
629 email-prefix: '[coretutorials]'
632 maven-version: '{mvn33}'
635 name: 'coretutorials-clm-{stream}'
643 daysToKeep: '{build-days-to-keep}'
644 numToKeep: '{build-num-to-keep}'
645 artifactDaysToKeep: '{build-artifact-days-to-keep}'
646 artifactNumToKeep: '{build-artifact-num-to-keep}'
654 credentials-id: '{ssh-credentials}'
660 - ssh-agent-credentials:
662 - '{ssh-credentials}'
670 - provide-maven-settings:
671 global-settings-file: 'odl-global-settings'
672 settings-file: 'coretutorials-settings'
675 maven-name: '{mvn33}'
677 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'
678 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
679 settings: 'coretutorials-settings'
681 global-settings: 'odl-global-settings'
682 global-settings-type: cfp
685 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
687 application-name: coretutorials
690 - email-notification:
691 email-prefix: '[coretutorials]'
693 maven-version: '{mvn33}'
696 name: 'coretutorials-validate-autorelease-{stream}'
697 disabled: '{obj:disable_autorelease}'
705 daysToKeep: '{build-days-to-keep}'
706 numToKeep: '{build-num-to-keep}'
707 artifactDaysToKeep: '{build-artifact-days-to-keep}'
708 artifactNumToKeep: '{build-artifact-num-to-keep}'
716 refspec: 'refs/heads/{branch}'
717 - autorelease-release-tag:
718 release-tag: 'validate'
719 - autorelease-release-branch:
720 release-branch: '{branch}'
723 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
724 description: "Autorelease clone URL"
729 credentials-id: '{ssh-credentials}'
739 - autorelease-build-timeout
740 - ssh-agent-credentials:
742 - '{ssh-credentials}'
748 server-name: 'OpenDaylight'
750 - patchset-created-event:
751 exclude-drafts: 'true'
752 exclude-trivial-rebase: 'false'
753 exclude-no-code-change: 'true'
754 - draft-published-event
755 - comment-added-contains-event:
756 comment-contains-value: 'recheck'
757 - comment-added-contains-event:
758 comment-contains-value: 'reverify'
759 - comment-added-contains-event:
760 comment-contains-value: 'revalidate'
762 - project-compare-type: 'ANT'
763 project-pattern: 'coretutorials'
765 - branch-compare-type: 'ANT'
766 branch-pattern: '**/{branch}'
772 - jacoco-nojava-workaround
773 - autorelease-checkout-gerrit-patch
774 - autorelease-generate-release-patches
776 maven-version: '{mvn33}'
777 pom: validate-pom.xml
778 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'
781 settings: 'autorelease-settings'
783 global-settings: 'odl-global-settings'
784 global-settings-type: cfp
787 maven-name: '{mvn33}'
789 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
790 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
791 settings: 'autorelease-settings'
793 global-settings: 'odl-global-settings'
794 global-settings-type: cfp
795 automatic-archiving: false
796 post-step-run-condition: UNSTABLE
799 - autorelease-sys-stats
802 - email-notification:
803 email-prefix: '[autorelease] [coretutorials]'
805 maven-version: '{mvn33}'