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 - 'reservation-verify-{stream}'
10 - 'reservation-merge-{stream}'
11 - 'reservation-periodic-{stream}'
12 - 'reservation-distribution-{stream}'
13 - 'reservation-integration-{stream}'
15 - 'reservation-clm-{stream}'
16 - 'reservation-validate-autorelease-{stream}'
19 # stream: release stream (eg. stable-lithium or beryllium)
20 # branch: git branch (eg. stable/lithium or master)
28 disable_autorelease: False
30 branch: 'stable/beryllium'
35 disable_autorelease: False
37 branch: 'stable/lithium'
41 disable_autorelease: True
43 project: 'reservation'
45 # For the Job templates below replace instances of:
46 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
47 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
48 # MAVEN_GOALS with your maven goals to build
49 # MAVEN_OPTS with your maven options to build
52 name: 'reservation-verify-{stream}'
54 # Job template for ODL verify jobs
56 # The purpose of this job template is to setup a ODL verify job
59 # stream: release stream (eg. stable-lithium or beryllium)
60 # branch: git branch (eg. stable/lithium or master)
77 daysToKeep: '{build-days-to-keep}'
78 numToKeep: '{build-num-to-keep}'
79 artifactDaysToKeep: '{build-artifact-days-to-keep}'
80 artifactNumToKeep: '{build-artifact-num-to-keep}'
87 - gerrit-refspec-parameter:
88 refspec: 'refs/heads/{branch}'
92 credentials-id: '{ssh-credentials}'
93 refspec: '$GERRIT_REFSPEC'
94 choosing-strategy: 'gerrit'
98 - ssh-agent-credentials:
100 - '{ssh-credentials}'
103 - gerrit-trigger-patch-submitted:
108 - wipe-org-opendaylight-repo
109 - jacoco-nojava-workaround
110 - provide-maven-settings:
111 global-settings-file: '{odl-global-settings}'
112 settings-file: '{reservation-settings}'
114 maven-version: '{mvn33}'
116 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
118 - '-Xmx1024m -XX:MaxPermSize=256m'
119 settings: '{reservation-settings}'
120 global-settings: '{odl-global-settings}'
124 - email-notification:
125 email-prefix: '[reservation]'
129 name: 'reservation-merge-{stream}'
131 # Job template for ODL merge jobs
133 # The purpose of this job template is to setup a ODL merge job
134 # and deploy artifacts to Nexus.
136 # Required Variables:
137 # stream: release stream (eg. stable-lithium or beryllium)
138 # branch: git branch (eg. stable/lithium or master)
145 daysToKeep: '{build-days-to-keep}'
146 numToKeep: '{build-num-to-keep}'
147 artifactDaysToKeep: '{build-artifact-days-to-keep}'
148 artifactNumToKeep: '{build-artifact-num-to-keep}'
155 - gerrit-refspec-parameter:
156 refspec: 'refs/heads/{branch}'
159 - gerrit-trigger-scm:
160 credentials-id: '{ssh-credentials}'
162 choosing-strategy: 'default'
166 - ssh-agent-credentials:
168 - '{ssh-credentials}'
172 - gerrit-trigger-patch-merged:
177 - wipe-org-opendaylight-repo
178 - jacoco-nojava-workaround
179 - provide-maven-settings:
180 global-settings-file: '{odl-global-settings}'
181 settings-file: '{reservation-settings}'
184 maven-name: '{mvn33}'
186 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
187 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
188 settings: '{reservation-settings}'
189 global-settings: '{odl-global-settings}'
190 post-step-run-condition: UNSTABLE
194 condition-kind: file-exists
195 condition-filename: deploy-site.xml
196 condition-basedir: workspace
198 # The strategy here is intentional to run Maven site:deploy twice
199 # once using regular pom.xml to produce a staged-site which is
200 # then used by deploy-site.xml to push to Nexus. This is a
201 # workaround to Maven Site's default linking code which creates
202 # incorrect URLs for sites due to auto-detection assuming your
203 # project is configured in a certain way which ODL is not.
206 maven-version: '{mvn33}'
208 goals: 'site:deploy -Dstream={stream}'
211 settings: '{reservation-settings}'
212 global-settings: '{odl-global-settings}'
214 maven-version: '{mvn33}'
216 goals: 'site:deploy -Dstream={stream}'
219 settings: '{reservation-settings}'
220 global-settings: '{odl-global-settings}'
227 artifacts: '**/target/surefire-reports/*-output.txt, '
228 - email-notification:
229 email-prefix: '[reservation]'
233 deploy-unstable: false
237 name: 'reservation-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)
253 daysToKeep: '{build-days-to-keep}'
254 numToKeep: '{build-num-to-keep}'
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: '{reservation-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: '-Xmx1024m -XX:MaxPermSize=256m'
289 settings: '{reservation-settings}'
290 global-settings: '{odl-global-settings}'
296 - email-notification:
297 email-prefix: '[reservation]'
301 name: 'reservation-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: '{reservation-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
361 name: 'reservation-integration-{stream}'
364 # Job template for ODL integration verify jobs
366 # This is similar to a normal verify job, but it runs
367 # when a project that's a dependency of your project
368 # is successfully built.
370 # Required Variables:
371 # stream: release stream (eg. stable-lithium or beryllium)
372 # branch: git branch (eg. stable/lithium or master)
379 daysToKeep: '{build-days-to-keep}'
380 numToKeep: '{build-num-to-keep}'
381 artifactDaysToKeep: '{build-artifact-days-to-keep}'
382 artifactNumToKeep: '{build-artifact-num-to-keep}'
390 credentials-id: '{ssh-credentials}'
396 - ssh-agent-credentials:
398 - '{ssh-credentials}'
402 jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream},groupbasedpolicy-merge-{stream}'
406 - wipe-org-opendaylight-repo
407 - jacoco-nojava-workaround
408 - provide-maven-settings:
409 global-settings-file: '{odl-global-settings}'
410 settings-file: '{reservation-settings}'
413 maven-name: '{mvn33}'
415 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
416 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
417 settings: '{reservation-settings}'
418 global-settings: '{odl-global-settings}'
424 - email-notification:
425 email-prefix: '[reservation] [odlparent] [controller] [yangtools] [groupbasedpolicy]'
429 name: 'reservation-sonar'
438 artifactDaysToKeep: '1'
439 artifactNumToKeep: '1'
447 credentials-id: '{ssh-credentials}'
453 - ssh-agent-credentials:
455 - '{ssh-credentials}'
459 - gerrit-trigger-patch-sonar:
463 - wipe-org-opendaylight-repo
464 - jacoco-nojava-workaround
465 - provide-maven-settings:
466 global-settings-file: '{odl-global-settings}'
467 settings-file: '{reservation-settings}'
470 maven-name: '{mvn33}'
472 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
473 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
474 settings: '{reservation-settings}'
475 global-settings: '{odl-global-settings}'
483 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
484 - email-notification:
485 email-prefix: '[reservation]'
489 name: 'reservation-clm-{stream}'
496 daysToKeep: '{build-days-to-keep}'
497 numToKeep: '{build-num-to-keep}'
498 artifactDaysToKeep: '{build-artifact-days-to-keep}'
499 artifactNumToKeep: '{build-artifact-num-to-keep}'
507 credentials-id: '{ssh-credentials}'
513 - ssh-agent-credentials:
515 - '{ssh-credentials}'
521 - wipe-org-opendaylight-repo
522 - provide-maven-settings:
523 global-settings-file: '{odl-global-settings}'
524 settings-file: '{reservation-settings}'
527 maven-name: '{mvn33}'
529 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'
530 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
531 settings: '{reservation-settings}'
532 global-settings: '{odl-global-settings}'
535 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
537 application-name: reservation
540 - email-notification:
541 email-prefix: '[reservation]'
544 name: 'reservation-validate-autorelease-{stream}'
545 disabled: '{obj:disable_autorelease}'
553 daysToKeep: '{build-days-to-keep}'
554 numToKeep: '{build-num-to-keep}'
555 artifactDaysToKeep: '{build-artifact-days-to-keep}'
556 artifactNumToKeep: '{build-artifact-num-to-keep}'
563 - autorelease-release-tag:
564 release-tag: 'validate'
565 - autorelease-release-branch:
566 release-branch: '{branch}'
567 - autorelease-release-datestamp:
572 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
581 - autorelease-build-timeout
582 - ssh-agent-credentials:
584 - '{ssh-credentials}'
588 server-name: 'OpenDaylight'
590 - patchset-created-event:
591 exclude-drafts: 'false'
592 exclude-trivial-rebase: 'false'
593 exclude-no-code-change: 'false'
594 - draft-published-event
595 - comment-added-contains-event:
596 comment-contains-value: 'recheck'
597 - comment-added-contains-event:
598 comment-contains-value: 'reverify'
599 - comment-added-contains-event:
600 comment-contains-value: 'revalidate'
602 - project-compare-type: 'ANT'
603 project-pattern: 'reservation'
605 - branch-compare-type: 'ANT'
606 branch-pattern: '**/{branch}'
609 - wipe-org-opendaylight-repo
610 - jacoco-nojava-workaround
611 - autorelease-checkout-gerrit-patch
612 - autorelease-generate-taglist
613 - autorelease-generate-release-patches
615 maven-version: '{mvn33}'
616 pom: validate-pom.xml
617 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
620 settings: '{autorelease-settings}'
621 global-settings: '{odl-global-settings}'
624 maven-name: '{mvn33}'
626 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
627 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
628 settings: '{autorelease-settings}'
629 global-settings: '{odl-global-settings}'
630 automatic-archiving: false
631 post-step-run-condition: UNSTABLE
634 - shell: "./scripts/list-project-dependencies.sh"
635 - autorelease-sys-stats
640 - email-notification:
641 email-prefix: '[autorelease] [reservation]'