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}'
379 artifactDaysToKeep: '{build-artifact-days-to-keep}'
380 artifactNumToKeep: '{build-artifact-num-to-keep}'
383 - gerrit-project-parameter:
385 - gerrit-refspec-parameter:
389 - integration-distribution-git-url
392 - integration-gerrit-scm:
393 credentials-id: '{ssh-credentials}'
394 basedir: '$GERRIT_PROJECT'
395 refspec: '$GERRIT_REFSPEC'
397 - integration-distribution-scm:
398 credentials-id: '{ssh-credentials}'
403 - ssh-agent-credentials:
405 - '{ssh-credentials}'
409 server-name: 'OpenDaylight'
411 - patchset-created-event:
412 exclude-drafts: 'true'
413 exclude-trivial-rebase: 'false'
414 exclude-no-code-change: 'true'
415 - draft-published-event
416 - comment-added-contains-event:
417 comment-contains-value: 'test-distribution'
419 - project-compare-type: 'ANT'
420 project-pattern: '{name}'
422 - branch-compare-type: 'ANT'
423 branch-pattern: '**/{branch}'
431 - integration-get-bundle-url
433 properties-file: 'bundle.txt'
434 - wipe-org-opendaylight-repo
436 maven-version: '{mvn33}'
437 pom: '$GERRIT_PROJECT/pom.xml'
438 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}'
440 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
441 settings: '{coretutorials-settings}'
442 global-settings: '{odl-global-settings}'
445 maven-name: '{mvn33}'
446 root-pom: 'distribution/pom.xml'
447 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
448 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
449 settings: '{coretutorials-settings}'
450 global-settings: '{odl-global-settings}'
451 ignore-upstream-changes: true
452 post-step-run-condition: 'SUCCESS'
456 - project: 'integration-distribution-deploy-{stream}'
458 predefined-parameters:
462 - email-notification:
463 email-prefix: '[coretutorials]'
466 name: 'coretutorials-integration-{stream}'
469 # Job template for ODL integration verify jobs
471 # This is similar to a normal verify job, but it runs
472 # when a project that's a dependency of your project
473 # is successfully built.
475 # Required Variables:
476 # stream: release stream (eg. stable-lithium or beryllium)
477 # branch: git branch (eg. stable/lithium or master)
484 daysToKeep: '{build-days-to-keep}'
485 numToKeep: '{build-num-to-keep}'
486 artifactDaysToKeep: '{build-artifact-days-to-keep}'
487 artifactNumToKeep: '{build-artifact-num-to-keep}'
495 credentials-id: '{ssh-credentials}'
501 - ssh-agent-credentials:
503 - '{ssh-credentials}'
507 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}'
511 - wipe-org-opendaylight-repo
512 - jacoco-nojava-workaround
513 - provide-maven-settings:
514 global-settings-file: '{odl-global-settings}'
515 settings-file: '{coretutorials-settings}'
518 maven-name: '{mvn33}'
520 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
521 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
522 settings: '{coretutorials-settings}'
523 global-settings: '{odl-global-settings}'
529 - email-notification:
530 email-prefix: '[coretutorials] [odlparent] [yangtools] [controller]'
534 name: 'coretutorials-sonar'
544 artifactDaysToKeep: '1'
545 artifactNumToKeep: '1'
553 credentials-id: '{ssh-credentials}'
559 - ssh-agent-credentials:
561 - '{ssh-credentials}'
565 - gerrit-trigger-patch-sonar:
566 name: 'coretutorials'
569 - wipe-org-opendaylight-repo
570 - jacoco-nojava-workaround
571 - provide-maven-settings:
572 global-settings-file: '{odl-global-settings}'
573 settings-file: '{coretutorials-settings}'
576 maven-name: '{mvn33}'
578 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
579 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
580 settings: '{coretutorials-settings}'
581 global-settings: '{odl-global-settings}'
589 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
590 - email-notification:
591 email-prefix: '[coretutorials]'
595 name: 'coretutorials-clm-{stream}'
603 daysToKeep: '{build-days-to-keep}'
604 numToKeep: '{build-num-to-keep}'
605 artifactDaysToKeep: '{build-artifact-days-to-keep}'
606 artifactNumToKeep: '{build-artifact-num-to-keep}'
614 credentials-id: '{ssh-credentials}'
620 - ssh-agent-credentials:
622 - '{ssh-credentials}'
628 - wipe-org-opendaylight-repo
629 - provide-maven-settings:
630 global-settings-file: '{odl-global-settings}'
631 settings-file: '{coretutorials-settings}'
634 maven-name: '{mvn33}'
636 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'
637 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
638 settings: '{coretutorials-settings}'
639 global-settings: '{odl-global-settings}'
642 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
644 application-name: coretutorials
647 - email-notification:
648 email-prefix: '[coretutorials]'
651 name: 'coretutorials-validate-autorelease-{stream}'
652 disabled: '{obj:disable_autorelease}'
660 daysToKeep: '{build-days-to-keep}'
661 numToKeep: '{build-num-to-keep}'
662 artifactDaysToKeep: '{build-artifact-days-to-keep}'
663 artifactNumToKeep: '{build-artifact-num-to-keep}'
670 - autorelease-release-tag:
671 release-tag: 'validate'
672 - autorelease-release-branch:
673 release-branch: '{branch}'
674 - autorelease-release-datestamp:
679 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
688 - autorelease-build-timeout
689 - ssh-agent-credentials:
691 - '{ssh-credentials}'
695 server-name: 'OpenDaylight'
697 - patchset-created-event:
698 exclude-drafts: 'false'
699 exclude-trivial-rebase: 'false'
700 exclude-no-code-change: 'false'
701 - draft-published-event
702 - comment-added-contains-event:
703 comment-contains-value: 'recheck'
704 - comment-added-contains-event:
705 comment-contains-value: 'reverify'
706 - comment-added-contains-event:
707 comment-contains-value: 'revalidate'
709 - project-compare-type: 'ANT'
710 project-pattern: 'coretutorials'
712 - branch-compare-type: 'ANT'
713 branch-pattern: '**/{branch}'
716 - wipe-org-opendaylight-repo
717 - jacoco-nojava-workaround
718 - autorelease-checkout-gerrit-patch
719 - autorelease-generate-taglist
720 - autorelease-generate-release-patches
722 maven-version: '{mvn33}'
723 pom: validate-pom.xml
724 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
727 settings: '{autorelease-settings}'
728 global-settings: '{odl-global-settings}'
731 maven-name: '{mvn33}'
733 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
734 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
735 settings: '{autorelease-settings}'
736 global-settings: '{odl-global-settings}'
737 automatic-archiving: false
738 post-step-run-condition: UNSTABLE
741 - shell: "./scripts/list-project-dependencies.sh"
742 - autorelease-sys-stats
747 - email-notification:
748 email-prefix: '[autorelease] [coretutorials]'