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 - 'yangtools-merge-{stream}'
10 - 'yangtools-periodic-{stream}'
11 - 'yangtools-distribution-{stream}'
12 - 'yangtools-distribution-check-{stream}'
13 - 'yangtools-integration-{stream}'
15 - 'yangtools-clm-{stream}'
16 - 'yangtools-validate-autorelease-{stream}'
19 # stream: release stream (eg. stable-lithium or beryllium)
20 # branch: git branch (eg. stable/lithium or master)
27 disable_autorelease: False
28 disable_distribution_check: False
30 branch: 'stable/beryllium'
35 disable_autorelease: False
36 disable_distribution_check: False
38 branch: 'stable/lithium'
43 disable_autorelease: True
44 disable_distribution_check: True
48 # For the Job templates below replace instances of:
49 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
50 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
51 # MAVEN_GOALS with your maven goals to build
52 # MAVEN_OPTS with your maven options to build
55 name: 'yangtools-merge-{stream}'
57 # Job template for ODL merge jobs
59 # The purpose of this job template is to setup a ODL merge job
60 # and deploy artifacts to Nexus.
63 # stream: release stream (eg. stable-lithium or beryllium)
64 # branch: git branch (eg. stable/lithium or master)
73 artifactDaysToKeep: '{build-artifact-days-to-keep}'
74 artifactNumToKeep: '{build-artifact-num-to-keep}'
82 refspec: 'refs/heads/{branch}'
86 credentials-id: '{ssh-credentials}'
88 choosing-strategy: 'default'
92 - ssh-agent-credentials:
98 - gerrit-trigger-patch-merged:
103 - wipe-org-opendaylight-repo
104 - jacoco-nojava-workaround
105 - provide-maven-settings:
106 global-settings-file: 'odl-global-settings'
107 settings-file: 'yangtools-settings'
110 maven-name: '{mvn33}'
112 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
113 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
114 settings: 'yangtools-settings'
116 global-settings: 'odl-global-settings'
117 global-settings-type: cfp
118 post-step-run-condition: UNSTABLE
122 condition-kind: file-exists
123 condition-filename: deploy-site.xml
124 condition-basedir: workspace
126 # The strategy here is intentional to run Maven site:deploy twice
127 # once using regular pom.xml to produce a staged-site which is
128 # then used by deploy-site.xml to push to Nexus. This is a
129 # workaround to Maven Site's default linking code which creates
130 # incorrect URLs for sites due to auto-detection assuming your
131 # project is configured in a certain way which ODL is not.
134 maven-version: '{mvn33}'
136 goals: 'site:deploy -V -B -Dstream={stream}'
139 settings: 'yangtools-settings'
141 global-settings: 'odl-global-settings'
142 global-settings-type: cfp
144 maven-version: '{mvn33}'
146 goals: 'site:deploy -V -B -Dstream={stream}'
149 settings: 'yangtools-settings'
151 global-settings: 'odl-global-settings'
152 global-settings-type: cfp
159 artifacts: '**/target/surefire-reports/*-output.txt, '
160 - email-notification:
161 email-prefix: '[yangtools]'
165 deploy-unstable: false
168 maven-version: '{mvn33}'
171 name: 'yangtools-periodic-{stream}'
174 # Job template for periodic builders
176 # The purpose of this job template is to setup a periodic
179 # Required Variables:
180 # stream: release stream (eg. stable-lithium or beryllium)
181 # branch: git branch (eg. stable/lithium or master)
190 artifactDaysToKeep: '{build-artifact-days-to-keep}'
191 artifactNumToKeep: '{build-artifact-num-to-keep}'
199 credentials-id: '{ssh-credentials}'
205 - ssh-agent-credentials:
207 - '{ssh-credentials}'
213 - wipe-org-opendaylight-repo
214 - jacoco-nojava-workaround
215 - provide-maven-settings:
216 global-settings-file: 'odl-global-settings'
217 settings-file: 'yangtools-settings'
220 maven-name: '{mvn33}'
222 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
223 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
224 settings: 'yangtools-settings'
226 global-settings: 'odl-global-settings'
227 global-settings-type: cfp
233 - email-notification:
234 email-prefix: '[yangtools]'
237 maven-version: '{mvn33}'
240 name: 'yangtools-distribution-{stream}'
242 # Required variables:
243 # stream: release stream (eg. stable-lithium or beryllium)
244 # branch: git branch (eg. stable/lithium or master)
251 daysToKeep: '{build-days-to-keep}'
252 numToKeep: '{build-num-to-keep}'
253 artifactDaysToKeep: '{build-artifact-days-to-keep}'
254 artifactNumToKeep: '{build-artifact-num-to-keep}'
258 project: 'integration/distribution'
262 credentials-id: '{ssh-credentials}'
268 - ssh-agent-credentials:
270 - '{ssh-credentials}'
274 jobs: '{project}-merge-{stream}'
278 - wipe-org-opendaylight-repo
279 - provide-maven-settings:
280 global-settings-file: 'odl-global-settings'
281 settings-file: 'yangtools-settings'
284 maven-name: '{mvn33}'
286 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
287 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
288 settings: 'integration-distribution-settings'
290 global-settings: 'odl-global-settings'
291 global-settings-type: cfp
294 - email-notification:
295 email-prefix: '[{project}]'
299 deploy-unstable: false
301 maven-version: '{mvn33}'
303 # Template: integration-patch-distribution-{stream}
304 # Goal: Build a patch and make sure the distribution can deploy with this change
305 # Operation: This job template builds a patch, creates a distribution containing
306 # the patch, and triggers the distribution deploy test
309 name: 'yangtools-distribution-check-{stream}'
310 disabled: '{obj:disable_distribution_check}'
318 daysToKeep: '{build-days-to-keep}'
319 numToKeep: '{build-num-to-keep}'
320 artifactDaysToKeep: '{build-artifact-days-to-keep}'
321 artifactNumToKeep: '{build-artifact-num-to-keep}'
327 refspec: 'refs/heads/{branch}'
330 - integration-distribution-git-url
333 - integration-gerrit-scm:
334 credentials-id: '{ssh-credentials}'
335 basedir: '$GERRIT_PROJECT'
336 refspec: '$GERRIT_REFSPEC'
338 - integration-distribution-scm:
339 credentials-id: '{ssh-credentials}'
344 - ssh-agent-credentials:
346 - '{ssh-credentials}'
350 server-name: 'OpenDaylight'
352 - patchset-created-event:
353 exclude-drafts: 'true'
354 exclude-trivial-rebase: 'false'
355 exclude-no-code-change: 'true'
356 - draft-published-event
357 - comment-added-contains-event:
358 comment-contains-value: 'test-distribution'
359 - comment-added-contains-event:
360 comment-contains-value: 'reverify'
361 - comment-added-contains-event:
362 comment-contains-value: 'recheck'
364 - project-compare-type: 'ANT'
365 project-pattern: '{name}'
367 - branch-compare-type: 'ANT'
368 branch-pattern: '**/{branch}'
376 - wipe-org-opendaylight-repo
378 maven-version: '{mvn33}'
379 pom: '$GERRIT_PROJECT/pom.xml'
380 goals: 'clean install -V -B -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}'
382 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
383 settings: 'yangtools-settings'
385 global-settings: 'odl-global-settings'
386 global-settings-type: cfp
389 maven-name: '{mvn33}'
390 root-pom: 'distribution/pom.xml'
391 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
392 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
393 settings: 'yangtools-settings'
395 global-settings: 'odl-global-settings'
396 global-settings-type: cfp
397 ignore-upstream-changes: true
398 post-step-run-condition: 'SUCCESS'
401 - integration-distribution-check
405 artifacts: 'karaf.log'
407 artifacts: 'karaf_console.log'
408 - email-notification:
409 email-prefix: '[yangtools]'
411 maven-version: '{mvn33}'
414 name: 'yangtools-integration-{stream}'
417 # Job template for ODL integration verify jobs
419 # This is similar to a normal verify job, but it runs
420 # when a project that's a dependency of your project
421 # is successfully built.
423 # Required Variables:
424 # stream: release stream (eg. stable-lithium or beryllium)
425 # branch: git branch (eg. stable/lithium or master)
432 daysToKeep: '{build-days-to-keep}'
433 numToKeep: '{build-num-to-keep}'
434 artifactDaysToKeep: '{build-artifact-days-to-keep}'
435 artifactNumToKeep: '{build-artifact-num-to-keep}'
443 credentials-id: '{ssh-credentials}'
449 - ssh-agent-credentials:
451 - '{ssh-credentials}'
455 jobs: 'odlparent-merge-{stream}'
459 - wipe-org-opendaylight-repo
460 - jacoco-nojava-workaround
461 - provide-maven-settings:
462 global-settings-file: 'odl-global-settings'
463 settings-file: 'yangtools-settings'
466 maven-name: '{mvn33}'
468 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
469 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
470 settings: 'yangtools-settings'
472 global-settings: 'odl-global-settings'
473 global-settings-type: cfp
479 - email-notification:
480 email-prefix: '[yangtools] [odlparent]'
483 maven-version: '{mvn33}'
486 name: 'yangtools-sonar'
496 artifactDaysToKeep: '1'
497 artifactNumToKeep: '1'
505 credentials-id: '{ssh-credentials}'
511 - ssh-agent-credentials:
513 - '{ssh-credentials}'
517 - gerrit-trigger-patch-sonar:
521 - wipe-org-opendaylight-repo
522 - jacoco-nojava-workaround
523 - provide-maven-settings:
524 global-settings-file: 'odl-global-settings'
525 settings-file: 'yangtools-settings'
528 maven-name: '{mvn33}'
530 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
531 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
532 settings: 'yangtools-settings'
534 global-settings: 'odl-global-settings'
535 global-settings-type: cfp
543 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
544 - email-notification:
545 email-prefix: '[yangtools]'
548 maven-version: '{mvn33}'
551 name: 'yangtools-clm-{stream}'
559 daysToKeep: '{build-days-to-keep}'
560 numToKeep: '{build-num-to-keep}'
561 artifactDaysToKeep: '{build-artifact-days-to-keep}'
562 artifactNumToKeep: '{build-artifact-num-to-keep}'
570 credentials-id: '{ssh-credentials}'
576 - ssh-agent-credentials:
578 - '{ssh-credentials}'
584 - wipe-org-opendaylight-repo
585 - provide-maven-settings:
586 global-settings-file: 'odl-global-settings'
587 settings-file: 'yangtools-settings'
590 maven-name: '{mvn33}'
592 goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
593 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
594 settings: 'yangtools-settings'
596 global-settings: 'odl-global-settings'
597 global-settings-type: cfp
600 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
602 application-name: yangtools
605 - email-notification:
606 email-prefix: '[yangtools]'
608 maven-version: '{mvn33}'
611 name: 'yangtools-validate-autorelease-{stream}'
612 disabled: '{obj:disable_autorelease}'
620 daysToKeep: '{build-days-to-keep}'
621 numToKeep: '{build-num-to-keep}'
622 artifactDaysToKeep: '{build-artifact-days-to-keep}'
623 artifactNumToKeep: '{build-artifact-num-to-keep}'
631 refspec: 'refs/heads/{branch}'
632 - autorelease-release-tag:
633 release-tag: 'validate'
634 - autorelease-release-branch:
635 release-branch: '{branch}'
638 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
639 description: "Autorelease clone URL"
644 credentials-id: '{ssh-credentials}'
654 - autorelease-build-timeout
655 - ssh-agent-credentials:
657 - '{ssh-credentials}'
661 server-name: 'OpenDaylight'
663 - patchset-created-event:
664 exclude-drafts: 'true'
665 exclude-trivial-rebase: 'false'
666 exclude-no-code-change: 'true'
667 - draft-published-event
668 - comment-added-contains-event:
669 comment-contains-value: 'recheck'
670 - comment-added-contains-event:
671 comment-contains-value: 'reverify'
672 - comment-added-contains-event:
673 comment-contains-value: 'revalidate'
675 - project-compare-type: 'ANT'
676 project-pattern: 'yangtools'
678 - branch-compare-type: 'ANT'
679 branch-pattern: '**/{branch}'
685 - wipe-org-opendaylight-repo
686 - jacoco-nojava-workaround
687 - autorelease-checkout-gerrit-patch
688 - autorelease-generate-release-patches
690 maven-version: '{mvn33}'
691 pom: validate-pom.xml
692 goals: 'clean install -V -B -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
695 settings: 'autorelease-settings'
697 global-settings: 'odl-global-settings'
698 global-settings-type: cfp
701 maven-name: '{mvn33}'
703 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
704 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
705 settings: 'autorelease-settings'
707 global-settings: 'odl-global-settings'
708 global-settings-type: cfp
709 automatic-archiving: false
710 post-step-run-condition: UNSTABLE
713 - autorelease-sys-stats
716 - email-notification:
717 email-prefix: '[autorelease] [yangtools]'
719 maven-version: '{mvn33}'