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}'
16 - 'netvirt-clm-{stream}'
17 - 'netvirt-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
28 disable_autorelease: False
29 disable_distribution_check: False
31 branch: 'stable/beryllium'
36 disable_autorelease: False
37 disable_distribution_check: False
39 branch: 'stable/lithium'
43 disable_autorelease: True
44 disable_distribution_check: True
48 # For the Job templates below replace instances of:
49 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
50 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
51 # MAVEN_GOALS with your maven goals to build
52 # MAVEN_OPTS with your maven options to build
55 name: 'netvirt-verify-{stream}'
57 # Job template for ODL verify jobs
59 # The purpose of this job template is to setup a ODL verify job
62 # stream: release stream (eg. stable-lithium or beryllium)
63 # branch: git branch (eg. stable/lithium or master)
80 daysToKeep: '{build-days-to-keep}'
81 numToKeep: '{build-num-to-keep}'
82 artifactDaysToKeep: '{build-artifact-days-to-keep}'
83 artifactNumToKeep: '{build-artifact-num-to-keep}'
90 - gerrit-refspec-parameter:
91 refspec: 'refs/heads/{branch}'
95 credentials-id: '{ssh-credentials}'
96 refspec: '$GERRIT_REFSPEC'
97 choosing-strategy: 'gerrit'
101 - ssh-agent-credentials:
103 - '{ssh-credentials}'
106 - gerrit-trigger-patch-submitted:
111 - wipe-org-opendaylight-repo
112 - jacoco-nojava-workaround
113 - provide-maven-settings:
114 global-settings-file: '{odl-global-settings}'
115 settings-file: '{netvirt-settings}'
117 maven-version: '{mvn33}'
119 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
121 - '-Xmx1024m -XX:MaxPermSize=256m'
122 settings: '{netvirt-settings}'
123 global-settings: '{odl-global-settings}'
127 artifacts: '**/target/surefire-reports/*-output.txt, '
129 - email-notification:
130 email-prefix: '[netvirt]'
134 name: 'netvirt-merge-{stream}'
136 # Job template for ODL merge jobs
138 # The purpose of this job template is to setup a ODL merge job
139 # and deploy artifacts to Nexus.
141 # Required Variables:
142 # stream: release stream (eg. stable-lithium or beryllium)
143 # branch: git branch (eg. stable/lithium or master)
152 artifactDaysToKeep: '{build-artifact-days-to-keep}'
153 artifactNumToKeep: '{build-artifact-num-to-keep}'
160 - gerrit-refspec-parameter:
161 refspec: 'refs/heads/{branch}'
164 - gerrit-trigger-scm:
165 credentials-id: '{ssh-credentials}'
167 choosing-strategy: 'default'
171 - ssh-agent-credentials:
173 - '{ssh-credentials}'
177 - gerrit-trigger-patch-merged:
182 - wipe-org-opendaylight-repo
183 - jacoco-nojava-workaround
184 - provide-maven-settings:
185 global-settings-file: '{odl-global-settings}'
186 settings-file: '{netvirt-settings}'
189 maven-name: '{mvn33}'
191 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
192 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
193 settings: '{netvirt-settings}'
194 global-settings: '{odl-global-settings}'
195 post-step-run-condition: UNSTABLE
199 condition-kind: file-exists
200 condition-filename: deploy-site.xml
201 condition-basedir: workspace
203 # The strategy here is intentional to run Maven site:deploy twice
204 # once using regular pom.xml to produce a staged-site which is
205 # then used by deploy-site.xml to push to Nexus. This is a
206 # workaround to Maven Site's default linking code which creates
207 # incorrect URLs for sites due to auto-detection assuming your
208 # project is configured in a certain way which ODL is not.
211 maven-version: '{mvn33}'
213 goals: 'site:deploy -Dstream={stream}'
216 settings: '{netvirt-settings}'
217 global-settings: '{odl-global-settings}'
219 maven-version: '{mvn33}'
221 goals: 'site:deploy -Dstream={stream}'
224 settings: '{netvirt-settings}'
225 global-settings: '{odl-global-settings}'
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 -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
294 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
295 settings: '{netvirt-settings}'
296 global-settings: '{odl-global-settings}'
302 - email-notification:
303 email-prefix: '[netvirt]'
307 name: 'netvirt-distribution-{stream}'
309 # Required variables:
310 # stream: release stream (eg. stable-lithium or beryllium)
311 # branch: git branch (eg. stable/lithium or master)
318 daysToKeep: '{build-days-to-keep}'
319 numToKeep: '{build-num-to-keep}'
320 artifactDaysToKeep: '{build-artifact-days-to-keep}'
321 artifactNumToKeep: '{build-artifact-num-to-keep}'
325 project: 'integration/distribution'
329 credentials-id: '{ssh-credentials}'
335 - ssh-agent-credentials:
337 - '{ssh-credentials}'
341 jobs: '{project}-merge-{stream}'
345 - wipe-org-opendaylight-repo
346 - provide-maven-settings:
347 global-settings-file: '{odl-global-settings}'
348 settings-file: '{netvirt-settings}'
351 maven-name: '{mvn33}'
353 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
354 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
355 settings: '{integration-settings}'
356 global-settings: '{odl-global-settings}'
359 - email-notification:
360 email-prefix: '[{project}]'
364 deploy-unstable: false
366 # Template: integration-patch-distribution-{stream}
367 # Goal: Build a patch and make sure the distribution can deploy with this change
368 # Operation: This job template builds a patch, creates a distribution containing
369 # the patch, and triggers the distribution deploy test
372 name: 'netvirt-distribution-check-{stream}'
373 disabled: '{obj:disable_distribution_check}'
383 artifactDaysToKeep: '{build-artifact-days-to-keep}'
384 artifactNumToKeep: '{build-artifact-num-to-keep}'
387 - gerrit-project-parameter:
389 - gerrit-refspec-parameter:
393 - integration-distribution-git-url
396 - integration-gerrit-scm:
397 credentials-id: '{ssh-credentials}'
398 basedir: '$GERRIT_PROJECT'
399 refspec: '$GERRIT_REFSPEC'
401 - integration-distribution-scm:
402 credentials-id: '{ssh-credentials}'
407 - ssh-agent-credentials:
409 - '{ssh-credentials}'
413 server-name: 'OpenDaylight'
415 - patchset-created-event:
416 exclude-drafts: 'true'
417 exclude-trivial-rebase: 'false'
418 exclude-no-code-change: 'true'
419 - draft-published-event
420 - comment-added-contains-event:
421 comment-contains-value: 'test-distribution'
422 - comment-added-contains-event:
423 comment-contains-value: 'reverify'
424 - comment-added-contains-event:
425 comment-contains-value: 'recheck'
427 - project-compare-type: 'ANT'
428 project-pattern: '{name}'
430 - branch-compare-type: 'ANT'
431 branch-pattern: '**/{branch}'
439 - wipe-org-opendaylight-repo
441 maven-version: '{mvn33}'
442 pom: '$GERRIT_PROJECT/pom.xml'
443 goals: 'clean install -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}'
445 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
446 settings: '{netvirt-settings}'
447 global-settings: '{odl-global-settings}'
450 maven-name: '{mvn33}'
451 root-pom: 'distribution/pom.xml'
452 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
453 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
454 settings: '{netvirt-settings}'
455 global-settings: '{odl-global-settings}'
456 ignore-upstream-changes: true
457 post-step-run-condition: 'SUCCESS'
460 - integration-distribution-check
464 artifacts: 'karaf.log'
466 artifacts: 'karaf_console.log'
467 - email-notification:
468 email-prefix: '[netvirt]'
471 name: 'netvirt-integration-{stream}'
474 # Job template for ODL integration verify jobs
476 # This is similar to a normal verify job, but it runs
477 # when a project that's a dependency of your project
478 # is successfully built.
480 # Required Variables:
481 # stream: release stream (eg. stable-lithium or beryllium)
482 # branch: git branch (eg. stable/lithium or master)
489 daysToKeep: '{build-days-to-keep}'
490 numToKeep: '{build-num-to-keep}'
491 artifactDaysToKeep: '{build-artifact-days-to-keep}'
492 artifactNumToKeep: '{build-artifact-num-to-keep}'
500 credentials-id: '{ssh-credentials}'
506 - ssh-agent-credentials:
508 - '{ssh-credentials}'
512 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}'
516 - wipe-org-opendaylight-repo
517 - jacoco-nojava-workaround
518 - provide-maven-settings:
519 global-settings-file: '{odl-global-settings}'
520 settings-file: '{netvirt-settings}'
523 maven-name: '{mvn33}'
525 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
526 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
527 settings: '{netvirt-settings}'
528 global-settings: '{odl-global-settings}'
534 - email-notification:
535 email-prefix: '[netvirt] [controller] [neutron] [odlparent] [openflowjava] [openflowplugin] [ovsdb] [sfc] [yangtools]'
539 name: 'netvirt-sonar'
549 artifactDaysToKeep: '1'
550 artifactNumToKeep: '1'
558 credentials-id: '{ssh-credentials}'
564 - ssh-agent-credentials:
566 - '{ssh-credentials}'
570 - gerrit-trigger-patch-sonar:
574 - wipe-org-opendaylight-repo
575 - jacoco-nojava-workaround
576 - provide-maven-settings:
577 global-settings-file: '{odl-global-settings}'
578 settings-file: '{netvirt-settings}'
581 maven-name: '{mvn33}'
583 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
584 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
585 settings: '{netvirt-settings}'
586 global-settings: '{odl-global-settings}'
594 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
595 - email-notification:
596 email-prefix: '[netvirt]'
600 name: 'netvirt-clm-{stream}'
608 daysToKeep: '{build-days-to-keep}'
609 numToKeep: '{build-num-to-keep}'
610 artifactDaysToKeep: '{build-artifact-days-to-keep}'
611 artifactNumToKeep: '{build-artifact-num-to-keep}'
619 credentials-id: '{ssh-credentials}'
625 - ssh-agent-credentials:
627 - '{ssh-credentials}'
633 - wipe-org-opendaylight-repo
634 - provide-maven-settings:
635 global-settings-file: '{odl-global-settings}'
636 settings-file: '{netvirt-settings}'
639 maven-name: '{mvn33}'
641 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'
642 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
643 settings: '{netvirt-settings}'
644 global-settings: '{odl-global-settings}'
647 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
649 application-name: netvirt
652 - email-notification:
653 email-prefix: '[netvirt]'
656 name: 'netvirt-validate-autorelease-{stream}'
657 disabled: '{obj:disable_autorelease}'
665 daysToKeep: '{build-days-to-keep}'
666 numToKeep: '{build-num-to-keep}'
667 artifactDaysToKeep: '{build-artifact-days-to-keep}'
668 artifactNumToKeep: '{build-artifact-num-to-keep}'
675 - autorelease-release-tag:
676 release-tag: 'validate'
677 - autorelease-release-branch:
678 release-branch: '{branch}'
679 - autorelease-release-datestamp:
684 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
694 - autorelease-build-timeout
695 - ssh-agent-credentials:
697 - '{ssh-credentials}'
701 server-name: 'OpenDaylight'
703 - patchset-created-event:
704 exclude-drafts: 'false'
705 exclude-trivial-rebase: 'false'
706 exclude-no-code-change: 'false'
707 - draft-published-event
708 - comment-added-contains-event:
709 comment-contains-value: 'recheck'
710 - comment-added-contains-event:
711 comment-contains-value: 'reverify'
712 - comment-added-contains-event:
713 comment-contains-value: 'revalidate'
715 - project-compare-type: 'ANT'
716 project-pattern: 'netvirt'
718 - branch-compare-type: 'ANT'
719 branch-pattern: '**/{branch}'
725 - wipe-org-opendaylight-repo
726 - jacoco-nojava-workaround
727 - autorelease-checkout-gerrit-patch
728 - autorelease-generate-release-patches
730 maven-version: '{mvn33}'
731 pom: validate-pom.xml
732 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
735 settings: '{autorelease-settings}'
736 global-settings: '{odl-global-settings}'
739 maven-name: '{mvn33}'
741 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
742 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
743 settings: '{autorelease-settings}'
744 global-settings: '{odl-global-settings}'
745 automatic-archiving: false
746 post-step-run-condition: UNSTABLE
749 - autorelease-sys-stats
752 - email-notification:
753 email-prefix: '[autorelease] [netvirt]'