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 - 'coretutorials-verify-{stream}'
10 - 'coretutorials-merge-{stream}'
11 - 'coretutorials-periodic-{stream}'
12 - 'coretutorials-distribution-{stream}'
13 - 'coretutorials-integration-{stream}'
14 - 'coretutorials-sonar'
15 - 'coretutorials-clm-{stream}'
16 - 'coretutorials-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
29 branch: 'stable/beryllium'
33 disable_autorelease: True
35 branch: 'stable/lithium'
39 disable_autorelease: True
41 project: 'coretutorials'
43 # For the Job templates below replace instances of:
44 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
45 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
46 # MAVEN_GOALS with your maven goals to build
47 # MAVEN_OPTS with your maven options to build
50 name: 'coretutorials-verify-{stream}'
52 # Job template for ODL verify jobs
54 # The purpose of this job template is to setup a ODL verify job
57 # stream: release stream (eg. stable-lithium or beryllium)
58 # branch: git branch (eg. stable/lithium or master)
75 daysToKeep: '{build-days-to-keep}'
76 numToKeep: '{build-num-to-keep}'
77 artifactDaysToKeep: '{build-artifact-days-to-keep}'
78 artifactNumToKeep: '{build-artifact-num-to-keep}'
85 - gerrit-refspec-parameter:
86 refspec: 'refs/heads/{branch}'
90 credentials-id: '{ssh-credentials}'
91 refspec: '$GERRIT_REFSPEC'
92 choosing-strategy: 'gerrit'
96 - ssh-agent-credentials:
101 - gerrit-trigger-patch-submitted:
102 name: 'coretutorials'
106 - wipe-org-opendaylight-repo
107 - jacoco-nojava-workaround
108 - provide-maven-settings:
109 global-settings-file: '{odl-global-settings}'
110 settings-file: '{coretutorials-settings}'
112 maven-version: '{mvn33}'
114 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
116 - '-Xmx1024m -XX:MaxPermSize=256m'
117 settings: '{coretutorials-settings}'
118 global-settings: '{odl-global-settings}'
122 - email-notification:
123 email-prefix: '[coretutorials]'
127 name: 'coretutorials-merge-{stream}'
129 # Job template for ODL merge jobs
131 # The purpose of this job template is to setup a ODL merge job
132 # and deploy artifacts to Nexus.
134 # Required Variables:
135 # stream: release stream (eg. stable-lithium or beryllium)
136 # branch: git branch (eg. stable/lithium or master)
145 artifactDaysToKeep: '{build-artifact-days-to-keep}'
146 artifactNumToKeep: '{build-artifact-num-to-keep}'
153 - gerrit-refspec-parameter:
154 refspec: 'refs/heads/{branch}'
157 - gerrit-trigger-scm:
158 credentials-id: '{ssh-credentials}'
160 choosing-strategy: 'default'
164 - ssh-agent-credentials:
166 - '{ssh-credentials}'
170 - gerrit-trigger-patch-merged:
171 name: 'coretutorials'
175 - wipe-org-opendaylight-repo
176 - jacoco-nojava-workaround
177 - provide-maven-settings:
178 global-settings-file: '{odl-global-settings}'
179 settings-file: '{coretutorials-settings}'
182 maven-name: '{mvn33}'
184 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
185 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
186 settings: '{coretutorials-settings}'
187 global-settings: '{odl-global-settings}'
188 post-step-run-condition: UNSTABLE
192 condition-kind: file-exists
193 condition-filename: deploy-site.xml
194 condition-basedir: workspace
196 # The strategy here is intentional to run Maven site:deploy twice
197 # once using regular pom.xml to produce a staged-site which is
198 # then used by deploy-site.xml to push to Nexus. This is a
199 # workaround to Maven Site's default linking code which creates
200 # incorrect URLs for sites due to auto-detection assuming your
201 # project is configured in a certain way which ODL is not.
204 maven-version: '{mvn33}'
206 goals: 'site:deploy -Dstream={stream}'
209 settings: '{coretutorials-settings}'
210 global-settings: '{odl-global-settings}'
212 maven-version: '{mvn33}'
214 goals: 'site:deploy -Dstream={stream}'
217 settings: '{coretutorials-settings}'
218 global-settings: '{odl-global-settings}'
225 artifacts: '**/target/surefire-reports/*-output.txt, '
226 - email-notification:
227 email-prefix: '[coretutorials]'
231 deploy-unstable: false
235 name: 'coretutorials-periodic-{stream}'
238 # Job template for periodic builders
240 # The purpose of this job template is to setup a periodic
243 # Required Variables:
244 # stream: release stream (eg. stable-lithium or beryllium)
245 # branch: git branch (eg. stable/lithium or master)
254 artifactDaysToKeep: '{build-artifact-days-to-keep}'
255 artifactNumToKeep: '{build-artifact-num-to-keep}'
263 credentials-id: '{ssh-credentials}'
269 - ssh-agent-credentials:
271 - '{ssh-credentials}'
277 - wipe-org-opendaylight-repo
278 - jacoco-nojava-workaround
279 - provide-maven-settings:
280 global-settings-file: '{odl-global-settings}'
281 settings-file: '{coretutorials-settings}'
284 maven-name: '{mvn33}'
286 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
287 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
288 settings: '{coretutorials-settings}'
289 global-settings: '{odl-global-settings}'
295 - email-notification:
296 email-prefix: '[coretutorials]'
300 name: 'coretutorials-distribution-{stream}'
302 # Required variables:
303 # stream: release stream (eg. stable-lithium or beryllium)
304 # branch: git branch (eg. stable/lithium or master)
311 daysToKeep: '{build-days-to-keep}'
312 numToKeep: '{build-num-to-keep}'
313 artifactDaysToKeep: '{build-artifact-days-to-keep}'
314 artifactNumToKeep: '{build-artifact-num-to-keep}'
318 project: 'integration/distribution'
322 credentials-id: '{ssh-credentials}'
328 - ssh-agent-credentials:
330 - '{ssh-credentials}'
334 jobs: '{project}-merge-{stream}'
338 - wipe-org-opendaylight-repo
339 - provide-maven-settings:
340 global-settings-file: '{odl-global-settings}'
341 settings-file: '{coretutorials-settings}'
344 maven-name: '{mvn33}'
346 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
347 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
348 settings: '{integration-settings}'
349 global-settings: '{odl-global-settings}'
352 - email-notification:
353 email-prefix: '[{project}]'
357 deploy-unstable: false
360 name: 'coretutorials-integration-{stream}'
363 # Job template for ODL integration verify jobs
365 # This is similar to a normal verify job, but it runs
366 # when a project that's a dependency of your project
367 # is successfully built.
369 # Required Variables:
370 # stream: release stream (eg. stable-lithium or beryllium)
371 # branch: git branch (eg. stable/lithium or master)
378 daysToKeep: '{build-days-to-keep}'
379 numToKeep: '{build-num-to-keep}'
380 artifactDaysToKeep: '{build-artifact-days-to-keep}'
381 artifactNumToKeep: '{build-artifact-num-to-keep}'
389 credentials-id: '{ssh-credentials}'
395 - ssh-agent-credentials:
397 - '{ssh-credentials}'
401 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}'
405 - wipe-org-opendaylight-repo
406 - jacoco-nojava-workaround
407 - provide-maven-settings:
408 global-settings-file: '{odl-global-settings}'
409 settings-file: '{coretutorials-settings}'
412 maven-name: '{mvn33}'
414 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
415 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
416 settings: '{coretutorials-settings}'
417 global-settings: '{odl-global-settings}'
423 - email-notification:
424 email-prefix: '[coretutorials] [odlparent] [yangtools] [controller]'
428 name: 'coretutorials-sonar'
438 artifactDaysToKeep: '1'
439 artifactNumToKeep: '1'
447 credentials-id: '{ssh-credentials}'
453 - ssh-agent-credentials:
455 - '{ssh-credentials}'
459 - gerrit-trigger-patch-sonar:
460 name: 'coretutorials'
463 - wipe-org-opendaylight-repo
464 - jacoco-nojava-workaround
465 - provide-maven-settings:
466 global-settings-file: '{odl-global-settings}'
467 settings-file: '{coretutorials-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: '{coretutorials-settings}'
475 global-settings: '{odl-global-settings}'
483 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
484 - email-notification:
485 email-prefix: '[coretutorials]'
489 name: 'coretutorials-clm-{stream}'
497 daysToKeep: '{build-days-to-keep}'
498 numToKeep: '{build-num-to-keep}'
499 artifactDaysToKeep: '{build-artifact-days-to-keep}'
500 artifactNumToKeep: '{build-artifact-num-to-keep}'
508 credentials-id: '{ssh-credentials}'
514 - ssh-agent-credentials:
516 - '{ssh-credentials}'
522 - wipe-org-opendaylight-repo
523 - provide-maven-settings:
524 global-settings-file: '{odl-global-settings}'
525 settings-file: '{coretutorials-settings}'
528 maven-name: '{mvn33}'
530 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'
531 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
532 settings: '{coretutorials-settings}'
533 global-settings: '{odl-global-settings}'
536 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
538 application-name: coretutorials
541 - email-notification:
542 email-prefix: '[coretutorials]'
545 name: 'coretutorials-validate-autorelease-{stream}'
546 disabled: '{obj:disable_autorelease}'
554 daysToKeep: '{build-days-to-keep}'
555 numToKeep: '{build-num-to-keep}'
556 artifactDaysToKeep: '{build-artifact-days-to-keep}'
557 artifactNumToKeep: '{build-artifact-num-to-keep}'
564 - autorelease-release-tag:
565 release-tag: 'validate'
566 - autorelease-release-branch:
567 release-branch: '{branch}'
568 - autorelease-release-datestamp:
573 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
582 - autorelease-build-timeout
583 - ssh-agent-credentials:
585 - '{ssh-credentials}'
589 server-name: 'OpenDaylight'
591 - patchset-created-event:
592 exclude-drafts: 'false'
593 exclude-trivial-rebase: 'false'
594 exclude-no-code-change: 'false'
595 - draft-published-event
596 - comment-added-contains-event:
597 comment-contains-value: 'recheck'
598 - comment-added-contains-event:
599 comment-contains-value: 'reverify'
600 - comment-added-contains-event:
601 comment-contains-value: 'revalidate'
603 - project-compare-type: 'ANT'
604 project-pattern: 'coretutorials'
606 - branch-compare-type: 'ANT'
607 branch-pattern: '**/{branch}'
610 - wipe-org-opendaylight-repo
611 - jacoco-nojava-workaround
612 - autorelease-checkout-gerrit-patch
613 - autorelease-generate-taglist
614 - autorelease-generate-release-patches
616 maven-version: '{mvn33}'
617 pom: validate-pom.xml
618 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
621 settings: '{autorelease-settings}'
622 global-settings: '{odl-global-settings}'
625 maven-name: '{mvn33}'
627 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
628 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
629 settings: '{autorelease-settings}'
630 global-settings: '{odl-global-settings}'
631 automatic-archiving: false
632 post-step-run-condition: UNSTABLE
635 - shell: "./scripts/list-project-dependencies.sh"
636 - autorelease-sys-stats
641 - email-notification:
642 email-prefix: '[autorelease] [coretutorials]'