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 - 'of-config-verify-{stream}'
10 - 'of-config-merge-{stream}'
11 - 'of-config-periodic-{stream}'
12 - 'of-config-distribution-{stream}'
13 - 'of-config-integration-{stream}'
15 - 'of-config-clm-{stream}'
16 - 'of-config-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
39 # For the Job templates below replace instances of:
40 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
41 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
42 # MAVEN_GOALS with your maven goals to build
43 # MAVEN_OPTS with your maven options to build
46 name: 'of-config-verify-{stream}'
48 # Job template for ODL verify jobs
50 # The purpose of this job template is to setup a ODL verify job
53 # stream: release stream (eg. stable-lithium or beryllium)
54 # branch: git branch (eg. stable/lithium or master)
71 daysToKeep: '{build-days-to-keep}'
72 numToKeep: '{build-num-to-keep}'
73 artifactDaysToKeep: '{build-artifact-days-to-keep}'
74 artifactNumToKeep: '{build-artifact-num-to-keep}'
81 - gerrit-refspec-parameter:
82 refspec: 'refs/heads/{branch}'
86 credentials-id: '{ssh-credentials}'
87 refspec: '$GERRIT_REFSPEC'
88 choosing-strategy: 'gerrit'
92 - ssh-agent-credentials:
97 - gerrit-trigger-patch-submitted:
102 - wipe-org-opendaylight-repo
103 - jacoco-nojava-workaround
104 - provide-maven-settings:
105 global-settings-file: '{odl-global-settings}'
106 settings-file: '{of-config-settings}'
108 maven-version: '{mvn33}'
110 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
112 - '-Xmx1024m -XX:MaxPermSize=256m'
113 settings: '{of-config-settings}'
114 global-settings: '{odl-global-settings}'
118 - email-notification:
119 email-prefix: '[of-config]'
123 name: 'of-config-merge-{stream}'
125 # Job template for ODL merge jobs
127 # The purpose of this job template is to setup a ODL merge job
128 # and deploy artifacts to Nexus.
130 # Required Variables:
131 # stream: release stream (eg. stable-lithium or beryllium)
132 # branch: git branch (eg. stable/lithium or master)
141 artifactDaysToKeep: '{build-artifact-days-to-keep}'
142 artifactNumToKeep: '{build-artifact-num-to-keep}'
149 - gerrit-refspec-parameter:
150 refspec: 'refs/heads/{branch}'
153 - gerrit-trigger-scm:
154 credentials-id: '{ssh-credentials}'
156 choosing-strategy: 'default'
160 - ssh-agent-credentials:
162 - '{ssh-credentials}'
166 - gerrit-trigger-patch-merged:
171 - wipe-org-opendaylight-repo
172 - jacoco-nojava-workaround
173 - provide-maven-settings:
174 global-settings-file: '{odl-global-settings}'
175 settings-file: '{of-config-settings}'
178 maven-name: '{mvn33}'
180 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
181 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
182 settings: '{of-config-settings}'
183 global-settings: '{odl-global-settings}'
184 post-step-run-condition: UNSTABLE
188 condition-kind: file-exists
189 condition-filename: deploy-site.xml
190 condition-basedir: workspace
192 # The strategy here is intentional to run Maven site:deploy twice
193 # once using regular pom.xml to produce a staged-site which is
194 # then used by deploy-site.xml to push to Nexus. This is a
195 # workaround to Maven Site's default linking code which creates
196 # incorrect URLs for sites due to auto-detection assuming your
197 # project is configured in a certain way which ODL is not.
200 maven-version: '{mvn33}'
202 goals: 'site:deploy -Dstream={stream}'
205 settings: '{of-config-settings}'
206 global-settings: '{odl-global-settings}'
208 maven-version: '{mvn33}'
210 goals: 'site:deploy -Dstream={stream}'
213 settings: '{of-config-settings}'
214 global-settings: '{odl-global-settings}'
221 artifacts: '**/target/surefire-reports/*-output.txt, '
222 - email-notification:
223 email-prefix: '[of-config]'
227 deploy-unstable: false
231 name: 'of-config-periodic-{stream}'
234 # Job template for periodic builders
236 # The purpose of this job template is to setup a periodic
239 # Required Variables:
240 # stream: release stream (eg. stable-lithium or beryllium)
241 # branch: git branch (eg. stable/lithium or master)
250 artifactDaysToKeep: '{build-artifact-days-to-keep}'
251 artifactNumToKeep: '{build-artifact-num-to-keep}'
259 credentials-id: '{ssh-credentials}'
265 - ssh-agent-credentials:
267 - '{ssh-credentials}'
273 - wipe-org-opendaylight-repo
274 - jacoco-nojava-workaround
275 - provide-maven-settings:
276 global-settings-file: '{odl-global-settings}'
277 settings-file: '{of-config-settings}'
280 maven-name: '{mvn33}'
282 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
283 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
284 settings: '{of-config-settings}'
285 global-settings: '{odl-global-settings}'
291 - email-notification:
292 email-prefix: '[of-config]'
296 name: 'of-config-distribution-{stream}'
298 # Required variables:
299 # stream: release stream (eg. stable-lithium or beryllium)
300 # branch: git branch (eg. stable/lithium or master)
307 daysToKeep: '{build-days-to-keep}'
308 numToKeep: '{build-num-to-keep}'
309 artifactDaysToKeep: '{build-artifact-days-to-keep}'
310 artifactNumToKeep: '{build-artifact-num-to-keep}'
314 project: 'integration/distribution'
318 credentials-id: '{ssh-credentials}'
324 - ssh-agent-credentials:
326 - '{ssh-credentials}'
330 jobs: '{project}-merge-{stream}'
334 - wipe-org-opendaylight-repo
335 - provide-maven-settings:
336 global-settings-file: '{odl-global-settings}'
337 settings-file: '{of-config-settings}'
340 maven-name: '{mvn33}'
342 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
343 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
344 settings: '{integration-settings}'
345 global-settings: '{odl-global-settings}'
348 - email-notification:
349 email-prefix: '[{project}]'
353 deploy-unstable: false
356 name: 'of-config-integration-{stream}'
359 # Job template for ODL integration verify jobs
361 # This is similar to a normal verify job, but it runs
362 # when a project that's a dependency of your project
363 # is successfully built.
365 # Required Variables:
366 # stream: release stream (eg. stable-lithium or beryllium)
367 # branch: git branch (eg. stable/lithium or master)
374 daysToKeep: '{build-days-to-keep}'
375 numToKeep: '{build-num-to-keep}'
376 artifactDaysToKeep: '{build-artifact-days-to-keep}'
377 artifactNumToKeep: '{build-artifact-num-to-keep}'
385 credentials-id: '{ssh-credentials}'
391 - ssh-agent-credentials:
393 - '{ssh-credentials}'
397 jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},netconf-merge-{stream}'
401 - wipe-org-opendaylight-repo
402 - jacoco-nojava-workaround
403 - provide-maven-settings:
404 global-settings-file: '{odl-global-settings}'
405 settings-file: '{of-config-settings}'
408 maven-name: '{mvn33}'
410 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
411 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
412 settings: '{of-config-settings}'
413 global-settings: '{odl-global-settings}'
419 - email-notification:
420 email-prefix: '[of-config] [controller] [yangtools] [odlparent] [netconf]'
424 name: 'of-config-sonar'
434 artifactDaysToKeep: '1'
435 artifactNumToKeep: '1'
443 credentials-id: '{ssh-credentials}'
449 - ssh-agent-credentials:
451 - '{ssh-credentials}'
455 - gerrit-trigger-patch-sonar:
459 - wipe-org-opendaylight-repo
460 - jacoco-nojava-workaround
461 - provide-maven-settings:
462 global-settings-file: '{odl-global-settings}'
463 settings-file: '{of-config-settings}'
466 maven-name: '{mvn33}'
468 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
469 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
470 settings: '{of-config-settings}'
471 global-settings: '{odl-global-settings}'
479 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
480 - email-notification:
481 email-prefix: '[of-config]'
485 name: 'of-config-clm-{stream}'
493 daysToKeep: '{build-days-to-keep}'
494 numToKeep: '{build-num-to-keep}'
495 artifactDaysToKeep: '{build-artifact-days-to-keep}'
496 artifactNumToKeep: '{build-artifact-num-to-keep}'
504 credentials-id: '{ssh-credentials}'
510 - ssh-agent-credentials:
512 - '{ssh-credentials}'
518 - wipe-org-opendaylight-repo
519 - provide-maven-settings:
520 global-settings-file: '{odl-global-settings}'
521 settings-file: '{of-config-settings}'
524 maven-name: '{mvn33}'
526 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'
527 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
528 settings: '{of-config-settings}'
529 global-settings: '{odl-global-settings}'
532 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
534 application-name: of-config
537 - email-notification:
538 email-prefix: '[of-config]'
541 name: 'of-config-validate-autorelease-{stream}'
542 disabled: '{obj:disable_autorelease}'
550 daysToKeep: '{build-days-to-keep}'
551 numToKeep: '{build-num-to-keep}'
552 artifactDaysToKeep: '{build-artifact-days-to-keep}'
553 artifactNumToKeep: '{build-artifact-num-to-keep}'
560 - autorelease-release-tag:
561 release-tag: 'validate'
562 - autorelease-release-branch:
563 release-branch: '{branch}'
564 - autorelease-release-datestamp:
569 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
578 - autorelease-build-timeout
579 - ssh-agent-credentials:
581 - '{ssh-credentials}'
585 server-name: 'OpenDaylight'
587 - patchset-created-event:
588 exclude-drafts: 'false'
589 exclude-trivial-rebase: 'false'
590 exclude-no-code-change: 'false'
591 - draft-published-event
592 - comment-added-contains-event:
593 comment-contains-value: 'recheck'
594 - comment-added-contains-event:
595 comment-contains-value: 'reverify'
596 - comment-added-contains-event:
597 comment-contains-value: 'revalidate'
599 - project-compare-type: 'ANT'
600 project-pattern: 'of-config'
602 - branch-compare-type: 'ANT'
603 branch-pattern: '**/{branch}'
606 - wipe-org-opendaylight-repo
607 - jacoco-nojava-workaround
608 - autorelease-checkout-gerrit-patch
609 - autorelease-generate-taglist
610 - autorelease-generate-release-patches
612 maven-version: '{mvn33}'
613 pom: validate-pom.xml
614 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
617 settings: '{autorelease-settings}'
618 global-settings: '{odl-global-settings}'
621 maven-name: '{mvn33}'
623 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
624 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
625 settings: '{autorelease-settings}'
626 global-settings: '{odl-global-settings}'
627 automatic-archiving: false
628 post-step-run-condition: UNSTABLE
631 - shell: "./scripts/list-project-dependencies.sh"
632 - autorelease-sys-stats
637 - email-notification:
638 email-prefix: '[autorelease] [of-config]'