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 - 'toolkit-verify-{stream}'
10 - 'toolkit-merge-{stream}'
11 - 'toolkit-periodic-{stream}'
12 - 'toolkit-distribution-{stream}'
13 - 'toolkit-integration-{stream}'
15 - 'toolkit-clm-{stream}'
16 - 'toolkit-validate-autorelease-{stream}'
19 # stream: release stream (eg. stable-lithium or beryllium)
20 # branch: git branch (eg. stable/lithium or master)
27 disable_autorelease: True
31 # For the Job templates below replace instances of:
32 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
33 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
34 # MAVEN_GOALS with your maven goals to build
35 # MAVEN_OPTS with your maven options to build
38 name: 'toolkit-verify-{stream}'
40 # Job template for ODL verify jobs
42 # The purpose of this job template is to setup a ODL verify job
45 # stream: release stream (eg. stable-lithium or beryllium)
46 # branch: git branch (eg. stable/lithium or master)
63 daysToKeep: '{build-days-to-keep}'
64 numToKeep: '{build-num-to-keep}'
65 artifactDaysToKeep: '{build-artifact-days-to-keep}'
66 artifactNumToKeep: '{build-artifact-num-to-keep}'
73 - gerrit-refspec-parameter:
74 refspec: 'refs/heads/{branch}'
78 credentials-id: '{ssh-credentials}'
79 refspec: '$GERRIT_REFSPEC'
80 choosing-strategy: 'gerrit'
84 - ssh-agent-credentials:
89 - gerrit-trigger-patch-submitted:
94 - wipe-org-opendaylight-repo
95 - jacoco-nojava-workaround
96 - provide-maven-settings:
97 global-settings-file: '{odl-global-settings}'
98 settings-file: '{toolkit-settings}'
100 maven-version: '{mvn33}'
102 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
104 - '-Xmx1024m -XX:MaxPermSize=256m'
105 settings: '{toolkit-settings}'
106 global-settings: '{odl-global-settings}'
110 - email-notification:
111 email-prefix: '[toolkit]'
115 name: 'toolkit-merge-{stream}'
117 # Job template for ODL merge jobs
119 # The purpose of this job template is to setup a ODL merge job
120 # and deploy artifacts to Nexus.
122 # Required Variables:
123 # stream: release stream (eg. stable-lithium or beryllium)
124 # branch: git branch (eg. stable/lithium or master)
131 daysToKeep: '{build-days-to-keep}'
132 numToKeep: '{build-num-to-keep}'
133 artifactDaysToKeep: '{build-artifact-days-to-keep}'
134 artifactNumToKeep: '{build-artifact-num-to-keep}'
141 - gerrit-refspec-parameter:
142 refspec: 'refs/heads/{branch}'
145 - gerrit-trigger-scm:
146 credentials-id: '{ssh-credentials}'
148 choosing-strategy: 'default'
152 - ssh-agent-credentials:
154 - '{ssh-credentials}'
158 - gerrit-trigger-patch-merged:
163 - wipe-org-opendaylight-repo
164 - jacoco-nojava-workaround
165 - provide-maven-settings:
166 global-settings-file: '{odl-global-settings}'
167 settings-file: '{toolkit-settings}'
170 maven-name: '{mvn33}'
172 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
173 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
174 settings: '{toolkit-settings}'
175 global-settings: '{odl-global-settings}'
176 post-step-run-condition: UNSTABLE
180 condition-kind: file-exists
181 condition-filename: deploy-site.xml
182 condition-basedir: workspace
184 # The strategy here is intentional to run Maven site:deploy twice
185 # once using regular pom.xml to produce a staged-site which is
186 # then used by deploy-site.xml to push to Nexus. This is a
187 # workaround to Maven Site's default linking code which creates
188 # incorrect URLs for sites due to auto-detection assuming your
189 # project is configured in a certain way which ODL is not.
192 maven-version: '{mvn33}'
194 goals: 'site:deploy -Dstream={stream}'
197 settings: '{toolkit-settings}'
198 global-settings: '{odl-global-settings}'
200 maven-version: '{mvn33}'
202 goals: 'site:deploy -Dstream={stream}'
205 settings: '{toolkit-settings}'
206 global-settings: '{odl-global-settings}'
213 artifacts: '**/target/surefire-reports/*-output.txt, '
214 - email-notification:
215 email-prefix: '[toolkit]'
219 deploy-unstable: false
223 name: 'toolkit-periodic-{stream}'
225 # Job template for periodic builders
227 # The purpose of this job template is to setup a periodic
230 # Required Variables:
231 # stream: release stream (eg. stable-lithium or beryllium)
232 # branch: git branch (eg. stable/lithium or master)
239 daysToKeep: '{build-days-to-keep}'
240 numToKeep: '{build-num-to-keep}'
241 artifactDaysToKeep: '{build-artifact-days-to-keep}'
242 artifactNumToKeep: '{build-artifact-num-to-keep}'
250 credentials-id: '{ssh-credentials}'
256 - ssh-agent-credentials:
258 - '{ssh-credentials}'
264 - wipe-org-opendaylight-repo
265 - jacoco-nojava-workaround
266 - provide-maven-settings:
267 global-settings-file: '{odl-global-settings}'
268 settings-file: '{toolkit-settings}'
271 maven-name: '{mvn33}'
273 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
274 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
275 settings: '{toolkit-settings}'
276 global-settings: '{odl-global-settings}'
282 - email-notification:
283 email-prefix: '[toolkit]'
287 name: 'toolkit-distribution-{stream}'
289 # Required variables:
290 # stream: release stream (eg. stable-lithium or beryllium)
291 # branch: git branch (eg. stable/lithium or master)
298 daysToKeep: '{build-days-to-keep}'
299 numToKeep: '{build-num-to-keep}'
300 artifactDaysToKeep: '{build-artifact-days-to-keep}'
301 artifactNumToKeep: '{build-artifact-num-to-keep}'
305 project: 'integration/distribution'
309 credentials-id: '{ssh-credentials}'
315 - ssh-agent-credentials:
317 - '{ssh-credentials}'
321 jobs: '{project}-merge-{stream}'
325 - wipe-org-opendaylight-repo
326 - provide-maven-settings:
327 global-settings-file: '{odl-global-settings}'
328 settings-file: '{toolkit-settings}'
331 maven-name: '{mvn33}'
333 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
334 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
335 settings: '{integration-settings}'
336 global-settings: '{odl-global-settings}'
339 - email-notification:
340 email-prefix: '[{project}]'
344 deploy-unstable: false
347 name: 'toolkit-integration-{stream}'
350 # Job template for ODL integration verify jobs
352 # This is similar to a normal verify job, but it runs
353 # when a project that's a dependency of your project
354 # is successfully built.
356 # Required Variables:
357 # stream: release stream (eg. stable-lithium or beryllium)
358 # branch: git branch (eg. stable/lithium or master)
365 daysToKeep: '{build-days-to-keep}'
366 numToKeep: '{build-num-to-keep}'
367 artifactDaysToKeep: '{build-artifact-days-to-keep}'
368 artifactNumToKeep: '{build-artifact-num-to-keep}'
376 credentials-id: '{ssh-credentials}'
382 - ssh-agent-credentials:
384 - '{ssh-credentials}'
388 jobs: 'odlparent-merge-{stream},controller-merge-{stream}'
392 - wipe-org-opendaylight-repo
393 - jacoco-nojava-workaround
394 - provide-maven-settings:
395 global-settings-file: '{odl-global-settings}'
396 settings-file: '{toolkit-settings}'
399 maven-name: '{mvn33}'
401 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
402 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
403 settings: '{toolkit-settings}'
404 global-settings: '{odl-global-settings}'
410 - email-notification:
411 email-prefix: '[toolkit] [odlparent] [controller]'
415 name: 'toolkit-sonar'
424 artifactDaysToKeep: '1'
425 artifactNumToKeep: '1'
433 credentials-id: '{ssh-credentials}'
439 - ssh-agent-credentials:
441 - '{ssh-credentials}'
445 - gerrit-trigger-patch-sonar:
449 - wipe-org-opendaylight-repo
450 - jacoco-nojava-workaround
451 - provide-maven-settings:
452 global-settings-file: '{odl-global-settings}'
453 settings-file: '{toolkit-settings}'
456 maven-name: '{mvn33}'
458 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
459 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
460 settings: '{toolkit-settings}'
461 global-settings: '{odl-global-settings}'
469 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
470 - email-notification:
471 email-prefix: '[toolkit]'
475 name: 'toolkit-clm-{stream}'
482 daysToKeep: '{build-days-to-keep}'
483 numToKeep: '{build-num-to-keep}'
484 artifactDaysToKeep: '{build-artifact-days-to-keep}'
485 artifactNumToKeep: '{build-artifact-num-to-keep}'
493 credentials-id: '{ssh-credentials}'
499 - ssh-agent-credentials:
501 - '{ssh-credentials}'
507 - wipe-org-opendaylight-repo
508 - provide-maven-settings:
509 global-settings-file: '{odl-global-settings}'
510 settings-file: '{toolkit-settings}'
513 maven-name: '{mvn33}'
515 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'
516 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
517 settings: '{toolkit-settings}'
518 global-settings: '{odl-global-settings}'
521 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
523 application-name: toolkit
526 - email-notification:
527 email-prefix: '[toolkit]'
530 name: 'toolkit-validate-autorelease-{stream}'
531 disabled: '{obj:disable_autorelease}'
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}'
549 - autorelease-release-tag:
550 release-tag: 'validate'
551 - autorelease-release-branch:
552 release-branch: '{branch}'
553 - autorelease-release-datestamp:
558 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
567 - autorelease-build-timeout
568 - ssh-agent-credentials:
570 - '{ssh-credentials}'
574 server-name: 'OpenDaylight'
576 - patchset-created-event:
577 exclude-drafts: 'false'
578 exclude-trivial-rebase: 'false'
579 exclude-no-code-change: 'false'
580 - draft-published-event
581 - comment-added-contains-event:
582 comment-contains-value: 'recheck'
583 - comment-added-contains-event:
584 comment-contains-value: 'reverify'
585 - comment-added-contains-event:
586 comment-contains-value: 'revalidate'
588 - project-compare-type: 'ANT'
589 project-pattern: 'toolkit'
591 - branch-compare-type: 'ANT'
592 branch-pattern: '**/{branch}'
595 - wipe-org-opendaylight-repo
596 - jacoco-nojava-workaround
597 - autorelease-checkout-gerrit-patch
598 - autorelease-generate-taglist
599 - autorelease-generate-release-patches
601 maven-version: '{mvn33}'
602 pom: validate-pom.xml
603 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
606 settings: '{autorelease-settings}'
607 global-settings: '{odl-global-settings}'
610 maven-name: '{mvn33}'
612 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
613 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
614 settings: '{autorelease-settings}'
615 global-settings: '{odl-global-settings}'
616 automatic-archiving: false
617 post-step-run-condition: UNSTABLE
620 - shell: "./scripts/list-project-dependencies.sh"
621 - autorelease-sys-stats
626 - email-notification:
627 email-prefix: '[autorelease] [toolkit]'