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 - 'armoury-verify-{stream}'
10 - 'armoury-merge-{stream}'
11 - 'armoury-periodic-{stream}'
12 - 'armoury-distribution-{stream}'
13 - 'armoury-distribution-check-{stream}'
14 - 'armoury-integration-{stream}'
16 - 'armoury-clm-{stream}'
17 - 'armoury-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
29 disable_autorelease: True
30 disable_distribution_check: False
32 branch: 'stable/beryllium'
37 disable_autorelease: True
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: 'armoury-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: '{armoury-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 - '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
116 settings: '{armoury-settings}'
117 global-settings: '{odl-global-settings}'
121 artifacts: '**/target/surefire-reports/*-output.txt, '
123 - email-notification:
124 email-prefix: '[armoury]'
128 name: 'armoury-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: '{armoury-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: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
187 settings: '{armoury-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: '{armoury-settings}'
211 global-settings: '{odl-global-settings}'
213 maven-version: '{mvn33}'
215 goals: 'site:deploy -Dstream={stream}'
218 settings: '{armoury-settings}'
219 global-settings: '{odl-global-settings}'
226 artifacts: '**/target/surefire-reports/*-output.txt, '
227 - email-notification:
228 email-prefix: '[armoury]'
232 deploy-unstable: false
236 name: 'armoury-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: '{armoury-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: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
289 settings: '{armoury-settings}'
290 global-settings: '{odl-global-settings}'
296 - email-notification:
297 email-prefix: '[armoury]'
301 name: 'armoury-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: '{armoury-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: 'armoury-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'
416 - comment-added-contains-event:
417 comment-contains-value: 'reverify'
418 - comment-added-contains-event:
419 comment-contains-value: 'recheck'
421 - project-compare-type: 'ANT'
422 project-pattern: '{name}'
424 - branch-compare-type: 'ANT'
425 branch-pattern: '**/{branch}'
433 - wipe-org-opendaylight-repo
435 maven-version: '{mvn33}'
436 pom: '$GERRIT_PROJECT/pom.xml'
437 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}'
439 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
440 settings: '{armoury-settings}'
441 global-settings: '{odl-global-settings}'
444 maven-name: '{mvn33}'
445 root-pom: 'distribution/pom.xml'
446 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
447 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
448 settings: '{armoury-settings}'
449 global-settings: '{odl-global-settings}'
450 ignore-upstream-changes: true
451 post-step-run-condition: 'SUCCESS'
454 - integration-distribution-check
458 artifacts: 'karaf.log'
460 artifacts: 'karaf_console.log'
461 - email-notification:
462 email-prefix: '[armoury]'
465 name: 'armoury-integration-{stream}'
468 # Job template for ODL integration verify jobs
470 # This is similar to a normal verify job, but it runs
471 # when a project that's a dependency of your project
472 # is successfully built.
474 # Required Variables:
475 # stream: release stream (eg. stable-lithium or beryllium)
476 # branch: git branch (eg. stable/lithium or master)
483 daysToKeep: '{build-days-to-keep}'
484 numToKeep: '{build-num-to-keep}'
485 artifactDaysToKeep: '{build-artifact-days-to-keep}'
486 artifactNumToKeep: '{build-artifact-num-to-keep}'
494 credentials-id: '{ssh-credentials}'
500 - ssh-agent-credentials:
502 - '{ssh-credentials}'
506 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream}'
510 - wipe-org-opendaylight-repo
511 - jacoco-nojava-workaround
512 - provide-maven-settings:
513 global-settings-file: '{odl-global-settings}'
514 settings-file: '{armoury-settings}'
517 maven-name: '{mvn33}'
519 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
520 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
521 settings: '{armoury-settings}'
522 global-settings: '{odl-global-settings}'
528 - email-notification:
529 email-prefix: '[armoury] [odlparent] [yangtools] [controller] [mdsal]'
533 name: 'armoury-sonar'
543 artifactDaysToKeep: '1'
544 artifactNumToKeep: '1'
552 credentials-id: '{ssh-credentials}'
558 - ssh-agent-credentials:
560 - '{ssh-credentials}'
564 - gerrit-trigger-patch-sonar:
568 - wipe-org-opendaylight-repo
569 - jacoco-nojava-workaround
570 - provide-maven-settings:
571 global-settings-file: '{odl-global-settings}'
572 settings-file: '{armoury-settings}'
575 maven-name: '{mvn33}'
577 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
578 maven-opts: '-Xmx2048m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
579 settings: '{armoury-settings}'
580 global-settings: '{odl-global-settings}'
588 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
589 - email-notification:
590 email-prefix: '[armoury]'
594 name: 'armoury-clm-{stream}'
602 daysToKeep: '{build-days-to-keep}'
603 numToKeep: '{build-num-to-keep}'
604 artifactDaysToKeep: '{build-artifact-days-to-keep}'
605 artifactNumToKeep: '{build-artifact-num-to-keep}'
613 credentials-id: '{ssh-credentials}'
619 - ssh-agent-credentials:
621 - '{ssh-credentials}'
627 - wipe-org-opendaylight-repo
628 - provide-maven-settings:
629 global-settings-file: '{odl-global-settings}'
630 settings-file: '{armoury-settings}'
633 maven-name: '{mvn33}'
635 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'
636 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
637 settings: '{armoury-settings}'
638 global-settings: '{odl-global-settings}'
641 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
643 application-name: armoury
646 - email-notification:
647 email-prefix: '[armoury]'
650 name: 'armoury-validate-autorelease-{stream}'
651 disabled: '{obj:disable_autorelease}'
659 daysToKeep: '{build-days-to-keep}'
660 numToKeep: '{build-num-to-keep}'
661 artifactDaysToKeep: '{build-artifact-days-to-keep}'
662 artifactNumToKeep: '{build-artifact-num-to-keep}'
669 - autorelease-release-tag:
670 release-tag: 'validate'
671 - autorelease-release-branch:
672 release-branch: '{branch}'
673 - autorelease-release-datestamp:
677 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
678 description: "Autorelease clone URL"
693 - autorelease-build-timeout
694 - ssh-agent-credentials:
696 - '{ssh-credentials}'
700 server-name: 'OpenDaylight'
702 - patchset-created-event:
703 exclude-drafts: 'false'
704 exclude-trivial-rebase: 'false'
705 exclude-no-code-change: 'false'
706 - draft-published-event
707 - comment-added-contains-event:
708 comment-contains-value: 'recheck'
709 - comment-added-contains-event:
710 comment-contains-value: 'reverify'
711 - comment-added-contains-event:
712 comment-contains-value: 'revalidate'
714 - project-compare-type: 'ANT'
715 project-pattern: 'armoury'
717 - branch-compare-type: 'ANT'
718 branch-pattern: '**/{branch}'
724 - wipe-org-opendaylight-repo
725 - jacoco-nojava-workaround
726 - autorelease-checkout-gerrit-patch
727 - autorelease-generate-release-patches
729 maven-version: '{mvn33}'
730 pom: validate-pom.xml
731 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
734 settings: '{autorelease-settings}'
735 global-settings: '{odl-global-settings}'
738 maven-name: '{mvn33}'
740 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
741 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
742 settings: '{autorelease-settings}'
743 global-settings: '{odl-global-settings}'
744 automatic-archiving: false
745 post-step-run-condition: UNSTABLE
748 - autorelease-sys-stats
751 - email-notification:
752 email-prefix: '[autorelease] [armoury]'