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 - 'l2switch-verify-{stream}'
10 - 'l2switch-merge-{stream}'
11 - 'l2switch-periodic-{stream}'
12 - 'l2switch-distribution-{stream}'
13 - 'l2switch-distribution-check-{stream}'
14 - 'l2switch-integration-{stream}'
16 - 'l2switch-clm-{stream}'
17 - 'l2switch-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: 'l2switch-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: '{l2switch-settings}'
117 maven-version: '{mvn33}'
119 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Djenkins -Dstream={stream}'
121 - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
122 settings: '{l2switch-settings}'
123 global-settings: '{odl-global-settings}'
127 artifacts: '**/target/surefire-reports/*-output.txt, '
129 - email-notification:
130 email-prefix: '[l2switch]'
134 name: 'l2switch-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: '{l2switch-settings}'
189 maven-name: '{mvn33}'
191 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Djenkins -Dmerge -Dstream={stream}'
192 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
193 settings: '{l2switch-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: '{l2switch-settings}'
217 global-settings: '{odl-global-settings}'
219 maven-version: '{mvn33}'
221 goals: 'site:deploy -Dstream={stream}'
224 settings: '{l2switch-settings}'
225 global-settings: '{odl-global-settings}'
232 artifacts: '**/target/surefire-reports/*-output.txt, '
233 - email-notification:
234 email-prefix: '[l2switch]'
238 deploy-unstable: false
242 name: 'l2switch-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: '{l2switch-settings}'
291 maven-name: '{mvn33}'
293 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Djenkins'
294 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
295 settings: '{l2switch-settings}'
296 global-settings: '{odl-global-settings}'
302 - email-notification:
303 email-prefix: '[l2switch]'
307 name: 'l2switch-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: '{l2switch-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: 'l2switch-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: '{l2switch-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: '{l2switch-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: '[l2switch]'
471 name: 'l2switch-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: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream},openflowplugin-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: '{l2switch-settings}'
523 maven-name: '{mvn33}'
525 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Djenkins'
526 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
527 settings: '{l2switch-settings}'
528 global-settings: '{odl-global-settings}'
534 - email-notification:
535 email-prefix: '[l2switch] [odlparent] [yangtools] [controller] [openflowjava] [openflowplugin]'
539 name: 'l2switch-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: '{l2switch-settings}'
581 maven-name: '{mvn33}'
583 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Djenkins -Dsonar'
584 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
585 settings: '{l2switch-settings}'
586 global-settings: '{odl-global-settings}'
594 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
595 - email-notification:
596 email-prefix: '[l2switch]'
600 name: 'l2switch-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: '{l2switch-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: '{l2switch-settings}'
644 global-settings: '{odl-global-settings}'
647 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
649 application-name: l2switch
652 - email-notification:
653 email-prefix: '[l2switch]'
656 name: 'l2switch-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'
693 - autorelease-build-timeout
694 - ssh-agent-credentials:
696 - '{ssh-credentials}'
700 server-name: 'OpenDaylight'
702 - patchset-created-event:
703 exclude-drafts: 'false'
704 exclude-trivial-rebase: 'false'
705 exclude-no-code-change: 'false'
706 - draft-published-event
707 - comment-added-contains-event:
708 comment-contains-value: 'recheck'
709 - comment-added-contains-event:
710 comment-contains-value: 'reverify'
711 - comment-added-contains-event:
712 comment-contains-value: 'revalidate'
714 - project-compare-type: 'ANT'
715 project-pattern: 'l2switch'
717 - branch-compare-type: 'ANT'
718 branch-pattern: '**/{branch}'
724 - wipe-org-opendaylight-repo
725 - jacoco-nojava-workaround
726 - autorelease-checkout-gerrit-patch
727 - autorelease-generate-release-patches
729 maven-version: '{mvn33}'
730 pom: validate-pom.xml
731 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
734 settings: '{autorelease-settings}'
735 global-settings: '{odl-global-settings}'
738 maven-name: '{mvn33}'
740 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
741 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
742 settings: '{autorelease-settings}'
743 global-settings: '{odl-global-settings}'
744 automatic-archiving: false
745 post-step-run-condition: UNSTABLE
748 - autorelease-sys-stats
751 - email-notification:
752 email-prefix: '[autorelease] [l2switch]'