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 - 'next-verify-{stream}'
10 - 'next-merge-{stream}'
11 - 'next-periodic-{stream}'
12 - 'next-distribution-{stream}'
13 - 'next-distribution-check-{stream}'
14 - 'next-integration-{stream}'
17 - 'next-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
28 disable_autorelease: False
29 disable_distribution_check: False
31 branch: 'stable/beryllium'
36 disable_autorelease: False
37 disable_distribution_check: False
41 # For the Job templates below replace instances of:
42 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
43 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
44 # MAVEN_GOALS with your maven goals to build
45 # MAVEN_OPTS with your maven options to build
48 name: 'next-verify-{stream}'
50 # Job template for ODL verify jobs
52 # The purpose of this job template is to setup a ODL verify job
55 # stream: release stream (eg. stable-lithium or beryllium)
56 # branch: git branch (eg. stable/lithium or master)
73 daysToKeep: '{build-days-to-keep}'
74 numToKeep: '{build-num-to-keep}'
75 artifactDaysToKeep: '{build-artifact-days-to-keep}'
76 artifactNumToKeep: '{build-artifact-num-to-keep}'
83 - gerrit-refspec-parameter:
84 refspec: 'refs/heads/{branch}'
88 credentials-id: '{ssh-credentials}'
89 refspec: '$GERRIT_REFSPEC'
90 choosing-strategy: 'gerrit'
94 - ssh-agent-credentials:
99 - gerrit-trigger-patch-submitted:
104 - wipe-org-opendaylight-repo
105 - jacoco-nojava-workaround
106 - provide-maven-settings:
107 global-settings-file: '{odl-global-settings}'
108 settings-file: '{next-settings}'
110 maven-version: '{mvn33}'
112 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
114 - '-Xmx1024m -XX:MaxPermSize=256m'
115 settings: '{next-settings}'
116 global-settings: '{odl-global-settings}'
120 - email-notification:
121 email-prefix: '[next]'
125 name: 'next-merge-{stream}'
127 # Job template for ODL merge jobs
129 # The purpose of this job template is to setup a ODL merge job
130 # and deploy artifacts to Nexus.
132 # Required Variables:
133 # stream: release stream (eg. stable-lithium or beryllium)
134 # branch: git branch (eg. stable/lithium or master)
143 artifactDaysToKeep: '{build-artifact-days-to-keep}'
144 artifactNumToKeep: '{build-artifact-num-to-keep}'
151 - gerrit-refspec-parameter:
152 refspec: 'refs/heads/{branch}'
155 - gerrit-trigger-scm:
156 credentials-id: '{ssh-credentials}'
158 choosing-strategy: 'default'
162 - ssh-agent-credentials:
164 - '{ssh-credentials}'
168 - gerrit-trigger-patch-merged:
173 - wipe-org-opendaylight-repo
174 - jacoco-nojava-workaround
175 - provide-maven-settings:
176 global-settings-file: '{odl-global-settings}'
177 settings-file: '{next-settings}'
180 maven-name: '{mvn33}'
182 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
183 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
184 settings: '{next-settings}'
185 global-settings: '{odl-global-settings}'
186 post-step-run-condition: UNSTABLE
190 condition-kind: file-exists
191 condition-filename: deploy-site.xml
192 condition-basedir: workspace
194 # The strategy here is intentional to run Maven site:deploy twice
195 # once using regular pom.xml to produce a staged-site which is
196 # then used by deploy-site.xml to push to Nexus. This is a
197 # workaround to Maven Site's default linking code which creates
198 # incorrect URLs for sites due to auto-detection assuming your
199 # project is configured in a certain way which ODL is not.
202 maven-version: '{mvn33}'
204 goals: 'site:deploy -Dstream={stream}'
207 settings: '{next-settings}'
208 global-settings: '{odl-global-settings}'
210 maven-version: '{mvn33}'
212 goals: 'site:deploy -Dstream={stream}'
215 settings: '{next-settings}'
216 global-settings: '{odl-global-settings}'
223 artifacts: '**/target/surefire-reports/*-output.txt, '
224 - email-notification:
225 email-prefix: '[next]'
229 deploy-unstable: false
233 name: 'next-periodic-{stream}'
236 # Job template for periodic builders
238 # The purpose of this job template is to setup a periodic
241 # Required Variables:
242 # stream: release stream (eg. stable-lithium or beryllium)
243 # branch: git branch (eg. stable/lithium or master)
252 artifactDaysToKeep: '{build-artifact-days-to-keep}'
253 artifactNumToKeep: '{build-artifact-num-to-keep}'
261 credentials-id: '{ssh-credentials}'
267 - ssh-agent-credentials:
269 - '{ssh-credentials}'
275 - wipe-org-opendaylight-repo
276 - jacoco-nojava-workaround
277 - provide-maven-settings:
278 global-settings-file: '{odl-global-settings}'
279 settings-file: '{next-settings}'
282 maven-name: '{mvn33}'
284 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
285 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
286 settings: '{next-settings}'
287 global-settings: '{odl-global-settings}'
293 - email-notification:
294 email-prefix: '[next]'
298 name: 'next-distribution-{stream}'
300 # Required variables:
301 # stream: release stream (eg. stable-lithium or beryllium)
302 # branch: git branch (eg. stable/lithium or master)
309 daysToKeep: '{build-days-to-keep}'
310 numToKeep: '{build-num-to-keep}'
311 artifactDaysToKeep: '{build-artifact-days-to-keep}'
312 artifactNumToKeep: '{build-artifact-num-to-keep}'
316 project: 'integration/distribution'
320 credentials-id: '{ssh-credentials}'
326 - ssh-agent-credentials:
328 - '{ssh-credentials}'
332 jobs: '{project}-merge-{stream}'
336 - wipe-org-opendaylight-repo
337 - provide-maven-settings:
338 global-settings-file: '{odl-global-settings}'
339 settings-file: '{next-settings}'
342 maven-name: '{mvn33}'
344 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
345 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
346 settings: '{integration-settings}'
347 global-settings: '{odl-global-settings}'
350 - email-notification:
351 email-prefix: '[{project}]'
355 deploy-unstable: false
357 # Template: integration-patch-distribution-{stream}
358 # Goal: Build a patch and make sure the distribution can deploy with this change
359 # Operation: This job template builds a patch, creates a distribution containing
360 # the patch, and triggers the distribution deploy test
363 name: 'next-distribution-check-{stream}'
364 disabled: '{obj:disable_distribution_check}'
374 artifactDaysToKeep: '{build-artifact-days-to-keep}'
375 artifactNumToKeep: '{build-artifact-num-to-keep}'
378 - gerrit-project-parameter:
380 - gerrit-refspec-parameter:
384 - integration-distribution-git-url
387 - integration-gerrit-scm:
388 credentials-id: '{ssh-credentials}'
389 basedir: '$GERRIT_PROJECT'
390 refspec: '$GERRIT_REFSPEC'
392 - integration-distribution-scm:
393 credentials-id: '{ssh-credentials}'
398 - ssh-agent-credentials:
400 - '{ssh-credentials}'
404 server-name: 'OpenDaylight'
406 - patchset-created-event:
407 exclude-drafts: 'true'
408 exclude-trivial-rebase: 'false'
409 exclude-no-code-change: 'true'
410 - draft-published-event
411 - comment-added-contains-event:
412 comment-contains-value: 'test-distribution'
414 - project-compare-type: 'ANT'
415 project-pattern: '{name}'
417 - branch-compare-type: 'ANT'
418 branch-pattern: '**/{branch}'
426 - wipe-org-opendaylight-repo
428 maven-version: '{mvn33}'
429 pom: '$GERRIT_PROJECT/pom.xml'
430 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}'
432 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
433 settings: '{next-settings}'
434 global-settings: '{odl-global-settings}'
437 maven-name: '{mvn33}'
438 root-pom: 'distribution/pom.xml'
439 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
440 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
441 settings: '{next-settings}'
442 global-settings: '{odl-global-settings}'
443 ignore-upstream-changes: true
444 post-step-run-condition: 'SUCCESS'
447 - integration-distribution-check
451 artifacts: 'karaf.log'
453 artifacts: 'karaf_console.log'
454 - email-notification:
455 email-prefix: '[next]'
458 name: 'next-integration-{stream}'
461 # Job template for ODL integration verify jobs
463 # This is similar to a normal verify job, but it runs
464 # when a project that's a dependency of your project
465 # is successfully built.
467 # Required Variables:
468 # stream: release stream (eg. stable-lithium or beryllium)
469 # branch: git branch (eg. stable/lithium or master)
476 daysToKeep: '{build-days-to-keep}'
477 numToKeep: '{build-num-to-keep}'
478 artifactDaysToKeep: '{build-artifact-days-to-keep}'
479 artifactNumToKeep: '{build-artifact-num-to-keep}'
487 credentials-id: '{ssh-credentials}'
493 - ssh-agent-credentials:
495 - '{ssh-credentials}'
499 jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}'
503 - wipe-org-opendaylight-repo
504 - jacoco-nojava-workaround
505 - provide-maven-settings:
506 global-settings-file: '{odl-global-settings}'
507 settings-file: '{next-settings}'
510 maven-name: '{mvn33}'
512 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
513 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
514 settings: '{next-settings}'
515 global-settings: '{odl-global-settings}'
521 - email-notification:
522 email-prefix: '[next] [odlparent] [controller] [yangtools]'
536 artifactDaysToKeep: '1'
537 artifactNumToKeep: '1'
545 credentials-id: '{ssh-credentials}'
551 - ssh-agent-credentials:
553 - '{ssh-credentials}'
557 - gerrit-trigger-patch-sonar:
561 - wipe-org-opendaylight-repo
562 - jacoco-nojava-workaround
563 - provide-maven-settings:
564 global-settings-file: '{odl-global-settings}'
565 settings-file: '{next-settings}'
568 maven-name: '{mvn33}'
570 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
571 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
572 settings: '{next-settings}'
573 global-settings: '{odl-global-settings}'
581 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
582 - email-notification:
583 email-prefix: '[next]'
587 name: 'next-clm-{stream}'
595 daysToKeep: '{build-days-to-keep}'
596 numToKeep: '{build-num-to-keep}'
597 artifactDaysToKeep: '{build-artifact-days-to-keep}'
598 artifactNumToKeep: '{build-artifact-num-to-keep}'
606 credentials-id: '{ssh-credentials}'
612 - ssh-agent-credentials:
614 - '{ssh-credentials}'
620 - wipe-org-opendaylight-repo
621 - provide-maven-settings:
622 global-settings-file: '{odl-global-settings}'
623 settings-file: '{next-settings}'
626 maven-name: '{mvn33}'
628 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'
629 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
630 settings: '{next-settings}'
631 global-settings: '{odl-global-settings}'
634 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
636 application-name: next
639 - email-notification:
640 email-prefix: '[next]'
643 name: 'next-validate-autorelease-{stream}'
644 disabled: '{obj:disable_autorelease}'
652 daysToKeep: '{build-days-to-keep}'
653 numToKeep: '{build-num-to-keep}'
654 artifactDaysToKeep: '{build-artifact-days-to-keep}'
655 artifactNumToKeep: '{build-artifact-num-to-keep}'
662 - autorelease-release-tag:
663 release-tag: 'validate'
664 - autorelease-release-branch:
665 release-branch: '{branch}'
666 - autorelease-release-datestamp:
671 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
680 - autorelease-build-timeout
681 - ssh-agent-credentials:
683 - '{ssh-credentials}'
687 server-name: 'OpenDaylight'
689 - patchset-created-event:
690 exclude-drafts: 'false'
691 exclude-trivial-rebase: 'false'
692 exclude-no-code-change: 'false'
693 - draft-published-event
694 - comment-added-contains-event:
695 comment-contains-value: 'recheck'
696 - comment-added-contains-event:
697 comment-contains-value: 'reverify'
698 - comment-added-contains-event:
699 comment-contains-value: 'revalidate'
701 - project-compare-type: 'ANT'
702 project-pattern: 'next'
704 - branch-compare-type: 'ANT'
705 branch-pattern: '**/{branch}'
708 - wipe-org-opendaylight-repo
709 - jacoco-nojava-workaround
710 - autorelease-checkout-gerrit-patch
711 - autorelease-generate-taglist
712 - autorelease-generate-release-patches
714 maven-version: '{mvn33}'
715 pom: validate-pom.xml
716 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
719 settings: '{autorelease-settings}'
720 global-settings: '{odl-global-settings}'
723 maven-name: '{mvn33}'
725 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
726 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
727 settings: '{autorelease-settings}'
728 global-settings: '{odl-global-settings}'
729 automatic-archiving: false
730 post-step-run-condition: UNSTABLE
733 - shell: "./scripts/list-project-dependencies.sh"
734 - autorelease-sys-stats
739 - email-notification:
740 email-prefix: '[autorelease] [next]'