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}'
87 choosing-strategy: 'default'
90 - opendaylight-infra-wrappers:
91 build-timeout: '{build-timeout}'
95 - gerrit-trigger-patch-merged:
100 - jacoco-nojava-workaround
101 - provide-maven-settings:
102 global-settings-file: 'odl-global-settings'
103 settings-file: 'yangtools-settings'
106 maven-name: '{mvn33}'
108 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
109 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
110 settings: 'yangtools-settings'
112 global-settings: 'odl-global-settings'
113 global-settings-type: cfp
114 post-step-run-condition: UNSTABLE
118 condition-kind: file-exists
119 condition-filename: deploy-site.xml
120 condition-basedir: workspace
122 # The strategy here is intentional to run Maven site:deploy twice
123 # once using regular pom.xml to produce a staged-site which is
124 # then used by deploy-site.xml to push to Nexus. This is a
125 # workaround to Maven Site's default linking code which creates
126 # incorrect URLs for sites due to auto-detection assuming your
127 # project is configured in a certain way which ODL is not.
130 maven-version: '{mvn33}'
132 goals: 'site:deploy -V -B -Dstream={stream}'
135 settings: 'yangtools-settings'
137 global-settings: 'odl-global-settings'
138 global-settings-type: cfp
140 maven-version: '{mvn33}'
142 goals: 'site:deploy -V -B -Dstream={stream}'
145 settings: 'yangtools-settings'
147 global-settings: 'odl-global-settings'
148 global-settings-type: cfp
155 artifacts: '**/target/surefire-reports/*-output.txt, '
156 - email-notification:
157 email-prefix: '[yangtools]'
161 deploy-unstable: false
164 maven-version: '{mvn33}'
167 name: 'yangtools-periodic-{stream}'
170 # Job template for periodic builders
172 # The purpose of this job template is to setup a periodic
175 # Required Variables:
176 # stream: release stream (eg. stable-lithium or beryllium)
177 # branch: git branch (eg. stable/lithium or master)
186 artifactDaysToKeep: '{build-artifact-days-to-keep}'
187 artifactNumToKeep: '{build-artifact-num-to-keep}'
199 - opendaylight-infra-wrappers:
200 build-timeout: '{build-timeout}'
206 - jacoco-nojava-workaround
207 - provide-maven-settings:
208 global-settings-file: 'odl-global-settings'
209 settings-file: 'yangtools-settings'
212 maven-name: '{mvn33}'
214 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
215 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
216 settings: 'yangtools-settings'
218 global-settings: 'odl-global-settings'
219 global-settings-type: cfp
225 - email-notification:
226 email-prefix: '[yangtools]'
229 maven-version: '{mvn33}'
232 name: 'yangtools-distribution-{stream}'
234 # Required variables:
235 # stream: release stream (eg. stable-lithium or beryllium)
236 # branch: git branch (eg. stable/lithium or master)
243 daysToKeep: '{build-days-to-keep}'
244 numToKeep: '{build-num-to-keep}'
245 artifactDaysToKeep: '{build-artifact-days-to-keep}'
246 artifactNumToKeep: '{build-artifact-num-to-keep}'
250 project: 'integration/distribution'
258 - opendaylight-infra-wrappers:
259 build-timeout: '{build-timeout}'
263 jobs: '{project}-merge-{stream}'
267 - provide-maven-settings:
268 global-settings-file: 'odl-global-settings'
269 settings-file: 'yangtools-settings'
272 maven-name: '{mvn33}'
274 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
275 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
276 settings: 'integration-distribution-settings'
278 global-settings: 'odl-global-settings'
279 global-settings-type: cfp
282 - email-notification:
283 email-prefix: '[{project}]'
287 deploy-unstable: false
289 maven-version: '{mvn33}'
291 # Template: integration-patch-distribution-{stream}
292 # Goal: Build a patch and make sure the distribution can deploy with this change
293 # Operation: This job template builds a patch, creates a distribution containing
294 # the patch, and triggers the distribution deploy test
297 name: 'yangtools-distribution-check-{stream}'
298 disabled: '{obj:disable_distribution_check}'
306 daysToKeep: '{build-days-to-keep}'
307 numToKeep: '{build-num-to-keep}'
308 artifactDaysToKeep: '{build-artifact-days-to-keep}'
309 artifactNumToKeep: '{build-artifact-num-to-keep}'
315 refspec: 'refs/heads/{branch}'
318 - integration-distribution-git-url
321 - integration-gerrit-scm:
322 basedir: '$GERRIT_PROJECT'
323 refspec: '$GERRIT_REFSPEC'
325 - integration-distribution-scm:
329 - opendaylight-infra-wrappers:
330 build-timeout: '{build-timeout}'
334 server-name: 'OpenDaylight'
336 - patchset-created-event:
337 exclude-drafts: 'true'
338 exclude-trivial-rebase: 'false'
339 exclude-no-code-change: 'true'
340 - draft-published-event
341 - comment-added-contains-event:
342 comment-contains-value: 'test-distribution'
343 - comment-added-contains-event:
344 comment-contains-value: 'reverify'
345 - comment-added-contains-event:
346 comment-contains-value: 'recheck'
348 - project-compare-type: 'ANT'
349 project-pattern: '{name}'
351 - branch-compare-type: 'ANT'
352 branch-pattern: '**/{branch}'
361 maven-version: '{mvn33}'
362 pom: '$GERRIT_PROJECT/pom.xml'
363 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}'
365 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
366 settings: 'yangtools-settings'
368 global-settings: 'odl-global-settings'
369 global-settings-type: cfp
372 maven-name: '{mvn33}'
373 root-pom: 'distribution/pom.xml'
374 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
375 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
376 settings: 'yangtools-settings'
378 global-settings: 'odl-global-settings'
379 global-settings-type: cfp
380 ignore-upstream-changes: true
381 post-step-run-condition: 'SUCCESS'
384 - integration-distribution-check
387 - email-notification:
388 email-prefix: '[yangtools]'
393 mkdir -p $WORKSPACE/archives
394 cp karaf*.log $WORKSPACE/archives
395 script-only-if-succeeded: False
396 script-only-if-failed: False
397 mark-unstable-if-failed: True
399 maven-version: '{mvn33}'
402 name: 'yangtools-integration-{stream}'
405 # Job template for ODL integration verify jobs
407 # This is similar to a normal verify job, but it runs
408 # when a project that's a dependency of your project
409 # is successfully built.
411 # Required Variables:
412 # stream: release stream (eg. stable-lithium or beryllium)
413 # branch: git branch (eg. stable/lithium or master)
420 daysToKeep: '{build-days-to-keep}'
421 numToKeep: '{build-num-to-keep}'
422 artifactDaysToKeep: '{build-artifact-days-to-keep}'
423 artifactNumToKeep: '{build-artifact-num-to-keep}'
435 - opendaylight-infra-wrappers:
436 build-timeout: '{build-timeout}'
440 jobs: 'odlparent-merge-{stream}'
444 - jacoco-nojava-workaround
445 - provide-maven-settings:
446 global-settings-file: 'odl-global-settings'
447 settings-file: 'yangtools-settings'
450 maven-name: '{mvn33}'
452 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
453 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
454 settings: 'yangtools-settings'
456 global-settings: 'odl-global-settings'
457 global-settings-type: cfp
463 - email-notification:
464 email-prefix: '[yangtools] [odlparent]'
467 maven-version: '{mvn33}'
470 name: 'yangtools-sonar'
480 artifactDaysToKeep: '1'
481 artifactNumToKeep: '1'
493 - opendaylight-infra-wrappers:
494 build-timeout: '{build-timeout}'
498 - gerrit-trigger-patch-sonar:
502 - jacoco-nojava-workaround
503 - provide-maven-settings:
504 global-settings-file: 'odl-global-settings'
505 settings-file: 'yangtools-settings'
508 maven-name: '{mvn33}'
510 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
511 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
512 settings: 'yangtools-settings'
514 global-settings: 'odl-global-settings'
515 global-settings-type: cfp
523 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
524 - email-notification:
525 email-prefix: '[yangtools]'
528 maven-version: '{mvn33}'
531 name: 'yangtools-clm-{stream}'
539 daysToKeep: '{build-days-to-keep}'
540 numToKeep: '{build-num-to-keep}'
541 artifactDaysToKeep: '{build-artifact-days-to-keep}'
542 artifactNumToKeep: '{build-artifact-num-to-keep}'
554 - opendaylight-infra-wrappers:
555 build-timeout: '{build-timeout}'
561 - provide-maven-settings:
562 global-settings-file: 'odl-global-settings'
563 settings-file: 'yangtools-settings'
566 maven-name: '{mvn33}'
568 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'
569 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
570 settings: 'yangtools-settings'
572 global-settings: 'odl-global-settings'
573 global-settings-type: cfp
576 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
578 application-name: yangtools
581 - email-notification:
582 email-prefix: '[yangtools]'
584 maven-version: '{mvn33}'
587 name: 'yangtools-validate-autorelease-{stream}'
588 disabled: '{obj:disable_autorelease}'
596 daysToKeep: '{build-days-to-keep}'
597 numToKeep: '{build-num-to-keep}'
598 artifactDaysToKeep: '{build-artifact-days-to-keep}'
599 artifactNumToKeep: '{build-artifact-num-to-keep}'
607 refspec: 'refs/heads/{branch}'
608 - autorelease-release-tag:
609 release-tag: 'validate'
610 - autorelease-release-branch:
611 release-branch: '{branch}'
614 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
615 description: "Autorelease clone URL"
620 credentials-id: 'opendaylight-jenkins-ssh'
630 - opendaylight-infra-wrappers:
631 build-timeout: '{build-timeout}'
635 server-name: 'OpenDaylight'
637 - patchset-created-event:
638 exclude-drafts: 'true'
639 exclude-trivial-rebase: 'false'
640 exclude-no-code-change: 'true'
641 - draft-published-event
642 - comment-added-contains-event:
643 comment-contains-value: 'recheck'
644 - comment-added-contains-event:
645 comment-contains-value: 'reverify'
646 - comment-added-contains-event:
647 comment-contains-value: 'revalidate'
649 - project-compare-type: 'ANT'
650 project-pattern: 'yangtools'
652 - branch-compare-type: 'ANT'
653 branch-pattern: '**/{branch}'
659 - jacoco-nojava-workaround
660 - autorelease-checkout-gerrit-patch
661 - autorelease-generate-release-patches
663 maven-version: '{mvn33}'
664 pom: validate-pom.xml
665 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'
668 settings: 'autorelease-settings'
670 global-settings: 'odl-global-settings'
671 global-settings-type: cfp
674 maven-name: '{mvn33}'
676 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
677 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
678 settings: 'autorelease-settings'
680 global-settings: 'odl-global-settings'
681 global-settings-type: cfp
682 automatic-archiving: false
683 post-step-run-condition: UNSTABLE
686 - autorelease-sys-stats
689 - email-notification:
690 email-prefix: '[autorelease] [yangtools]'
692 maven-version: '{mvn33}'