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}'
89 - gerrit-refspec-parameter:
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 -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
120 - '-Xmx1024m -XX:MaxPermSize=256m'
121 settings: '{coretutorials-settings}'
122 global-settings: '{odl-global-settings}'
126 artifacts: '**/target/surefire-reports/*-output.txt, '
128 - email-notification:
129 email-prefix: '[coretutorials]'
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}'
159 - gerrit-refspec-parameter:
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 - wipe-org-opendaylight-repo
182 - jacoco-nojava-workaround
183 - provide-maven-settings:
184 global-settings-file: '{odl-global-settings}'
185 settings-file: '{coretutorials-settings}'
188 maven-name: '{mvn33}'
190 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
191 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
192 settings: '{coretutorials-settings}'
193 global-settings: '{odl-global-settings}'
194 post-step-run-condition: UNSTABLE
198 condition-kind: file-exists
199 condition-filename: deploy-site.xml
200 condition-basedir: workspace
202 # The strategy here is intentional to run Maven site:deploy twice
203 # once using regular pom.xml to produce a staged-site which is
204 # then used by deploy-site.xml to push to Nexus. This is a
205 # workaround to Maven Site's default linking code which creates
206 # incorrect URLs for sites due to auto-detection assuming your
207 # project is configured in a certain way which ODL is not.
210 maven-version: '{mvn33}'
212 goals: 'site:deploy -Dstream={stream}'
215 settings: '{coretutorials-settings}'
216 global-settings: '{odl-global-settings}'
218 maven-version: '{mvn33}'
220 goals: 'site:deploy -Dstream={stream}'
223 settings: '{coretutorials-settings}'
224 global-settings: '{odl-global-settings}'
231 artifacts: '**/target/surefire-reports/*-output.txt, '
232 - email-notification:
233 email-prefix: '[coretutorials]'
237 deploy-unstable: false
241 name: 'coretutorials-periodic-{stream}'
244 # Job template for periodic builders
246 # The purpose of this job template is to setup a periodic
249 # Required Variables:
250 # stream: release stream (eg. stable-lithium or beryllium)
251 # branch: git branch (eg. stable/lithium or master)
260 artifactDaysToKeep: '{build-artifact-days-to-keep}'
261 artifactNumToKeep: '{build-artifact-num-to-keep}'
269 credentials-id: '{ssh-credentials}'
275 - ssh-agent-credentials:
277 - '{ssh-credentials}'
283 - wipe-org-opendaylight-repo
284 - jacoco-nojava-workaround
285 - provide-maven-settings:
286 global-settings-file: '{odl-global-settings}'
287 settings-file: '{coretutorials-settings}'
290 maven-name: '{mvn33}'
292 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
293 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
294 settings: '{coretutorials-settings}'
295 global-settings: '{odl-global-settings}'
301 - email-notification:
302 email-prefix: '[coretutorials]'
306 name: 'coretutorials-distribution-{stream}'
308 # Required variables:
309 # stream: release stream (eg. stable-lithium or beryllium)
310 # branch: git branch (eg. stable/lithium or master)
317 daysToKeep: '{build-days-to-keep}'
318 numToKeep: '{build-num-to-keep}'
319 artifactDaysToKeep: '{build-artifact-days-to-keep}'
320 artifactNumToKeep: '{build-artifact-num-to-keep}'
324 project: 'integration/distribution'
328 credentials-id: '{ssh-credentials}'
334 - ssh-agent-credentials:
336 - '{ssh-credentials}'
340 jobs: '{project}-merge-{stream}'
344 - wipe-org-opendaylight-repo
345 - provide-maven-settings:
346 global-settings-file: '{odl-global-settings}'
347 settings-file: '{coretutorials-settings}'
350 maven-name: '{mvn33}'
352 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
353 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
354 settings: '{integration-settings}'
355 global-settings: '{odl-global-settings}'
358 - email-notification:
359 email-prefix: '[{project}]'
363 deploy-unstable: false
365 # Template: integration-patch-distribution-{stream}
366 # Goal: Build a patch and make sure the distribution can deploy with this change
367 # Operation: This job template builds a patch, creates a distribution containing
368 # the patch, and triggers the distribution deploy test
371 name: 'coretutorials-distribution-check-{stream}'
372 disabled: '{obj:disable_distribution_check}'
382 artifactDaysToKeep: '{build-artifact-days-to-keep}'
383 artifactNumToKeep: '{build-artifact-num-to-keep}'
386 - gerrit-project-parameter:
388 - gerrit-refspec-parameter:
392 - integration-distribution-git-url
395 - integration-gerrit-scm:
396 credentials-id: '{ssh-credentials}'
397 basedir: '$GERRIT_PROJECT'
398 refspec: '$GERRIT_REFSPEC'
400 - integration-distribution-scm:
401 credentials-id: '{ssh-credentials}'
406 - ssh-agent-credentials:
408 - '{ssh-credentials}'
412 server-name: 'OpenDaylight'
414 - patchset-created-event:
415 exclude-drafts: 'true'
416 exclude-trivial-rebase: 'false'
417 exclude-no-code-change: 'true'
418 - draft-published-event
419 - comment-added-contains-event:
420 comment-contains-value: 'test-distribution'
421 - comment-added-contains-event:
422 comment-contains-value: 'reverify'
423 - comment-added-contains-event:
424 comment-contains-value: 'recheck'
426 - project-compare-type: 'ANT'
427 project-pattern: '{name}'
429 - branch-compare-type: 'ANT'
430 branch-pattern: '**/{branch}'
438 - wipe-org-opendaylight-repo
440 maven-version: '{mvn33}'
441 pom: '$GERRIT_PROJECT/pom.xml'
442 goals: 'clean install -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}'
444 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
445 settings: '{coretutorials-settings}'
446 global-settings: '{odl-global-settings}'
449 maven-name: '{mvn33}'
450 root-pom: 'distribution/pom.xml'
451 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
452 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
453 settings: '{coretutorials-settings}'
454 global-settings: '{odl-global-settings}'
455 ignore-upstream-changes: true
456 post-step-run-condition: 'SUCCESS'
459 - integration-distribution-check
463 artifacts: 'karaf.log'
465 artifacts: 'karaf_console.log'
466 - email-notification:
467 email-prefix: '[coretutorials]'
470 name: 'coretutorials-integration-{stream}'
473 # Job template for ODL integration verify jobs
475 # This is similar to a normal verify job, but it runs
476 # when a project that's a dependency of your project
477 # is successfully built.
479 # Required Variables:
480 # stream: release stream (eg. stable-lithium or beryllium)
481 # branch: git branch (eg. stable/lithium or master)
488 daysToKeep: '{build-days-to-keep}'
489 numToKeep: '{build-num-to-keep}'
490 artifactDaysToKeep: '{build-artifact-days-to-keep}'
491 artifactNumToKeep: '{build-artifact-num-to-keep}'
499 credentials-id: '{ssh-credentials}'
505 - ssh-agent-credentials:
507 - '{ssh-credentials}'
511 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}'
515 - wipe-org-opendaylight-repo
516 - jacoco-nojava-workaround
517 - provide-maven-settings:
518 global-settings-file: '{odl-global-settings}'
519 settings-file: '{coretutorials-settings}'
522 maven-name: '{mvn33}'
524 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
525 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
526 settings: '{coretutorials-settings}'
527 global-settings: '{odl-global-settings}'
533 - email-notification:
534 email-prefix: '[coretutorials] [odlparent] [yangtools] [controller]'
538 name: 'coretutorials-sonar'
548 artifactDaysToKeep: '1'
549 artifactNumToKeep: '1'
557 credentials-id: '{ssh-credentials}'
563 - ssh-agent-credentials:
565 - '{ssh-credentials}'
569 - gerrit-trigger-patch-sonar:
570 name: 'coretutorials'
573 - wipe-org-opendaylight-repo
574 - jacoco-nojava-workaround
575 - provide-maven-settings:
576 global-settings-file: '{odl-global-settings}'
577 settings-file: '{coretutorials-settings}'
580 maven-name: '{mvn33}'
582 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
583 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
584 settings: '{coretutorials-settings}'
585 global-settings: '{odl-global-settings}'
593 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
594 - email-notification:
595 email-prefix: '[coretutorials]'
599 name: 'coretutorials-clm-{stream}'
607 daysToKeep: '{build-days-to-keep}'
608 numToKeep: '{build-num-to-keep}'
609 artifactDaysToKeep: '{build-artifact-days-to-keep}'
610 artifactNumToKeep: '{build-artifact-num-to-keep}'
618 credentials-id: '{ssh-credentials}'
624 - ssh-agent-credentials:
626 - '{ssh-credentials}'
632 - wipe-org-opendaylight-repo
633 - provide-maven-settings:
634 global-settings-file: '{odl-global-settings}'
635 settings-file: '{coretutorials-settings}'
638 maven-name: '{mvn33}'
640 goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
641 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
642 settings: '{coretutorials-settings}'
643 global-settings: '{odl-global-settings}'
646 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
648 application-name: coretutorials
651 - email-notification:
652 email-prefix: '[coretutorials]'
655 name: 'coretutorials-validate-autorelease-{stream}'
656 disabled: '{obj:disable_autorelease}'
664 daysToKeep: '{build-days-to-keep}'
665 numToKeep: '{build-num-to-keep}'
666 artifactDaysToKeep: '{build-artifact-days-to-keep}'
667 artifactNumToKeep: '{build-artifact-num-to-keep}'
674 - autorelease-release-tag:
675 release-tag: 'validate'
676 - autorelease-release-branch:
677 release-branch: '{branch}'
678 - autorelease-release-datestamp:
682 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
683 description: "Autorelease clone URL"
698 - autorelease-build-timeout
699 - ssh-agent-credentials:
701 - '{ssh-credentials}'
705 server-name: 'OpenDaylight'
707 - patchset-created-event:
708 exclude-drafts: 'false'
709 exclude-trivial-rebase: 'false'
710 exclude-no-code-change: 'false'
711 - draft-published-event
712 - comment-added-contains-event:
713 comment-contains-value: 'recheck'
714 - comment-added-contains-event:
715 comment-contains-value: 'reverify'
716 - comment-added-contains-event:
717 comment-contains-value: 'revalidate'
719 - project-compare-type: 'ANT'
720 project-pattern: 'coretutorials'
722 - branch-compare-type: 'ANT'
723 branch-pattern: '**/{branch}'
729 - wipe-org-opendaylight-repo
730 - jacoco-nojava-workaround
731 - autorelease-checkout-gerrit-patch
732 - autorelease-generate-release-patches
734 maven-version: '{mvn33}'
735 pom: validate-pom.xml
736 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
739 settings: '{autorelease-settings}'
740 global-settings: '{odl-global-settings}'
743 maven-name: '{mvn33}'
745 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
746 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
747 settings: '{autorelease-settings}'
748 global-settings: '{odl-global-settings}'
749 automatic-archiving: false
750 post-step-run-condition: UNSTABLE
753 - autorelease-sys-stats
756 - email-notification:
757 email-prefix: '[autorelease] [coretutorials]'