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 - 'discovery-verify-{stream}'
10 - 'discovery-merge-{stream}'
11 - 'discovery-periodic-{stream}'
12 - 'discovery-distribution-{stream}'
13 - 'discovery-integration-{stream}'
15 - 'discovery-clm-{stream}'
16 - 'discovery-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
37 # For the Job templates below replace instances of:
38 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
39 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
40 # MAVEN_GOALS with your maven goals to build
41 # MAVEN_OPTS with your maven options to build
44 name: 'discovery-verify-{stream}'
46 # Job template for ODL verify jobs
48 # The purpose of this job template is to setup a ODL verify job
51 # stream: release stream (eg. stable-lithium or beryllium)
52 # branch: git branch (eg. stable/lithium or master)
69 daysToKeep: '{build-days-to-keep}'
70 numToKeep: '{build-num-to-keep}'
71 artifactDaysToKeep: '{build-artifact-days-to-keep}'
72 artifactNumToKeep: '{build-artifact-num-to-keep}'
79 - gerrit-refspec-parameter:
80 refspec: 'refs/heads/{branch}'
84 credentials-id: '{ssh-credentials}'
85 refspec: '$GERRIT_REFSPEC'
86 choosing-strategy: 'gerrit'
90 - ssh-agent-credentials:
95 - gerrit-trigger-patch-submitted:
100 - wipe-org-opendaylight-repo
101 - jacoco-nojava-workaround
102 - provide-maven-settings:
103 global-settings-file: '{odl-global-settings}'
104 settings-file: '{discovery-settings}'
106 maven-version: '{mvn33}'
108 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
110 - '-Xmx1024m -XX:MaxPermSize=256m'
111 settings: '{discovery-settings}'
112 global-settings: '{odl-global-settings}'
116 - email-notification:
117 email-prefix: '[discovery]'
121 name: 'discovery-merge-{stream}'
123 # Job template for ODL merge jobs
125 # The purpose of this job template is to setup a ODL merge job
126 # and deploy artifacts to Nexus.
128 # Required Variables:
129 # stream: release stream (eg. stable-lithium or beryllium)
130 # branch: git branch (eg. stable/lithium or master)
137 daysToKeep: '{build-days-to-keep}'
138 numToKeep: '{build-num-to-keep}'
139 artifactDaysToKeep: '{build-artifact-days-to-keep}'
140 artifactNumToKeep: '{build-artifact-num-to-keep}'
147 - gerrit-refspec-parameter:
148 refspec: 'refs/heads/{branch}'
151 - gerrit-trigger-scm:
152 credentials-id: '{ssh-credentials}'
154 choosing-strategy: 'default'
158 - ssh-agent-credentials:
160 - '{ssh-credentials}'
164 - gerrit-trigger-patch-merged:
169 - wipe-org-opendaylight-repo
170 - jacoco-nojava-workaround
171 - provide-maven-settings:
172 global-settings-file: '{odl-global-settings}'
173 settings-file: '{discovery-settings}'
176 maven-name: '{mvn33}'
178 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
179 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
180 settings: '{discovery-settings}'
181 global-settings: '{odl-global-settings}'
182 post-step-run-condition: UNSTABLE
186 condition-kind: file-exists
187 condition-filename: deploy-site.xml
188 condition-basedir: workspace
190 # The strategy here is intentional to run Maven site:deploy twice
191 # once using regular pom.xml to produce a staged-site which is
192 # then used by deploy-site.xml to push to Nexus. This is a
193 # workaround to Maven Site's default linking code which creates
194 # incorrect URLs for sites due to auto-detection assuming your
195 # project is configured in a certain way which ODL is not.
198 maven-version: '{mvn33}'
200 goals: 'site:deploy -Dstream={stream}'
203 settings: '{discovery-settings}'
204 global-settings: '{odl-global-settings}'
206 maven-version: '{mvn33}'
208 goals: 'site:deploy -Dstream={stream}'
211 settings: '{discovery-settings}'
212 global-settings: '{odl-global-settings}'
219 artifacts: '**/target/surefire-reports/*-output.txt, '
220 - email-notification:
221 email-prefix: '[discovery]'
225 deploy-unstable: false
229 name: 'discovery-periodic-{stream}'
232 # Job template for periodic builders
234 # The purpose of this job template is to setup a periodic
237 # Required Variables:
238 # stream: release stream (eg. stable-lithium or beryllium)
239 # branch: git branch (eg. stable/lithium or master)
246 daysToKeep: '{build-days-to-keep}'
247 numToKeep: '{build-num-to-keep}'
248 artifactDaysToKeep: '{build-artifact-days-to-keep}'
249 artifactNumToKeep: '{build-artifact-num-to-keep}'
257 credentials-id: '{ssh-credentials}'
263 - ssh-agent-credentials:
265 - '{ssh-credentials}'
271 - wipe-org-opendaylight-repo
272 - jacoco-nojava-workaround
273 - provide-maven-settings:
274 global-settings-file: '{odl-global-settings}'
275 settings-file: '{discovery-settings}'
278 maven-name: '{mvn33}'
280 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
281 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
282 settings: '{discovery-settings}'
283 global-settings: '{odl-global-settings}'
289 - email-notification:
290 email-prefix: '[discovery]'
294 name: 'discovery-distribution-{stream}'
296 # Required variables:
297 # stream: release stream (eg. stable-lithium or beryllium)
298 # branch: git branch (eg. stable/lithium or master)
305 daysToKeep: '{build-days-to-keep}'
306 numToKeep: '{build-num-to-keep}'
307 artifactDaysToKeep: '{build-artifact-days-to-keep}'
308 artifactNumToKeep: '{build-artifact-num-to-keep}'
312 project: 'integration/distribution'
316 credentials-id: '{ssh-credentials}'
322 - ssh-agent-credentials:
324 - '{ssh-credentials}'
328 jobs: '{project}-merge-{stream}'
332 - wipe-org-opendaylight-repo
333 - provide-maven-settings:
334 global-settings-file: '{odl-global-settings}'
335 settings-file: '{discovery-settings}'
338 maven-name: '{mvn33}'
340 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
341 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
342 settings: '{integration-settings}'
343 global-settings: '{odl-global-settings}'
346 - email-notification:
347 email-prefix: '[{project}]'
351 deploy-unstable: false
354 name: 'discovery-integration-{stream}'
357 # Job template for ODL integration verify jobs
359 # This is similar to a normal verify job, but it runs
360 # when a project that's a dependency of your project
361 # is successfully built.
363 # Required Variables:
364 # stream: release stream (eg. stable-lithium or beryllium)
365 # branch: git branch (eg. stable/lithium or master)
372 daysToKeep: '{build-days-to-keep}'
373 numToKeep: '{build-num-to-keep}'
374 artifactDaysToKeep: '{build-artifact-days-to-keep}'
375 artifactNumToKeep: '{build-artifact-num-to-keep}'
383 credentials-id: '{ssh-credentials}'
389 - ssh-agent-credentials:
391 - '{ssh-credentials}'
395 jobs: 'odlparent-merge-{stream}'
399 - wipe-org-opendaylight-repo
400 - jacoco-nojava-workaround
401 - provide-maven-settings:
402 global-settings-file: '{odl-global-settings}'
403 settings-file: '{discovery-settings}'
406 maven-name: '{mvn33}'
408 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
409 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
410 settings: '{discovery-settings}'
411 global-settings: '{odl-global-settings}'
417 - email-notification:
418 email-prefix: '[discovery] [odlparent]'
422 name: 'discovery-sonar'
432 artifactDaysToKeep: '1'
433 artifactNumToKeep: '1'
441 credentials-id: '{ssh-credentials}'
447 - ssh-agent-credentials:
449 - '{ssh-credentials}'
453 - gerrit-trigger-patch-sonar:
457 - wipe-org-opendaylight-repo
458 - jacoco-nojava-workaround
459 - provide-maven-settings:
460 global-settings-file: '{odl-global-settings}'
461 settings-file: '{discovery-settings}'
464 maven-name: '{mvn33}'
466 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
467 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
468 settings: '{discovery-settings}'
469 global-settings: '{odl-global-settings}'
477 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
478 - email-notification:
479 email-prefix: '[discovery]'
483 name: 'discovery-clm-{stream}'
491 daysToKeep: '{build-days-to-keep}'
492 numToKeep: '{build-num-to-keep}'
493 artifactDaysToKeep: '{build-artifact-days-to-keep}'
494 artifactNumToKeep: '{build-artifact-num-to-keep}'
502 credentials-id: '{ssh-credentials}'
508 - ssh-agent-credentials:
510 - '{ssh-credentials}'
516 - wipe-org-opendaylight-repo
517 - provide-maven-settings:
518 global-settings-file: '{odl-global-settings}'
519 settings-file: '{discovery-settings}'
522 maven-name: '{mvn33}'
524 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'
525 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
526 settings: '{discovery-settings}'
527 global-settings: '{odl-global-settings}'
530 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
532 application-name: discovery
535 - email-notification:
536 email-prefix: '[discovery]'
539 name: 'discovery-validate-autorelease-{stream}'
540 disabled: '{obj:disable_autorelease}'
548 daysToKeep: '{build-days-to-keep}'
549 numToKeep: '{build-num-to-keep}'
550 artifactDaysToKeep: '{build-artifact-days-to-keep}'
551 artifactNumToKeep: '{build-artifact-num-to-keep}'
558 - autorelease-release-tag:
559 release-tag: 'validate'
560 - autorelease-release-branch:
561 release-branch: '{branch}'
562 - autorelease-release-datestamp:
567 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
576 - autorelease-build-timeout
577 - ssh-agent-credentials:
579 - '{ssh-credentials}'
583 server-name: 'OpenDaylight'
585 - patchset-created-event:
586 exclude-drafts: 'false'
587 exclude-trivial-rebase: 'false'
588 exclude-no-code-change: 'false'
589 - draft-published-event
590 - comment-added-contains-event:
591 comment-contains-value: 'recheck'
592 - comment-added-contains-event:
593 comment-contains-value: 'reverify'
594 - comment-added-contains-event:
595 comment-contains-value: 'revalidate'
597 - project-compare-type: 'ANT'
598 project-pattern: 'discovery'
600 - branch-compare-type: 'ANT'
601 branch-pattern: '**/{branch}'
604 - wipe-org-opendaylight-repo
605 - jacoco-nojava-workaround
606 - autorelease-checkout-gerrit-patch
607 - autorelease-generate-taglist
608 - autorelease-generate-release-patches
610 maven-version: '{mvn33}'
611 pom: validate-pom.xml
612 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
615 settings: '{autorelease-settings}'
616 global-settings: '{odl-global-settings}'
619 maven-name: '{mvn33}'
621 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
622 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
623 settings: '{autorelease-settings}'
624 global-settings: '{odl-global-settings}'
625 automatic-archiving: false
626 post-step-run-condition: UNSTABLE
629 - shell: "./scripts/list-project-dependencies.sh"
630 - autorelease-sys-stats
635 - email-notification:
636 email-prefix: '[autorelease] [discovery]'