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)
143 daysToKeep: '{build-days-to-keep}'
144 numToKeep: '{build-num-to-keep}'
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}'
237 # Job template for periodic builders
239 # The purpose of this job template is to setup a periodic
242 # Required Variables:
243 # stream: release stream (eg. stable-lithium or beryllium)
244 # branch: git branch (eg. stable/lithium or master)
251 daysToKeep: '{build-days-to-keep}'
252 numToKeep: '{build-num-to-keep}'
253 artifactDaysToKeep: '{build-artifact-days-to-keep}'
254 artifactNumToKeep: '{build-artifact-num-to-keep}'
262 credentials-id: '{ssh-credentials}'
268 - ssh-agent-credentials:
270 - '{ssh-credentials}'
276 - wipe-org-opendaylight-repo
277 - jacoco-nojava-workaround
278 - provide-maven-settings:
279 global-settings-file: '{odl-global-settings}'
280 settings-file: '{coretutorials-settings}'
283 maven-name: '{mvn33}'
285 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
286 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
287 settings: '{coretutorials-settings}'
288 global-settings: '{odl-global-settings}'
294 - email-notification:
295 email-prefix: '[coretutorials]'
299 name: 'coretutorials-distribution-{stream}'
301 # Required variables:
302 # stream: release stream (eg. stable-lithium or beryllium)
303 # branch: git branch (eg. stable/lithium or master)
310 daysToKeep: '{build-days-to-keep}'
311 numToKeep: '{build-num-to-keep}'
312 artifactDaysToKeep: '{build-artifact-days-to-keep}'
313 artifactNumToKeep: '{build-artifact-num-to-keep}'
317 project: 'integration/distribution'
321 credentials-id: '{ssh-credentials}'
327 - ssh-agent-credentials:
329 - '{ssh-credentials}'
333 jobs: '{project}-merge-{stream}'
337 - wipe-org-opendaylight-repo
338 - provide-maven-settings:
339 global-settings-file: '{odl-global-settings}'
340 settings-file: '{coretutorials-settings}'
343 maven-name: '{mvn33}'
345 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
346 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
347 settings: '{integration-settings}'
348 global-settings: '{odl-global-settings}'
351 - email-notification:
352 email-prefix: '[{project}]'
356 deploy-unstable: false
359 name: 'coretutorials-integration-{stream}'
360 # Temporarily disable this job until Rackspace networking issues are
365 # Job template for ODL integration verify jobs
367 # This is similar to a normal verify job, but it runs
368 # when a project that's a dependency of your project
369 # is successfully built.
371 # Required Variables:
372 # stream: release stream (eg. stable-lithium or beryllium)
373 # branch: git branch (eg. stable/lithium or master)
380 daysToKeep: '{build-days-to-keep}'
381 numToKeep: '{build-num-to-keep}'
382 artifactDaysToKeep: '{build-artifact-days-to-keep}'
383 artifactNumToKeep: '{build-artifact-num-to-keep}'
391 credentials-id: '{ssh-credentials}'
397 - ssh-agent-credentials:
399 - '{ssh-credentials}'
403 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream}'
407 - wipe-org-opendaylight-repo
408 - jacoco-nojava-workaround
409 - provide-maven-settings:
410 global-settings-file: '{odl-global-settings}'
411 settings-file: '{coretutorials-settings}'
414 maven-name: '{mvn33}'
416 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
417 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
418 settings: '{coretutorials-settings}'
419 global-settings: '{odl-global-settings}'
425 - email-notification:
426 email-prefix: '[coretutorials] [odlparent] [yangtools] [controller]'
430 name: 'coretutorials-sonar'
439 artifactDaysToKeep: '1'
440 artifactNumToKeep: '1'
448 credentials-id: '{ssh-credentials}'
454 - ssh-agent-credentials:
456 - '{ssh-credentials}'
460 - gerrit-trigger-patch-sonar:
461 name: 'coretutorials'
464 - wipe-org-opendaylight-repo
465 - jacoco-nojava-workaround
466 - provide-maven-settings:
467 global-settings-file: '{odl-global-settings}'
468 settings-file: '{coretutorials-settings}'
471 maven-name: '{mvn33}'
473 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
474 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
475 settings: '{coretutorials-settings}'
476 global-settings: '{odl-global-settings}'
484 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
485 - email-notification:
486 email-prefix: '[coretutorials]'
490 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]'