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]'
128 name: 'netvirt-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)
146 artifactDaysToKeep: '{build-artifact-days-to-keep}'
147 artifactNumToKeep: '{build-artifact-num-to-keep}'
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: 'netvirt-settings'
183 maven-name: '{mvn33}'
185 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
186 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
187 settings: 'netvirt-settings'
189 global-settings: 'odl-global-settings'
190 global-settings-type: cfp
191 post-step-run-condition: UNSTABLE
195 condition-kind: file-exists
196 condition-filename: deploy-site.xml
197 condition-basedir: workspace
199 # The strategy here is intentional to run Maven site:deploy twice
200 # once using regular pom.xml to produce a staged-site which is
201 # then used by deploy-site.xml to push to Nexus. This is a
202 # workaround to Maven Site's default linking code which creates
203 # incorrect URLs for sites due to auto-detection assuming your
204 # project is configured in a certain way which ODL is not.
207 maven-version: '{mvn33}'
209 goals: 'site:deploy -V -B -Dstream={stream}'
212 settings: 'netvirt-settings'
214 global-settings: 'odl-global-settings'
215 global-settings-type: cfp
217 maven-version: '{mvn33}'
219 goals: 'site:deploy -V -B -Dstream={stream}'
222 settings: 'netvirt-settings'
224 global-settings: 'odl-global-settings'
225 global-settings-type: cfp
232 artifacts: '**/target/surefire-reports/*-output.txt, '
233 - email-notification:
234 email-prefix: '[netvirt]'
238 deploy-unstable: false
242 name: 'netvirt-periodic-{stream}'
245 # Job template for periodic builders
247 # The purpose of this job template is to setup a periodic
250 # Required Variables:
251 # stream: release stream (eg. stable-lithium or beryllium)
252 # branch: git branch (eg. stable/lithium or master)
261 artifactDaysToKeep: '{build-artifact-days-to-keep}'
262 artifactNumToKeep: '{build-artifact-num-to-keep}'
270 credentials-id: '{ssh-credentials}'
276 - ssh-agent-credentials:
278 - '{ssh-credentials}'
284 - wipe-org-opendaylight-repo
285 - jacoco-nojava-workaround
286 - provide-maven-settings:
287 global-settings-file: 'odl-global-settings'
288 settings-file: 'netvirt-settings'
291 maven-name: '{mvn33}'
293 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
294 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
295 settings: 'netvirt-settings'
297 global-settings: 'odl-global-settings'
298 global-settings-type: cfp
304 - email-notification:
305 email-prefix: '[netvirt]'
309 name: 'netvirt-distribution-{stream}'
311 # Required variables:
312 # stream: release stream (eg. stable-lithium or beryllium)
313 # branch: git branch (eg. stable/lithium or master)
320 daysToKeep: '{build-days-to-keep}'
321 numToKeep: '{build-num-to-keep}'
322 artifactDaysToKeep: '{build-artifact-days-to-keep}'
323 artifactNumToKeep: '{build-artifact-num-to-keep}'
327 project: 'integration/distribution'
331 credentials-id: '{ssh-credentials}'
337 - ssh-agent-credentials:
339 - '{ssh-credentials}'
343 jobs: '{project}-merge-{stream}'
347 - wipe-org-opendaylight-repo
348 - provide-maven-settings:
349 global-settings-file: 'odl-global-settings'
350 settings-file: 'netvirt-settings'
353 maven-name: '{mvn33}'
355 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
356 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
357 settings: 'integration-distribution-settings'
359 global-settings: 'odl-global-settings'
360 global-settings-type: cfp
363 - email-notification:
364 email-prefix: '[{project}]'
368 deploy-unstable: false
370 # Template: integration-patch-distribution-{stream}
371 # Goal: Build a patch and make sure the distribution can deploy with this change
372 # Operation: This job template builds a patch, creates a distribution containing
373 # the patch, and triggers the distribution deploy test
376 name: 'netvirt-distribution-check-{stream}'
377 disabled: '{obj:disable_distribution_check}'
385 daysToKeep: '{build-days-to-keep}'
386 numToKeep: '{build-num-to-keep}'
387 artifactDaysToKeep: '{build-artifact-days-to-keep}'
388 artifactNumToKeep: '{build-artifact-num-to-keep}'
394 refspec: 'refs/heads/{branch}'
397 - integration-distribution-git-url
400 - integration-gerrit-scm:
401 credentials-id: '{ssh-credentials}'
402 basedir: '$GERRIT_PROJECT'
403 refspec: '$GERRIT_REFSPEC'
405 - integration-distribution-scm:
406 credentials-id: '{ssh-credentials}'
411 - ssh-agent-credentials:
413 - '{ssh-credentials}'
417 server-name: 'OpenDaylight'
419 - patchset-created-event:
420 exclude-drafts: 'true'
421 exclude-trivial-rebase: 'false'
422 exclude-no-code-change: 'true'
423 - draft-published-event
424 - comment-added-contains-event:
425 comment-contains-value: 'test-distribution'
426 - comment-added-contains-event:
427 comment-contains-value: 'reverify'
428 - comment-added-contains-event:
429 comment-contains-value: 'recheck'
431 - project-compare-type: 'ANT'
432 project-pattern: '{name}'
434 - branch-compare-type: 'ANT'
435 branch-pattern: '**/{branch}'
443 - wipe-org-opendaylight-repo
445 maven-version: '{mvn33}'
446 pom: '$GERRIT_PROJECT/pom.xml'
447 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}'
449 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
450 settings: 'netvirt-settings'
452 global-settings: 'odl-global-settings'
453 global-settings-type: cfp
456 maven-name: '{mvn33}'
457 root-pom: 'distribution/pom.xml'
458 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
459 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
460 settings: 'netvirt-settings'
462 global-settings: 'odl-global-settings'
463 global-settings-type: cfp
464 ignore-upstream-changes: true
465 post-step-run-condition: 'SUCCESS'
468 - integration-distribution-check
472 artifacts: 'karaf.log'
474 artifacts: 'karaf_console.log'
475 - email-notification:
476 email-prefix: '[netvirt]'
479 name: 'netvirt-integration-{stream}'
482 # Job template for ODL integration verify jobs
484 # This is similar to a normal verify job, but it runs
485 # when a project that's a dependency of your project
486 # is successfully built.
488 # Required Variables:
489 # stream: release stream (eg. stable-lithium or beryllium)
490 # branch: git branch (eg. stable/lithium or master)
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}'
520 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}'
524 - wipe-org-opendaylight-repo
525 - jacoco-nojava-workaround
526 - provide-maven-settings:
527 global-settings-file: 'odl-global-settings'
528 settings-file: 'netvirt-settings'
531 maven-name: '{mvn33}'
533 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
534 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
535 settings: 'netvirt-settings'
537 global-settings: 'odl-global-settings'
538 global-settings-type: cfp
544 - email-notification:
545 email-prefix: '[netvirt] [controller] [neutron] [odlparent] [openflowjava] [openflowplugin] [ovsdb] [sfc] [yangtools]'
549 name: 'netvirt-clm-{stream}'
557 daysToKeep: '{build-days-to-keep}'
558 numToKeep: '{build-num-to-keep}'
559 artifactDaysToKeep: '{build-artifact-days-to-keep}'
560 artifactNumToKeep: '{build-artifact-num-to-keep}'
568 credentials-id: '{ssh-credentials}'
574 - ssh-agent-credentials:
576 - '{ssh-credentials}'
582 - wipe-org-opendaylight-repo
583 - provide-maven-settings:
584 global-settings-file: 'odl-global-settings'
585 settings-file: 'netvirt-settings'
588 maven-name: '{mvn33}'
590 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'
591 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
592 settings: 'netvirt-settings'
594 global-settings: 'odl-global-settings'
595 global-settings-type: cfp
598 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
600 application-name: netvirt
603 - email-notification:
604 email-prefix: '[netvirt]'
607 name: 'netvirt-validate-autorelease-{stream}'
608 disabled: '{obj:disable_autorelease}'
616 daysToKeep: '{build-days-to-keep}'
617 numToKeep: '{build-num-to-keep}'
618 artifactDaysToKeep: '{build-artifact-days-to-keep}'
619 artifactNumToKeep: '{build-artifact-num-to-keep}'
627 refspec: 'refs/heads/{branch}'
628 - autorelease-release-tag:
629 release-tag: 'validate'
630 - autorelease-release-branch:
631 release-branch: '{branch}'
634 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
635 description: "Autorelease clone URL"
640 credentials-id: '{ssh-credentials}'
650 - autorelease-build-timeout
651 - ssh-agent-credentials:
653 - '{ssh-credentials}'
657 server-name: 'OpenDaylight'
659 - patchset-created-event:
660 exclude-drafts: 'true'
661 exclude-trivial-rebase: 'false'
662 exclude-no-code-change: 'true'
663 - draft-published-event
664 - comment-added-contains-event:
665 comment-contains-value: 'recheck'
666 - comment-added-contains-event:
667 comment-contains-value: 'reverify'
668 - comment-added-contains-event:
669 comment-contains-value: 'revalidate'
671 - project-compare-type: 'ANT'
672 project-pattern: 'netvirt'
674 - branch-compare-type: 'ANT'
675 branch-pattern: '**/{branch}'
681 - wipe-org-opendaylight-repo
682 - jacoco-nojava-workaround
683 - autorelease-checkout-gerrit-patch
684 - autorelease-generate-release-patches
686 maven-version: '{mvn33}'
687 pom: validate-pom.xml
688 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'
691 settings: 'autorelease-settings'
693 global-settings: 'odl-global-settings'
694 global-settings-type: cfp
697 maven-name: '{mvn33}'
699 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
700 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
701 settings: 'autorelease-settings'
703 global-settings: 'odl-global-settings'
704 global-settings-type: cfp
705 automatic-archiving: false
706 post-step-run-condition: UNSTABLE
709 - autorelease-sys-stats
712 - email-notification:
713 email-prefix: '[autorelease] [netvirt]'