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 - 'didm-verify-{stream}'
10 - 'didm-merge-{stream}'
11 - 'didm-periodic-{stream}'
12 - 'didm-distribution-{stream}'
13 - 'didm-integration-{stream}'
16 - 'didm-validate-autorelease-{stream}'
19 # stream: release stream (eg. stable-lithium or beryllium)
20 # branch: git branch (eg. stable/lithium or master)
27 disable_autorelease: False
29 branch: 'stable/beryllium'
34 disable_autorelease: False
36 branch: 'stable/lithium'
40 disable_autorelease: True
44 # For the Job templates below replace instances of:
45 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
46 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
47 # MAVEN_GOALS with your maven goals to build
48 # MAVEN_OPTS with your maven options to build
51 name: 'didm-verify-{stream}'
53 # Job template for ODL verify jobs
55 # The purpose of this job template is to setup a ODL verify job
58 # stream: release stream (eg. stable-lithium or beryllium)
59 # branch: git branch (eg. stable/lithium or master)
76 daysToKeep: '{build-days-to-keep}'
77 numToKeep: '{build-num-to-keep}'
78 artifactDaysToKeep: '{build-artifact-days-to-keep}'
79 artifactNumToKeep: '{build-artifact-num-to-keep}'
86 - gerrit-refspec-parameter:
87 refspec: 'refs/heads/{branch}'
91 credentials-id: '{ssh-credentials}'
92 refspec: '$GERRIT_REFSPEC'
93 choosing-strategy: 'gerrit'
97 - ssh-agent-credentials:
102 - gerrit-trigger-patch-submitted:
107 - wipe-org-opendaylight-repo
108 - jacoco-nojava-workaround
109 - provide-maven-settings:
110 global-settings-file: '{odl-global-settings}'
111 settings-file: '{didm-settings}'
113 maven-version: '{mvn33}'
115 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
117 - '-Xmx1024m -XX:MaxPermSize=256m'
118 settings: '{didm-settings}'
119 global-settings: '{odl-global-settings}'
123 - email-notification:
124 email-prefix: '[didm]'
128 name: 'didm-merge-{stream}'
130 # Job template for ODL merge jobs
132 # The purpose of this job template is to setup a ODL merge job
133 # and deploy artifacts to Nexus.
135 # Required Variables:
136 # stream: release stream (eg. stable-lithium or beryllium)
137 # branch: git branch (eg. stable/lithium or master)
144 daysToKeep: '{build-days-to-keep}'
145 numToKeep: '{build-num-to-keep}'
146 artifactDaysToKeep: '{build-artifact-days-to-keep}'
147 artifactNumToKeep: '{build-artifact-num-to-keep}'
154 - gerrit-refspec-parameter:
155 refspec: 'refs/heads/{branch}'
158 - gerrit-trigger-scm:
159 credentials-id: '{ssh-credentials}'
161 choosing-strategy: 'default'
165 - ssh-agent-credentials:
167 - '{ssh-credentials}'
171 - gerrit-trigger-patch-merged:
176 - wipe-org-opendaylight-repo
177 - jacoco-nojava-workaround
178 - provide-maven-settings:
179 global-settings-file: '{odl-global-settings}'
180 settings-file: '{didm-settings}'
183 maven-name: '{mvn33}'
185 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
186 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
187 settings: '{didm-settings}'
188 global-settings: '{odl-global-settings}'
189 post-step-run-condition: UNSTABLE
193 condition-kind: file-exists
194 condition-filename: deploy-site.xml
195 condition-basedir: workspace
197 # The strategy here is intentional to run Maven site:deploy twice
198 # once using regular pom.xml to produce a staged-site which is
199 # then used by deploy-site.xml to push to Nexus. This is a
200 # workaround to Maven Site's default linking code which creates
201 # incorrect URLs for sites due to auto-detection assuming your
202 # project is configured in a certain way which ODL is not.
205 maven-version: '{mvn33}'
207 goals: 'site:deploy -Dstream={stream}'
210 settings: '{didm-settings}'
211 global-settings: '{odl-global-settings}'
213 maven-version: '{mvn33}'
215 goals: 'site:deploy -Dstream={stream}'
218 settings: '{didm-settings}'
219 global-settings: '{odl-global-settings}'
226 artifacts: '**/target/surefire-reports/*-output.txt, '
227 - email-notification:
228 email-prefix: '[didm]'
232 deploy-unstable: false
236 name: 'didm-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)
252 daysToKeep: '{build-days-to-keep}'
253 numToKeep: '{build-num-to-keep}'
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: '{didm-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: '{didm-settings}'
289 global-settings: '{odl-global-settings}'
295 - email-notification:
296 email-prefix: '[didm]'
300 name: 'didm-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: '{didm-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: 'didm-integration-{stream}'
361 # Temporarily disable this job until Rackspace networking issues are
366 # Job template for ODL integration verify jobs
368 # This is similar to a normal verify job, but it runs
369 # when a project that's a dependency of your project
370 # is successfully built.
372 # Required Variables:
373 # stream: release stream (eg. stable-lithium or beryllium)
374 # branch: git branch (eg. stable/lithium or master)
381 daysToKeep: '{build-days-to-keep}'
382 numToKeep: '{build-num-to-keep}'
383 artifactDaysToKeep: '{build-artifact-days-to-keep}'
384 artifactNumToKeep: '{build-artifact-num-to-keep}'
392 credentials-id: '{ssh-credentials}'
398 - ssh-agent-credentials:
400 - '{ssh-credentials}'
404 jobs: 'odlparent-merge-{stream}'
408 - wipe-org-opendaylight-repo
409 - jacoco-nojava-workaround
410 - provide-maven-settings:
411 global-settings-file: '{odl-global-settings}'
412 settings-file: '{didm-settings}'
415 maven-name: '{mvn33}'
417 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
418 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
419 settings: '{didm-settings}'
420 global-settings: '{odl-global-settings}'
426 - email-notification:
427 email-prefix: '[didm] [odlparent]'
440 artifactDaysToKeep: '1'
441 artifactNumToKeep: '1'
449 credentials-id: '{ssh-credentials}'
455 - ssh-agent-credentials:
457 - '{ssh-credentials}'
461 - gerrit-trigger-patch-sonar:
465 - wipe-org-opendaylight-repo
466 - jacoco-nojava-workaround
467 - provide-maven-settings:
468 global-settings-file: '{odl-global-settings}'
469 settings-file: '{didm-settings}'
472 maven-name: '{mvn33}'
474 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
475 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
476 settings: '{didm-settings}'
477 global-settings: '{odl-global-settings}'
485 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
486 - email-notification:
487 email-prefix: '[didm]'
491 name: 'didm-clm-{stream}'
498 daysToKeep: '{build-days-to-keep}'
499 numToKeep: '{build-num-to-keep}'
500 artifactDaysToKeep: '{build-artifact-days-to-keep}'
501 artifactNumToKeep: '{build-artifact-num-to-keep}'
509 credentials-id: '{ssh-credentials}'
515 - ssh-agent-credentials:
517 - '{ssh-credentials}'
523 - wipe-org-opendaylight-repo
524 - provide-maven-settings:
525 global-settings-file: '{odl-global-settings}'
526 settings-file: '{didm-settings}'
529 maven-name: '{mvn33}'
531 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'
532 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
533 settings: '{didm-settings}'
534 global-settings: '{odl-global-settings}'
537 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
539 application-name: didm
542 - email-notification:
543 email-prefix: '[didm]'
546 name: 'didm-validate-autorelease-{stream}'
547 disabled: '{obj:disable_autorelease}'
555 daysToKeep: '{build-days-to-keep}'
556 numToKeep: '{build-num-to-keep}'
557 artifactDaysToKeep: '{build-artifact-days-to-keep}'
558 artifactNumToKeep: '{build-artifact-num-to-keep}'
565 - autorelease-release-tag:
566 release-tag: 'validate'
567 - autorelease-release-branch:
568 release-branch: '{branch}'
569 - autorelease-release-datestamp:
574 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
583 - autorelease-build-timeout
584 - ssh-agent-credentials:
586 - '{ssh-credentials}'
590 server-name: 'OpenDaylight'
592 - patchset-created-event:
593 exclude-drafts: 'false'
594 exclude-trivial-rebase: 'false'
595 exclude-no-code-change: 'false'
596 - draft-published-event
597 - comment-added-contains-event:
598 comment-contains-value: 'recheck'
599 - comment-added-contains-event:
600 comment-contains-value: 'reverify'
601 - comment-added-contains-event:
602 comment-contains-value: 'revalidate'
604 - project-compare-type: 'ANT'
605 project-pattern: 'didm'
607 - branch-compare-type: 'ANT'
608 branch-pattern: '**/{branch}'
611 - wipe-org-opendaylight-repo
612 - jacoco-nojava-workaround
613 - autorelease-checkout-gerrit-patch
614 - autorelease-generate-taglist
615 - autorelease-generate-release-patches
617 maven-version: '{mvn33}'
618 pom: validate-pom.xml
619 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
622 settings: '{autorelease-settings}'
623 global-settings: '{odl-global-settings}'
626 maven-name: '{mvn33}'
628 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
629 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
630 settings: '{autorelease-settings}'
631 global-settings: '{odl-global-settings}'
632 automatic-archiving: false
633 post-step-run-condition: UNSTABLE
636 - shell: "./scripts/list-project-dependencies.sh"
637 - autorelease-sys-stats
642 - email-notification:
643 email-prefix: '[autorelease] [didm]'