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 - email-notification:
127 email-prefix: '[coretutorials]'
131 name: 'coretutorials-merge-{stream}'
133 # Job template for ODL merge jobs
135 # The purpose of this job template is to setup a ODL merge job
136 # and deploy artifacts to Nexus.
138 # Required Variables:
139 # stream: release stream (eg. stable-lithium or beryllium)
140 # branch: git branch (eg. stable/lithium or master)
149 artifactDaysToKeep: '{build-artifact-days-to-keep}'
150 artifactNumToKeep: '{build-artifact-num-to-keep}'
157 - gerrit-refspec-parameter:
158 refspec: 'refs/heads/{branch}'
161 - gerrit-trigger-scm:
162 credentials-id: '{ssh-credentials}'
164 choosing-strategy: 'default'
168 - ssh-agent-credentials:
170 - '{ssh-credentials}'
174 - gerrit-trigger-patch-merged:
175 name: 'coretutorials'
179 - wipe-org-opendaylight-repo
180 - jacoco-nojava-workaround
181 - provide-maven-settings:
182 global-settings-file: '{odl-global-settings}'
183 settings-file: '{coretutorials-settings}'
186 maven-name: '{mvn33}'
188 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
189 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
190 settings: '{coretutorials-settings}'
191 global-settings: '{odl-global-settings}'
192 post-step-run-condition: UNSTABLE
196 condition-kind: file-exists
197 condition-filename: deploy-site.xml
198 condition-basedir: workspace
200 # The strategy here is intentional to run Maven site:deploy twice
201 # once using regular pom.xml to produce a staged-site which is
202 # then used by deploy-site.xml to push to Nexus. This is a
203 # workaround to Maven Site's default linking code which creates
204 # incorrect URLs for sites due to auto-detection assuming your
205 # project is configured in a certain way which ODL is not.
208 maven-version: '{mvn33}'
210 goals: 'site:deploy -Dstream={stream}'
213 settings: '{coretutorials-settings}'
214 global-settings: '{odl-global-settings}'
216 maven-version: '{mvn33}'
218 goals: 'site:deploy -Dstream={stream}'
221 settings: '{coretutorials-settings}'
222 global-settings: '{odl-global-settings}'
229 artifacts: '**/target/surefire-reports/*-output.txt, '
230 - email-notification:
231 email-prefix: '[coretutorials]'
235 deploy-unstable: false
239 name: 'coretutorials-periodic-{stream}'
242 # Job template for periodic builders
244 # The purpose of this job template is to setup a periodic
247 # Required Variables:
248 # stream: release stream (eg. stable-lithium or beryllium)
249 # branch: git branch (eg. stable/lithium or master)
258 artifactDaysToKeep: '{build-artifact-days-to-keep}'
259 artifactNumToKeep: '{build-artifact-num-to-keep}'
267 credentials-id: '{ssh-credentials}'
273 - ssh-agent-credentials:
275 - '{ssh-credentials}'
281 - wipe-org-opendaylight-repo
282 - jacoco-nojava-workaround
283 - provide-maven-settings:
284 global-settings-file: '{odl-global-settings}'
285 settings-file: '{coretutorials-settings}'
288 maven-name: '{mvn33}'
290 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
291 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
292 settings: '{coretutorials-settings}'
293 global-settings: '{odl-global-settings}'
299 - email-notification:
300 email-prefix: '[coretutorials]'
304 name: 'coretutorials-distribution-{stream}'
306 # Required variables:
307 # stream: release stream (eg. stable-lithium or beryllium)
308 # branch: git branch (eg. stable/lithium or master)
315 daysToKeep: '{build-days-to-keep}'
316 numToKeep: '{build-num-to-keep}'
317 artifactDaysToKeep: '{build-artifact-days-to-keep}'
318 artifactNumToKeep: '{build-artifact-num-to-keep}'
322 project: 'integration/distribution'
326 credentials-id: '{ssh-credentials}'
332 - ssh-agent-credentials:
334 - '{ssh-credentials}'
338 jobs: '{project}-merge-{stream}'
342 - wipe-org-opendaylight-repo
343 - provide-maven-settings:
344 global-settings-file: '{odl-global-settings}'
345 settings-file: '{coretutorials-settings}'
348 maven-name: '{mvn33}'
350 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
351 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
352 settings: '{integration-settings}'
353 global-settings: '{odl-global-settings}'
356 - email-notification:
357 email-prefix: '[{project}]'
361 deploy-unstable: false
363 # Template: integration-patch-distribution-{stream}
364 # Goal: Build a patch and make sure the distribution can deploy with this change
365 # Operation: This job template builds a patch, creates a distribution containing
366 # the patch, and triggers the distribution deploy test
369 name: 'coretutorials-distribution-check-{stream}'
370 disabled: '{obj:disable_distribution_check}'
380 artifactDaysToKeep: '{build-artifact-days-to-keep}'
381 artifactNumToKeep: '{build-artifact-num-to-keep}'
384 - gerrit-project-parameter:
386 - gerrit-refspec-parameter:
390 - integration-distribution-git-url
393 - integration-gerrit-scm:
394 credentials-id: '{ssh-credentials}'
395 basedir: '$GERRIT_PROJECT'
396 refspec: '$GERRIT_REFSPEC'
398 - integration-distribution-scm:
399 credentials-id: '{ssh-credentials}'
404 - ssh-agent-credentials:
406 - '{ssh-credentials}'
410 server-name: 'OpenDaylight'
412 - patchset-created-event:
413 exclude-drafts: 'true'
414 exclude-trivial-rebase: 'false'
415 exclude-no-code-change: 'true'
416 - draft-published-event
417 - comment-added-contains-event:
418 comment-contains-value: 'test-distribution'
420 - project-compare-type: 'ANT'
421 project-pattern: '{name}'
423 - branch-compare-type: 'ANT'
424 branch-pattern: '**/{branch}'
432 - wipe-org-opendaylight-repo
434 maven-version: '{mvn33}'
435 pom: '$GERRIT_PROJECT/pom.xml'
436 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}'
438 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
439 settings: '{coretutorials-settings}'
440 global-settings: '{odl-global-settings}'
443 maven-name: '{mvn33}'
444 root-pom: 'distribution/pom.xml'
445 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
446 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
447 settings: '{coretutorials-settings}'
448 global-settings: '{odl-global-settings}'
449 ignore-upstream-changes: true
450 post-step-run-condition: 'SUCCESS'
453 - integration-distribution-check
457 artifacts: 'karaf.log'
459 artifacts: 'karaf_console.log'
460 - email-notification:
461 email-prefix: '[coretutorials]'
464 name: 'coretutorials-integration-{stream}'
467 # Job template for ODL integration verify jobs
469 # This is similar to a normal verify job, but it runs
470 # when a project that's a dependency of your project
471 # is successfully built.
473 # Required Variables:
474 # stream: release stream (eg. stable-lithium or beryllium)
475 # branch: git branch (eg. stable/lithium or master)
482 daysToKeep: '{build-days-to-keep}'
483 numToKeep: '{build-num-to-keep}'
484 artifactDaysToKeep: '{build-artifact-days-to-keep}'
485 artifactNumToKeep: '{build-artifact-num-to-keep}'
493 credentials-id: '{ssh-credentials}'
499 - ssh-agent-credentials:
501 - '{ssh-credentials}'
505 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}'
509 - wipe-org-opendaylight-repo
510 - jacoco-nojava-workaround
511 - provide-maven-settings:
512 global-settings-file: '{odl-global-settings}'
513 settings-file: '{coretutorials-settings}'
516 maven-name: '{mvn33}'
518 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
519 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
520 settings: '{coretutorials-settings}'
521 global-settings: '{odl-global-settings}'
527 - email-notification:
528 email-prefix: '[coretutorials] [odlparent] [yangtools] [controller]'
532 name: 'coretutorials-sonar'
542 artifactDaysToKeep: '1'
543 artifactNumToKeep: '1'
551 credentials-id: '{ssh-credentials}'
557 - ssh-agent-credentials:
559 - '{ssh-credentials}'
563 - gerrit-trigger-patch-sonar:
564 name: 'coretutorials'
567 - wipe-org-opendaylight-repo
568 - jacoco-nojava-workaround
569 - provide-maven-settings:
570 global-settings-file: '{odl-global-settings}'
571 settings-file: '{coretutorials-settings}'
574 maven-name: '{mvn33}'
576 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
577 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
578 settings: '{coretutorials-settings}'
579 global-settings: '{odl-global-settings}'
587 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
588 - email-notification:
589 email-prefix: '[coretutorials]'
593 name: 'coretutorials-clm-{stream}'
601 daysToKeep: '{build-days-to-keep}'
602 numToKeep: '{build-num-to-keep}'
603 artifactDaysToKeep: '{build-artifact-days-to-keep}'
604 artifactNumToKeep: '{build-artifact-num-to-keep}'
612 credentials-id: '{ssh-credentials}'
618 - ssh-agent-credentials:
620 - '{ssh-credentials}'
626 - wipe-org-opendaylight-repo
627 - provide-maven-settings:
628 global-settings-file: '{odl-global-settings}'
629 settings-file: '{coretutorials-settings}'
632 maven-name: '{mvn33}'
634 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'
635 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
636 settings: '{coretutorials-settings}'
637 global-settings: '{odl-global-settings}'
640 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
642 application-name: coretutorials
645 - email-notification:
646 email-prefix: '[coretutorials]'
649 name: 'coretutorials-validate-autorelease-{stream}'
650 disabled: '{obj:disable_autorelease}'
658 daysToKeep: '{build-days-to-keep}'
659 numToKeep: '{build-num-to-keep}'
660 artifactDaysToKeep: '{build-artifact-days-to-keep}'
661 artifactNumToKeep: '{build-artifact-num-to-keep}'
668 - autorelease-release-tag:
669 release-tag: 'validate'
670 - autorelease-release-branch:
671 release-branch: '{branch}'
672 - autorelease-release-datestamp:
677 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
686 - autorelease-build-timeout
687 - ssh-agent-credentials:
689 - '{ssh-credentials}'
693 server-name: 'OpenDaylight'
695 - patchset-created-event:
696 exclude-drafts: 'false'
697 exclude-trivial-rebase: 'false'
698 exclude-no-code-change: 'false'
699 - draft-published-event
700 - comment-added-contains-event:
701 comment-contains-value: 'recheck'
702 - comment-added-contains-event:
703 comment-contains-value: 'reverify'
704 - comment-added-contains-event:
705 comment-contains-value: 'revalidate'
707 - project-compare-type: 'ANT'
708 project-pattern: 'coretutorials'
710 - branch-compare-type: 'ANT'
711 branch-pattern: '**/{branch}'
714 - wipe-org-opendaylight-repo
715 - jacoco-nojava-workaround
716 - autorelease-checkout-gerrit-patch
717 - autorelease-generate-taglist
718 - autorelease-generate-release-patches
720 maven-version: '{mvn33}'
721 pom: validate-pom.xml
722 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
725 settings: '{autorelease-settings}'
726 global-settings: '{odl-global-settings}'
729 maven-name: '{mvn33}'
731 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
732 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
733 settings: '{autorelease-settings}'
734 global-settings: '{odl-global-settings}'
735 automatic-archiving: false
736 post-step-run-condition: UNSTABLE
739 - shell: "./scripts/list-project-dependencies.sh"
740 - autorelease-sys-stats
745 - email-notification:
746 email-prefix: '[autorelease] [coretutorials]'