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-integration-{stream}'
14 - 'yangtools-clm-{stream}'
15 - 'yangtools-validate-autorelease-{stream}'
18 # stream: release stream (eg. stable-lithium or beryllium)
19 # branch: git branch (eg. stable/lithium or master)
26 disable_autorelease: False
28 branch: 'stable/beryllium'
33 disable_autorelease: False
35 branch: 'stable/lithium'
40 disable_autorelease: True
42 branch: 'stable/helium'
46 disable_autorelease: True
50 # For the Job templates below replace instances of:
51 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
52 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
53 # MAVEN_GOALS with your maven goals to build
54 # MAVEN_OPTS with your maven options to build
57 name: 'yangtools-merge-{stream}'
59 # Job template for ODL merge jobs
61 # The purpose of this job template is to setup a ODL merge job
62 # and deploy artifacts to Nexus.
65 # stream: release stream (eg. stable-lithium or beryllium)
66 # 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}'
90 choosing-strategy: 'default'
94 - ssh-agent-credentials:
100 - gerrit-trigger-patch-merged:
105 - wipe-org-opendaylight-repo
106 - jacoco-nojava-workaround
107 - provide-maven-settings:
108 global-settings-file: '{odl-global-settings}'
109 settings-file: '{yangtools-settings}'
112 maven-name: '{mvn33}'
114 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
115 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
116 settings: '{yangtools-settings}'
117 global-settings: '{odl-global-settings}'
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 -Dstream={stream}'
139 settings: '{yangtools-settings}'
140 global-settings: '{odl-global-settings}'
142 maven-version: '{mvn33}'
144 goals: 'site:deploy -Dstream={stream}'
147 settings: '{yangtools-settings}'
148 global-settings: '{odl-global-settings}'
155 artifacts: '**/target/surefire-reports/*-output.txt, '
156 - email-notification:
157 email-prefix: '[yangtools]'
161 deploy-unstable: false
165 name: 'yangtools-periodic-{stream}'
167 # Job template for periodic builders
169 # The purpose of this job template is to setup a periodic
172 # Required Variables:
173 # stream: release stream (eg. stable-lithium or beryllium)
174 # branch: git branch (eg. stable/lithium or master)
181 daysToKeep: '{build-days-to-keep}'
182 numToKeep: '{build-num-to-keep}'
183 artifactDaysToKeep: '{build-artifact-days-to-keep}'
184 artifactNumToKeep: '{build-artifact-num-to-keep}'
192 credentials-id: '{ssh-credentials}'
198 - ssh-agent-credentials:
200 - '{ssh-credentials}'
206 - wipe-org-opendaylight-repo
207 - jacoco-nojava-workaround
208 - provide-maven-settings:
209 global-settings-file: '{odl-global-settings}'
210 settings-file: '{yangtools-settings}'
213 maven-name: '{mvn33}'
215 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
216 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
217 settings: '{yangtools-settings}'
218 global-settings: '{odl-global-settings}'
224 - email-notification:
225 email-prefix: '[yangtools]'
229 name: 'yangtools-distribution-{stream}'
231 # Required variables:
232 # stream: release stream (eg. stable-lithium or beryllium)
233 # branch: git branch (eg. stable/lithium or master)
240 daysToKeep: '{build-days-to-keep}'
241 numToKeep: '{build-num-to-keep}'
242 artifactDaysToKeep: '{build-artifact-days-to-keep}'
243 artifactNumToKeep: '{build-artifact-num-to-keep}'
247 project: 'integration/distribution'
251 credentials-id: '{ssh-credentials}'
257 - ssh-agent-credentials:
259 - '{ssh-credentials}'
263 jobs: '{project}-merge-{stream}'
267 - wipe-org-opendaylight-repo
268 - provide-maven-settings:
269 global-settings-file: '{odl-global-settings}'
270 settings-file: '{yangtools-settings}'
273 maven-name: '{mvn33}'
275 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
276 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
277 settings: '{integration-settings}'
278 global-settings: '{odl-global-settings}'
281 - email-notification:
282 email-prefix: '[{project}]'
286 deploy-unstable: false
289 name: 'yangtools-integration-{stream}'
292 # Job template for ODL integration verify jobs
294 # This is similar to a normal verify job, but it runs
295 # when a project that's a dependency of your project
296 # is successfully built.
298 # Required Variables:
299 # stream: release stream (eg. stable-lithium or beryllium)
300 # branch: git branch (eg. stable/lithium or master)
307 daysToKeep: '{build-days-to-keep}'
308 numToKeep: '{build-num-to-keep}'
309 artifactDaysToKeep: '{build-artifact-days-to-keep}'
310 artifactNumToKeep: '{build-artifact-num-to-keep}'
318 credentials-id: '{ssh-credentials}'
324 - ssh-agent-credentials:
326 - '{ssh-credentials}'
330 jobs: 'odlparent-merge-{stream}'
334 - wipe-org-opendaylight-repo
335 - jacoco-nojava-workaround
336 - provide-maven-settings:
337 global-settings-file: '{odl-global-settings}'
338 settings-file: '{yangtools-settings}'
341 maven-name: '{mvn33}'
343 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
344 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
345 settings: '{yangtools-settings}'
346 global-settings: '{odl-global-settings}'
352 - email-notification:
353 email-prefix: '[yangtools] [odlparent]'
357 name: 'yangtools-sonar'
366 artifactDaysToKeep: '1'
367 artifactNumToKeep: '1'
375 credentials-id: '{ssh-credentials}'
381 - ssh-agent-credentials:
383 - '{ssh-credentials}'
387 - gerrit-trigger-patch-sonar:
391 - wipe-org-opendaylight-repo
392 - jacoco-nojava-workaround
393 - provide-maven-settings:
394 global-settings-file: '{odl-global-settings}'
395 settings-file: '{yangtools-settings}'
398 maven-name: '{mvn33}'
400 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
401 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
402 settings: '{yangtools-settings}'
403 global-settings: '{odl-global-settings}'
411 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
412 - email-notification:
413 email-prefix: '[yangtools]'
417 name: 'yangtools-clm-{stream}'
424 daysToKeep: '{build-days-to-keep}'
425 numToKeep: '{build-num-to-keep}'
426 artifactDaysToKeep: '{build-artifact-days-to-keep}'
427 artifactNumToKeep: '{build-artifact-num-to-keep}'
435 credentials-id: '{ssh-credentials}'
441 - ssh-agent-credentials:
443 - '{ssh-credentials}'
449 - wipe-org-opendaylight-repo
450 - provide-maven-settings:
451 global-settings-file: '{odl-global-settings}'
452 settings-file: '{yangtools-settings}'
455 maven-name: '{mvn33}'
457 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'
458 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
459 settings: '{yangtools-settings}'
460 global-settings: '{odl-global-settings}'
463 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
465 application-name: yangtools
468 - email-notification:
469 email-prefix: '[yangtools]'
472 name: 'yangtools-validate-autorelease-{stream}'
473 disabled: '{obj:disable_autorelease}'
481 daysToKeep: '{build-days-to-keep}'
482 numToKeep: '{build-num-to-keep}'
483 artifactDaysToKeep: '{build-artifact-days-to-keep}'
484 artifactNumToKeep: '{build-artifact-num-to-keep}'
491 - autorelease-release-tag:
492 release-tag: 'validate'
493 - autorelease-release-branch:
494 release-branch: '{branch}'
495 - autorelease-release-datestamp:
500 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
509 - autorelease-build-timeout
510 - ssh-agent-credentials:
512 - '{ssh-credentials}'
516 server-name: 'OpenDaylight'
518 - patchset-created-event:
519 exclude-drafts: 'false'
520 exclude-trivial-rebase: 'false'
521 exclude-no-code-change: 'false'
522 - draft-published-event
523 - comment-added-contains-event:
524 comment-contains-value: 'recheck'
525 - comment-added-contains-event:
526 comment-contains-value: 'reverify'
527 - comment-added-contains-event:
528 comment-contains-value: 'revalidate'
530 - project-compare-type: 'ANT'
531 project-pattern: 'yangtools'
533 - branch-compare-type: 'ANT'
534 branch-pattern: '**/{branch}'
537 - wipe-org-opendaylight-repo
538 - jacoco-nojava-workaround
539 - autorelease-checkout-gerrit-patch
540 - autorelease-generate-taglist
541 - autorelease-generate-release-patches
543 maven-version: '{mvn33}'
544 pom: validate-pom.xml
545 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
548 settings: '{autorelease-settings}'
549 global-settings: '{odl-global-settings}'
552 maven-name: '{mvn33}'
554 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
555 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
556 settings: '{autorelease-settings}'
557 global-settings: '{odl-global-settings}'
558 automatic-archiving: false
559 post-step-run-condition: UNSTABLE
562 - shell: "./scripts/list-project-dependencies.sh"
563 - autorelease-sys-stats
568 - email-notification:
569 email-prefix: '[autorelease] [yangtools]'