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 - 'of-config-verify-{stream}'
10 - 'of-config-merge-{stream}'
11 - 'of-config-periodic-{stream}'
12 - 'of-config-distribution-{stream}'
13 - 'of-config-distribution-check-{stream}'
14 - 'of-config-integration-{stream}'
16 - 'of-config-clm-{stream}'
17 - 'of-config-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
29 disable_autorelease: False
30 disable_distribution_check: False
32 branch: 'stable/beryllium'
37 disable_autorelease: False
38 disable_distribution_check: False
42 # For the Job templates below replace instances of:
43 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
44 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
45 # MAVEN_GOALS with your maven goals to build
46 # MAVEN_OPTS with your maven options to build
49 name: 'of-config-verify-{stream}'
51 # Job template for ODL verify jobs
53 # The purpose of this job template is to setup a ODL verify job
56 # stream: release stream (eg. stable-lithium or beryllium)
57 # branch: git branch (eg. stable/lithium or master)
74 daysToKeep: '{build-days-to-keep}'
75 numToKeep: '{build-num-to-keep}'
76 artifactDaysToKeep: '{build-artifact-days-to-keep}'
77 artifactNumToKeep: '{build-artifact-num-to-keep}'
84 - gerrit-refspec-parameter:
85 refspec: 'refs/heads/{branch}'
89 credentials-id: '{ssh-credentials}'
90 refspec: '$GERRIT_REFSPEC'
91 choosing-strategy: 'gerrit'
95 - ssh-agent-credentials:
100 - gerrit-trigger-patch-submitted:
105 - wipe-org-opendaylight-repo
106 - jacoco-nojava-workaround
107 - provide-maven-settings:
108 global-settings-file: '{odl-global-settings}'
109 settings-file: '{of-config-settings}'
111 maven-version: '{mvn33}'
113 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
115 - '-Xmx1024m -XX:MaxPermSize=256m'
116 settings: '{of-config-settings}'
117 global-settings: '{odl-global-settings}'
121 artifacts: '**/target/surefire-reports/*-output.txt, '
123 - email-notification:
124 email-prefix: '[of-config]'
128 name: 'of-config-merge-{stream}'
130 # Job template for ODL merge jobs
132 # The purpose of this job template is to setup a ODL merge job
133 # and deploy artifacts to Nexus.
135 # Required Variables:
136 # stream: release stream (eg. stable-lithium or beryllium)
137 # branch: git branch (eg. stable/lithium or master)
146 artifactDaysToKeep: '{build-artifact-days-to-keep}'
147 artifactNumToKeep: '{build-artifact-num-to-keep}'
154 - gerrit-refspec-parameter:
155 refspec: 'refs/heads/{branch}'
158 - gerrit-trigger-scm:
159 credentials-id: '{ssh-credentials}'
161 choosing-strategy: 'default'
165 - ssh-agent-credentials:
167 - '{ssh-credentials}'
171 - gerrit-trigger-patch-merged:
176 - wipe-org-opendaylight-repo
177 - jacoco-nojava-workaround
178 - provide-maven-settings:
179 global-settings-file: '{odl-global-settings}'
180 settings-file: '{of-config-settings}'
183 maven-name: '{mvn33}'
185 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
186 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
187 settings: '{of-config-settings}'
188 global-settings: '{odl-global-settings}'
189 post-step-run-condition: UNSTABLE
193 condition-kind: file-exists
194 condition-filename: deploy-site.xml
195 condition-basedir: workspace
197 # The strategy here is intentional to run Maven site:deploy twice
198 # once using regular pom.xml to produce a staged-site which is
199 # then used by deploy-site.xml to push to Nexus. This is a
200 # workaround to Maven Site's default linking code which creates
201 # incorrect URLs for sites due to auto-detection assuming your
202 # project is configured in a certain way which ODL is not.
205 maven-version: '{mvn33}'
207 goals: 'site:deploy -Dstream={stream}'
210 settings: '{of-config-settings}'
211 global-settings: '{odl-global-settings}'
213 maven-version: '{mvn33}'
215 goals: 'site:deploy -Dstream={stream}'
218 settings: '{of-config-settings}'
219 global-settings: '{odl-global-settings}'
226 artifacts: '**/target/surefire-reports/*-output.txt, '
227 - email-notification:
228 email-prefix: '[of-config]'
232 deploy-unstable: false
236 name: 'of-config-periodic-{stream}'
239 # Job template for periodic builders
241 # The purpose of this job template is to setup a periodic
244 # Required Variables:
245 # stream: release stream (eg. stable-lithium or beryllium)
246 # branch: git branch (eg. stable/lithium or master)
255 artifactDaysToKeep: '{build-artifact-days-to-keep}'
256 artifactNumToKeep: '{build-artifact-num-to-keep}'
264 credentials-id: '{ssh-credentials}'
270 - ssh-agent-credentials:
272 - '{ssh-credentials}'
278 - wipe-org-opendaylight-repo
279 - jacoco-nojava-workaround
280 - provide-maven-settings:
281 global-settings-file: '{odl-global-settings}'
282 settings-file: '{of-config-settings}'
285 maven-name: '{mvn33}'
287 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
288 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
289 settings: '{of-config-settings}'
290 global-settings: '{odl-global-settings}'
296 - email-notification:
297 email-prefix: '[of-config]'
301 name: 'of-config-distribution-{stream}'
303 # Required variables:
304 # stream: release stream (eg. stable-lithium or beryllium)
305 # branch: git branch (eg. stable/lithium or master)
312 daysToKeep: '{build-days-to-keep}'
313 numToKeep: '{build-num-to-keep}'
314 artifactDaysToKeep: '{build-artifact-days-to-keep}'
315 artifactNumToKeep: '{build-artifact-num-to-keep}'
319 project: 'integration/distribution'
323 credentials-id: '{ssh-credentials}'
329 - ssh-agent-credentials:
331 - '{ssh-credentials}'
335 jobs: '{project}-merge-{stream}'
339 - wipe-org-opendaylight-repo
340 - provide-maven-settings:
341 global-settings-file: '{odl-global-settings}'
342 settings-file: '{of-config-settings}'
345 maven-name: '{mvn33}'
347 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
348 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
349 settings: '{integration-settings}'
350 global-settings: '{odl-global-settings}'
353 - email-notification:
354 email-prefix: '[{project}]'
358 deploy-unstable: false
360 # Template: integration-patch-distribution-{stream}
361 # Goal: Build a patch and make sure the distribution can deploy with this change
362 # Operation: This job template builds a patch, creates a distribution containing
363 # the patch, and triggers the distribution deploy test
366 name: 'of-config-distribution-check-{stream}'
367 disabled: '{obj:disable_distribution_check}'
377 artifactDaysToKeep: '{build-artifact-days-to-keep}'
378 artifactNumToKeep: '{build-artifact-num-to-keep}'
381 - gerrit-project-parameter:
383 - gerrit-refspec-parameter:
387 - integration-distribution-git-url
390 - integration-gerrit-scm:
391 credentials-id: '{ssh-credentials}'
392 basedir: '$GERRIT_PROJECT'
393 refspec: '$GERRIT_REFSPEC'
395 - integration-distribution-scm:
396 credentials-id: '{ssh-credentials}'
401 - ssh-agent-credentials:
403 - '{ssh-credentials}'
407 server-name: 'OpenDaylight'
409 - patchset-created-event:
410 exclude-drafts: 'true'
411 exclude-trivial-rebase: 'false'
412 exclude-no-code-change: 'true'
413 - draft-published-event
414 - comment-added-contains-event:
415 comment-contains-value: 'test-distribution'
417 - project-compare-type: 'ANT'
418 project-pattern: '{name}'
420 - branch-compare-type: 'ANT'
421 branch-pattern: '**/{branch}'
429 - wipe-org-opendaylight-repo
431 maven-version: '{mvn33}'
432 pom: '$GERRIT_PROJECT/pom.xml'
433 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}'
435 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
436 settings: '{of-config-settings}'
437 global-settings: '{odl-global-settings}'
440 maven-name: '{mvn33}'
441 root-pom: 'distribution/pom.xml'
442 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
443 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
444 settings: '{of-config-settings}'
445 global-settings: '{odl-global-settings}'
446 ignore-upstream-changes: true
447 post-step-run-condition: 'SUCCESS'
450 - integration-distribution-check
454 artifacts: 'karaf.log'
456 artifacts: 'karaf_console.log'
457 - email-notification:
458 email-prefix: '[of-config]'
461 name: 'of-config-integration-{stream}'
464 # Job template for ODL integration verify jobs
466 # This is similar to a normal verify job, but it runs
467 # when a project that's a dependency of your project
468 # is successfully built.
470 # Required Variables:
471 # stream: release stream (eg. stable-lithium or beryllium)
472 # branch: git branch (eg. stable/lithium or master)
479 daysToKeep: '{build-days-to-keep}'
480 numToKeep: '{build-num-to-keep}'
481 artifactDaysToKeep: '{build-artifact-days-to-keep}'
482 artifactNumToKeep: '{build-artifact-num-to-keep}'
490 credentials-id: '{ssh-credentials}'
496 - ssh-agent-credentials:
498 - '{ssh-credentials}'
502 jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},netconf-merge-{stream}'
506 - wipe-org-opendaylight-repo
507 - jacoco-nojava-workaround
508 - provide-maven-settings:
509 global-settings-file: '{odl-global-settings}'
510 settings-file: '{of-config-settings}'
513 maven-name: '{mvn33}'
515 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
516 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
517 settings: '{of-config-settings}'
518 global-settings: '{odl-global-settings}'
524 - email-notification:
525 email-prefix: '[of-config] [controller] [yangtools] [odlparent] [netconf]'
529 name: 'of-config-sonar'
539 artifactDaysToKeep: '1'
540 artifactNumToKeep: '1'
548 credentials-id: '{ssh-credentials}'
554 - ssh-agent-credentials:
556 - '{ssh-credentials}'
560 - gerrit-trigger-patch-sonar:
564 - wipe-org-opendaylight-repo
565 - jacoco-nojava-workaround
566 - provide-maven-settings:
567 global-settings-file: '{odl-global-settings}'
568 settings-file: '{of-config-settings}'
571 maven-name: '{mvn33}'
573 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
574 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
575 settings: '{of-config-settings}'
576 global-settings: '{odl-global-settings}'
584 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
585 - email-notification:
586 email-prefix: '[of-config]'
590 name: 'of-config-clm-{stream}'
598 daysToKeep: '{build-days-to-keep}'
599 numToKeep: '{build-num-to-keep}'
600 artifactDaysToKeep: '{build-artifact-days-to-keep}'
601 artifactNumToKeep: '{build-artifact-num-to-keep}'
609 credentials-id: '{ssh-credentials}'
615 - ssh-agent-credentials:
617 - '{ssh-credentials}'
623 - wipe-org-opendaylight-repo
624 - provide-maven-settings:
625 global-settings-file: '{odl-global-settings}'
626 settings-file: '{of-config-settings}'
629 maven-name: '{mvn33}'
631 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'
632 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
633 settings: '{of-config-settings}'
634 global-settings: '{odl-global-settings}'
637 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
639 application-name: of-config
642 - email-notification:
643 email-prefix: '[of-config]'
646 name: 'of-config-validate-autorelease-{stream}'
647 disabled: '{obj:disable_autorelease}'
655 daysToKeep: '{build-days-to-keep}'
656 numToKeep: '{build-num-to-keep}'
657 artifactDaysToKeep: '{build-artifact-days-to-keep}'
658 artifactNumToKeep: '{build-artifact-num-to-keep}'
665 - autorelease-release-tag:
666 release-tag: 'validate'
667 - autorelease-release-branch:
668 release-branch: '{branch}'
669 - autorelease-release-datestamp:
674 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
683 - autorelease-build-timeout
684 - ssh-agent-credentials:
686 - '{ssh-credentials}'
690 server-name: 'OpenDaylight'
692 - patchset-created-event:
693 exclude-drafts: 'false'
694 exclude-trivial-rebase: 'false'
695 exclude-no-code-change: 'false'
696 - draft-published-event
697 - comment-added-contains-event:
698 comment-contains-value: 'recheck'
699 - comment-added-contains-event:
700 comment-contains-value: 'reverify'
701 - comment-added-contains-event:
702 comment-contains-value: 'revalidate'
704 - project-compare-type: 'ANT'
705 project-pattern: 'of-config'
707 - branch-compare-type: 'ANT'
708 branch-pattern: '**/{branch}'
711 - wipe-org-opendaylight-repo
712 - jacoco-nojava-workaround
713 - autorelease-checkout-gerrit-patch
714 - autorelease-generate-taglist
715 - autorelease-generate-release-patches
717 maven-version: '{mvn33}'
718 pom: validate-pom.xml
719 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
722 settings: '{autorelease-settings}'
723 global-settings: '{odl-global-settings}'
726 maven-name: '{mvn33}'
728 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
729 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
730 settings: '{autorelease-settings}'
731 global-settings: '{odl-global-settings}'
732 automatic-archiving: false
733 post-step-run-condition: UNSTABLE
736 - shell: "./scripts/list-project-dependencies.sh"
737 - autorelease-sys-stats
742 - email-notification:
743 email-prefix: '[autorelease] [of-config]'