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 - 'netvirt-verify-{stream}'
10 - 'netvirt-merge-{stream}'
11 - 'netvirt-periodic-{stream}'
12 - 'netvirt-distribution-{stream}'
13 - 'netvirt-distribution-check-{stream}'
14 - 'netvirt-integration-{stream}'
15 - 'netvirt-clm-{stream}'
16 - 'netvirt-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
28 disable_distribution_check: False
30 branch: 'stable/beryllium'
35 disable_autorelease: False
36 disable_distribution_check: False
40 # For the Job templates below replace instances of:
41 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
42 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
43 # MAVEN_GOALS with your maven goals to build
44 # MAVEN_OPTS with your maven options to build
47 name: 'netvirt-verify-{stream}'
49 # Job template for ODL verify jobs
51 # The purpose of this job template is to setup a ODL verify job
54 # stream: release stream (eg. stable-lithium or beryllium)
55 # branch: git branch (eg. stable/lithium or master)
72 daysToKeep: '{build-days-to-keep}'
73 numToKeep: '{build-num-to-keep}'
74 artifactDaysToKeep: '{build-artifact-days-to-keep}'
75 artifactNumToKeep: '{build-artifact-num-to-keep}'
83 refspec: 'refs/heads/{branch}'
87 credentials-id: '{ssh-credentials}'
88 refspec: '$GERRIT_REFSPEC'
89 choosing-strategy: 'gerrit'
93 - ssh-agent-credentials:
98 - gerrit-trigger-patch-submitted:
103 - wipe-org-opendaylight-repo
104 - jacoco-nojava-workaround
105 - provide-maven-settings:
106 global-settings-file: 'odl-global-settings'
107 settings-file: 'netvirt-settings'
109 maven-version: '{mvn33}'
111 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
113 - '-Xmx1024m -XX:MaxPermSize=256m'
114 settings: 'netvirt-settings'
116 global-settings: 'odl-global-settings'
117 global-settings-type: cfp
121 artifacts: '**/target/surefire-reports/*-output.txt, '
123 - email-notification:
124 email-prefix: '[netvirt]'
127 maven-version: '{mvn33}'
130 name: 'netvirt-merge-{stream}'
132 # Job template for ODL merge jobs
134 # The purpose of this job template is to setup a ODL merge job
135 # and deploy artifacts to Nexus.
137 # Required Variables:
138 # stream: release stream (eg. stable-lithium or beryllium)
139 # branch: git branch (eg. stable/lithium or master)
148 artifactDaysToKeep: '{build-artifact-days-to-keep}'
149 artifactNumToKeep: '{build-artifact-num-to-keep}'
157 refspec: 'refs/heads/{branch}'
160 - gerrit-trigger-scm:
161 credentials-id: '{ssh-credentials}'
163 choosing-strategy: 'default'
167 - ssh-agent-credentials:
169 - '{ssh-credentials}'
173 - gerrit-trigger-patch-merged:
178 - wipe-org-opendaylight-repo
179 - jacoco-nojava-workaround
180 - provide-maven-settings:
181 global-settings-file: 'odl-global-settings'
182 settings-file: 'netvirt-settings'
185 maven-name: '{mvn33}'
187 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
188 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
189 settings: 'netvirt-settings'
191 global-settings: 'odl-global-settings'
192 global-settings-type: cfp
193 post-step-run-condition: UNSTABLE
197 condition-kind: file-exists
198 condition-filename: deploy-site.xml
199 condition-basedir: workspace
201 # The strategy here is intentional to run Maven site:deploy twice
202 # once using regular pom.xml to produce a staged-site which is
203 # then used by deploy-site.xml to push to Nexus. This is a
204 # workaround to Maven Site's default linking code which creates
205 # incorrect URLs for sites due to auto-detection assuming your
206 # project is configured in a certain way which ODL is not.
209 maven-version: '{mvn33}'
211 goals: 'site:deploy -V -B -Dstream={stream}'
214 settings: 'netvirt-settings'
216 global-settings: 'odl-global-settings'
217 global-settings-type: cfp
219 maven-version: '{mvn33}'
221 goals: 'site:deploy -V -B -Dstream={stream}'
224 settings: 'netvirt-settings'
226 global-settings: 'odl-global-settings'
227 global-settings-type: cfp
234 artifacts: '**/target/surefire-reports/*-output.txt, '
235 - email-notification:
236 email-prefix: '[netvirt]'
240 deploy-unstable: false
243 maven-version: '{mvn33}'
246 name: 'netvirt-periodic-{stream}'
249 # Job template for periodic builders
251 # The purpose of this job template is to setup a periodic
254 # Required Variables:
255 # stream: release stream (eg. stable-lithium or beryllium)
256 # branch: git branch (eg. stable/lithium or master)
265 artifactDaysToKeep: '{build-artifact-days-to-keep}'
266 artifactNumToKeep: '{build-artifact-num-to-keep}'
274 credentials-id: '{ssh-credentials}'
280 - ssh-agent-credentials:
282 - '{ssh-credentials}'
288 - wipe-org-opendaylight-repo
289 - jacoco-nojava-workaround
290 - provide-maven-settings:
291 global-settings-file: 'odl-global-settings'
292 settings-file: 'netvirt-settings'
295 maven-name: '{mvn33}'
297 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
298 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
299 settings: 'netvirt-settings'
301 global-settings: 'odl-global-settings'
302 global-settings-type: cfp
308 - email-notification:
309 email-prefix: '[netvirt]'
312 maven-version: '{mvn33}'
315 name: 'netvirt-distribution-{stream}'
317 # Required variables:
318 # stream: release stream (eg. stable-lithium or beryllium)
319 # branch: git branch (eg. stable/lithium or master)
326 daysToKeep: '{build-days-to-keep}'
327 numToKeep: '{build-num-to-keep}'
328 artifactDaysToKeep: '{build-artifact-days-to-keep}'
329 artifactNumToKeep: '{build-artifact-num-to-keep}'
333 project: 'integration/distribution'
337 credentials-id: '{ssh-credentials}'
343 - ssh-agent-credentials:
345 - '{ssh-credentials}'
349 jobs: '{project}-merge-{stream}'
353 - wipe-org-opendaylight-repo
354 - provide-maven-settings:
355 global-settings-file: 'odl-global-settings'
356 settings-file: 'netvirt-settings'
359 maven-name: '{mvn33}'
361 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
362 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
363 settings: 'integration-distribution-settings'
365 global-settings: 'odl-global-settings'
366 global-settings-type: cfp
369 - email-notification:
370 email-prefix: '[{project}]'
374 deploy-unstable: false
376 maven-version: '{mvn33}'
378 # Template: integration-patch-distribution-{stream}
379 # Goal: Build a patch and make sure the distribution can deploy with this change
380 # Operation: This job template builds a patch, creates a distribution containing
381 # the patch, and triggers the distribution deploy test
384 name: 'netvirt-distribution-check-{stream}'
385 disabled: '{obj:disable_distribution_check}'
393 daysToKeep: '{build-days-to-keep}'
394 numToKeep: '{build-num-to-keep}'
395 artifactDaysToKeep: '{build-artifact-days-to-keep}'
396 artifactNumToKeep: '{build-artifact-num-to-keep}'
402 refspec: 'refs/heads/{branch}'
405 - integration-distribution-git-url
408 - integration-gerrit-scm:
409 credentials-id: '{ssh-credentials}'
410 basedir: '$GERRIT_PROJECT'
411 refspec: '$GERRIT_REFSPEC'
413 - integration-distribution-scm:
414 credentials-id: '{ssh-credentials}'
419 - ssh-agent-credentials:
421 - '{ssh-credentials}'
425 server-name: 'OpenDaylight'
427 - patchset-created-event:
428 exclude-drafts: 'true'
429 exclude-trivial-rebase: 'false'
430 exclude-no-code-change: 'true'
431 - draft-published-event
432 - comment-added-contains-event:
433 comment-contains-value: 'test-distribution'
434 - comment-added-contains-event:
435 comment-contains-value: 'reverify'
436 - comment-added-contains-event:
437 comment-contains-value: 'recheck'
439 - project-compare-type: 'ANT'
440 project-pattern: '{name}'
442 - branch-compare-type: 'ANT'
443 branch-pattern: '**/{branch}'
451 - wipe-org-opendaylight-repo
453 maven-version: '{mvn33}'
454 pom: '$GERRIT_PROJECT/pom.xml'
455 goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
457 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
458 settings: 'netvirt-settings'
460 global-settings: 'odl-global-settings'
461 global-settings-type: cfp
464 maven-name: '{mvn33}'
465 root-pom: 'distribution/pom.xml'
466 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
467 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
468 settings: 'netvirt-settings'
470 global-settings: 'odl-global-settings'
471 global-settings-type: cfp
472 ignore-upstream-changes: true
473 post-step-run-condition: 'SUCCESS'
476 - integration-distribution-check
480 artifacts: 'karaf.log'
482 artifacts: 'karaf_console.log'
483 - email-notification:
484 email-prefix: '[netvirt]'
486 maven-version: '{mvn33}'
489 name: 'netvirt-integration-{stream}'
492 # Job template for ODL integration verify jobs
494 # This is similar to a normal verify job, but it runs
495 # when a project that's a dependency of your project
496 # is successfully built.
498 # Required Variables:
499 # stream: release stream (eg. stable-lithium or beryllium)
500 # branch: git branch (eg. stable/lithium or master)
507 daysToKeep: '{build-days-to-keep}'
508 numToKeep: '{build-num-to-keep}'
509 artifactDaysToKeep: '{build-artifact-days-to-keep}'
510 artifactNumToKeep: '{build-artifact-num-to-keep}'
518 credentials-id: '{ssh-credentials}'
524 - ssh-agent-credentials:
526 - '{ssh-credentials}'
530 jobs: 'controller-merge-{stream},neutron-merge-{stream},odlparent-merge-{stream},openflowjava-merge-{stream},openflowplugin-merge-{stream},ovsdb-merge-{stream},sfc-merge-{stream},yangtools-merge-{stream}'
534 - wipe-org-opendaylight-repo
535 - jacoco-nojava-workaround
536 - provide-maven-settings:
537 global-settings-file: 'odl-global-settings'
538 settings-file: 'netvirt-settings'
541 maven-name: '{mvn33}'
543 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
544 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
545 settings: 'netvirt-settings'
547 global-settings: 'odl-global-settings'
548 global-settings-type: cfp
554 - email-notification:
555 email-prefix: '[netvirt] [controller] [neutron] [odlparent] [openflowjava] [openflowplugin] [ovsdb] [sfc] [yangtools]'
558 maven-version: '{mvn33}'
561 name: 'netvirt-clm-{stream}'
569 daysToKeep: '{build-days-to-keep}'
570 numToKeep: '{build-num-to-keep}'
571 artifactDaysToKeep: '{build-artifact-days-to-keep}'
572 artifactNumToKeep: '{build-artifact-num-to-keep}'
580 credentials-id: '{ssh-credentials}'
586 - ssh-agent-credentials:
588 - '{ssh-credentials}'
594 - wipe-org-opendaylight-repo
595 - provide-maven-settings:
596 global-settings-file: 'odl-global-settings'
597 settings-file: 'netvirt-settings'
600 maven-name: '{mvn33}'
602 goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
603 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
604 settings: 'netvirt-settings'
606 global-settings: 'odl-global-settings'
607 global-settings-type: cfp
610 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
612 application-name: netvirt
615 - email-notification:
616 email-prefix: '[netvirt]'
618 maven-version: '{mvn33}'
621 name: 'netvirt-validate-autorelease-{stream}'
622 disabled: '{obj:disable_autorelease}'
630 daysToKeep: '{build-days-to-keep}'
631 numToKeep: '{build-num-to-keep}'
632 artifactDaysToKeep: '{build-artifact-days-to-keep}'
633 artifactNumToKeep: '{build-artifact-num-to-keep}'
641 refspec: 'refs/heads/{branch}'
642 - autorelease-release-tag:
643 release-tag: 'validate'
644 - autorelease-release-branch:
645 release-branch: '{branch}'
648 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
649 description: "Autorelease clone URL"
654 credentials-id: '{ssh-credentials}'
664 - autorelease-build-timeout
665 - ssh-agent-credentials:
667 - '{ssh-credentials}'
671 server-name: 'OpenDaylight'
673 - patchset-created-event:
674 exclude-drafts: 'true'
675 exclude-trivial-rebase: 'false'
676 exclude-no-code-change: 'true'
677 - draft-published-event
678 - comment-added-contains-event:
679 comment-contains-value: 'recheck'
680 - comment-added-contains-event:
681 comment-contains-value: 'reverify'
682 - comment-added-contains-event:
683 comment-contains-value: 'revalidate'
685 - project-compare-type: 'ANT'
686 project-pattern: 'netvirt'
688 - branch-compare-type: 'ANT'
689 branch-pattern: '**/{branch}'
695 - wipe-org-opendaylight-repo
696 - jacoco-nojava-workaround
697 - autorelease-checkout-gerrit-patch
698 - autorelease-generate-release-patches
700 maven-version: '{mvn33}'
701 pom: validate-pom.xml
702 goals: 'clean install -V -B -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
705 settings: 'autorelease-settings'
707 global-settings: 'odl-global-settings'
708 global-settings-type: cfp
711 maven-name: '{mvn33}'
713 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
714 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
715 settings: 'autorelease-settings'
717 global-settings: 'odl-global-settings'
718 global-settings-type: cfp
719 automatic-archiving: false
720 post-step-run-condition: UNSTABLE
723 - autorelease-sys-stats
726 - email-notification:
727 email-prefix: '[autorelease] [netvirt]'
729 maven-version: '{mvn33}'