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}'
176 - gerrit-trigger-patch-merged:
177 name: 'coretutorials'
181 - jacoco-nojava-workaround
182 - provide-maven-settings:
183 global-settings-file: 'odl-global-settings'
184 settings-file: 'coretutorials-settings'
187 maven-name: '{mvn33}'
189 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
190 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
191 settings: 'coretutorials-settings'
193 global-settings: 'odl-global-settings'
194 global-settings-type: cfp
195 post-step-run-condition: UNSTABLE
199 condition-kind: file-exists
200 condition-filename: deploy-site.xml
201 condition-basedir: workspace
203 # The strategy here is intentional to run Maven site:deploy twice
204 # once using regular pom.xml to produce a staged-site which is
205 # then used by deploy-site.xml to push to Nexus. This is a
206 # workaround to Maven Site's default linking code which creates
207 # incorrect URLs for sites due to auto-detection assuming your
208 # project is configured in a certain way which ODL is not.
211 maven-version: '{mvn33}'
213 goals: 'site:deploy -V -B -Dstream={stream}'
216 settings: 'coretutorials-settings'
218 global-settings: 'odl-global-settings'
219 global-settings-type: cfp
221 maven-version: '{mvn33}'
223 goals: 'site:deploy -V -B -Dstream={stream}'
226 settings: 'coretutorials-settings'
228 global-settings: 'odl-global-settings'
229 global-settings-type: cfp
236 artifacts: '**/target/surefire-reports/*-output.txt, '
237 - email-notification:
238 email-prefix: '[coretutorials]'
242 deploy-unstable: false
245 maven-version: '{mvn33}'
248 name: 'coretutorials-periodic-{stream}'
251 # Job template for periodic builders
253 # The purpose of this job template is to setup a periodic
256 # Required Variables:
257 # stream: release stream (eg. stable-lithium or beryllium)
258 # branch: git branch (eg. stable/lithium or master)
267 artifactDaysToKeep: '{build-artifact-days-to-keep}'
268 artifactNumToKeep: '{build-artifact-num-to-keep}'
276 credentials-id: '{ssh-credentials}'
282 - ssh-agent-credentials:
284 - '{ssh-credentials}'
290 - jacoco-nojava-workaround
291 - provide-maven-settings:
292 global-settings-file: 'odl-global-settings'
293 settings-file: 'coretutorials-settings'
296 maven-name: '{mvn33}'
298 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
299 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
300 settings: 'coretutorials-settings'
302 global-settings: 'odl-global-settings'
303 global-settings-type: cfp
309 - email-notification:
310 email-prefix: '[coretutorials]'
313 maven-version: '{mvn33}'
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 - provide-maven-settings:
355 global-settings-file: 'odl-global-settings'
356 settings-file: 'coretutorials-settings'
359 maven-name: '{mvn33}'
361 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
362 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
363 settings: 'integration-distribution-settings'
365 global-settings: 'odl-global-settings'
366 global-settings-type: cfp
369 - email-notification:
370 email-prefix: '[{project}]'
374 deploy-unstable: false
376 maven-version: '{mvn33}'
378 # Template: integration-patch-distribution-{stream}
379 # Goal: Build a patch and make sure the distribution can deploy with this change
380 # Operation: This job template builds a patch, creates a distribution containing
381 # the patch, and triggers the distribution deploy test
384 name: 'coretutorials-distribution-check-{stream}'
385 disabled: '{obj:disable_distribution_check}'
393 daysToKeep: '{build-days-to-keep}'
394 numToKeep: '{build-num-to-keep}'
395 artifactDaysToKeep: '{build-artifact-days-to-keep}'
396 artifactNumToKeep: '{build-artifact-num-to-keep}'
402 refspec: 'refs/heads/{branch}'
405 - integration-distribution-git-url
408 - integration-gerrit-scm:
409 credentials-id: '{ssh-credentials}'
410 basedir: '$GERRIT_PROJECT'
411 refspec: '$GERRIT_REFSPEC'
413 - integration-distribution-scm:
414 credentials-id: '{ssh-credentials}'
419 - ssh-agent-credentials:
421 - '{ssh-credentials}'
425 server-name: 'OpenDaylight'
427 - patchset-created-event:
428 exclude-drafts: 'true'
429 exclude-trivial-rebase: 'false'
430 exclude-no-code-change: 'true'
431 - draft-published-event
432 - comment-added-contains-event:
433 comment-contains-value: 'test-distribution'
434 - comment-added-contains-event:
435 comment-contains-value: 'reverify'
436 - comment-added-contains-event:
437 comment-contains-value: 'recheck'
439 - project-compare-type: 'ANT'
440 project-pattern: '{name}'
442 - branch-compare-type: 'ANT'
443 branch-pattern: '**/{branch}'
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]'
485 maven-version: '{mvn33}'
488 name: 'coretutorials-integration-{stream}'
491 # Job template for ODL integration verify jobs
493 # This is similar to a normal verify job, but it runs
494 # when a project that's a dependency of your project
495 # is successfully built.
497 # Required Variables:
498 # stream: release stream (eg. stable-lithium or beryllium)
499 # branch: git branch (eg. stable/lithium or master)
506 daysToKeep: '{build-days-to-keep}'
507 numToKeep: '{build-num-to-keep}'
508 artifactDaysToKeep: '{build-artifact-days-to-keep}'
509 artifactNumToKeep: '{build-artifact-num-to-keep}'
517 credentials-id: '{ssh-credentials}'
523 - ssh-agent-credentials:
525 - '{ssh-credentials}'
529 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}'
533 - jacoco-nojava-workaround
534 - provide-maven-settings:
535 global-settings-file: 'odl-global-settings'
536 settings-file: 'coretutorials-settings'
539 maven-name: '{mvn33}'
541 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
542 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
543 settings: 'coretutorials-settings'
545 global-settings: 'odl-global-settings'
546 global-settings-type: cfp
552 - email-notification:
553 email-prefix: '[coretutorials] [odlparent] [yangtools] [controller]'
556 maven-version: '{mvn33}'
559 name: 'coretutorials-sonar'
569 artifactDaysToKeep: '1'
570 artifactNumToKeep: '1'
578 credentials-id: '{ssh-credentials}'
584 - ssh-agent-credentials:
586 - '{ssh-credentials}'
590 - gerrit-trigger-patch-sonar:
591 name: 'coretutorials'
594 - jacoco-nojava-workaround
595 - provide-maven-settings:
596 global-settings-file: 'odl-global-settings'
597 settings-file: 'coretutorials-settings'
600 maven-name: '{mvn33}'
602 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
603 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
604 settings: 'coretutorials-settings'
606 global-settings: 'odl-global-settings'
607 global-settings-type: cfp
615 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
616 - email-notification:
617 email-prefix: '[coretutorials]'
620 maven-version: '{mvn33}'
623 name: 'coretutorials-clm-{stream}'
631 daysToKeep: '{build-days-to-keep}'
632 numToKeep: '{build-num-to-keep}'
633 artifactDaysToKeep: '{build-artifact-days-to-keep}'
634 artifactNumToKeep: '{build-artifact-num-to-keep}'
642 credentials-id: '{ssh-credentials}'
648 - ssh-agent-credentials:
650 - '{ssh-credentials}'
656 - provide-maven-settings:
657 global-settings-file: 'odl-global-settings'
658 settings-file: 'coretutorials-settings'
661 maven-name: '{mvn33}'
663 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'
664 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
665 settings: 'coretutorials-settings'
667 global-settings: 'odl-global-settings'
668 global-settings-type: cfp
671 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
673 application-name: coretutorials
676 - email-notification:
677 email-prefix: '[coretutorials]'
679 maven-version: '{mvn33}'
682 name: 'coretutorials-validate-autorelease-{stream}'
683 disabled: '{obj:disable_autorelease}'
691 daysToKeep: '{build-days-to-keep}'
692 numToKeep: '{build-num-to-keep}'
693 artifactDaysToKeep: '{build-artifact-days-to-keep}'
694 artifactNumToKeep: '{build-artifact-num-to-keep}'
702 refspec: 'refs/heads/{branch}'
703 - autorelease-release-tag:
704 release-tag: 'validate'
705 - autorelease-release-branch:
706 release-branch: '{branch}'
709 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
710 description: "Autorelease clone URL"
715 credentials-id: '{ssh-credentials}'
725 - autorelease-build-timeout
726 - ssh-agent-credentials:
728 - '{ssh-credentials}'
732 server-name: 'OpenDaylight'
734 - patchset-created-event:
735 exclude-drafts: 'true'
736 exclude-trivial-rebase: 'false'
737 exclude-no-code-change: 'true'
738 - draft-published-event
739 - comment-added-contains-event:
740 comment-contains-value: 'recheck'
741 - comment-added-contains-event:
742 comment-contains-value: 'reverify'
743 - comment-added-contains-event:
744 comment-contains-value: 'revalidate'
746 - project-compare-type: 'ANT'
747 project-pattern: 'coretutorials'
749 - branch-compare-type: 'ANT'
750 branch-pattern: '**/{branch}'
756 - jacoco-nojava-workaround
757 - autorelease-checkout-gerrit-patch
758 - autorelease-generate-release-patches
760 maven-version: '{mvn33}'
761 pom: validate-pom.xml
762 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'
765 settings: 'autorelease-settings'
767 global-settings: 'odl-global-settings'
768 global-settings-type: cfp
771 maven-name: '{mvn33}'
773 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
774 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
775 settings: 'autorelease-settings'
777 global-settings: 'odl-global-settings'
778 global-settings-type: cfp
779 automatic-archiving: false
780 post-step-run-condition: UNSTABLE
783 - autorelease-sys-stats
786 - email-notification:
787 email-prefix: '[autorelease] [coretutorials]'
789 maven-version: '{mvn33}'