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
46 branch: 'stable/helium'
50 disable_autorelease: True
51 disable_distribution_check: True
55 # For the Job templates below replace instances of:
56 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
57 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
58 # MAVEN_GOALS with your maven goals to build
59 # MAVEN_OPTS with your maven options to build
62 name: 'l2switch-verify-{stream}'
64 # Job template for ODL verify jobs
66 # The purpose of this job template is to setup a ODL verify job
69 # stream: release stream (eg. stable-lithium or beryllium)
70 # branch: git branch (eg. stable/lithium or master)
87 daysToKeep: '{build-days-to-keep}'
88 numToKeep: '{build-num-to-keep}'
89 artifactDaysToKeep: '{build-artifact-days-to-keep}'
90 artifactNumToKeep: '{build-artifact-num-to-keep}'
97 - gerrit-refspec-parameter:
98 refspec: 'refs/heads/{branch}'
101 - gerrit-trigger-scm:
102 credentials-id: '{ssh-credentials}'
103 refspec: '$GERRIT_REFSPEC'
104 choosing-strategy: 'gerrit'
108 - ssh-agent-credentials:
110 - '{ssh-credentials}'
113 - gerrit-trigger-patch-submitted:
118 - wipe-org-opendaylight-repo
119 - jacoco-nojava-workaround
120 - provide-maven-settings:
121 global-settings-file: '{odl-global-settings}'
122 settings-file: '{l2switch-settings}'
124 maven-version: '{mvn33}'
126 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Djenkins -Dstream={stream}'
128 - '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
129 settings: '{l2switch-settings}'
130 global-settings: '{odl-global-settings}'
134 - email-notification:
135 email-prefix: '[l2switch]'
139 name: 'l2switch-merge-{stream}'
141 # Job template for ODL merge jobs
143 # The purpose of this job template is to setup a ODL merge job
144 # and deploy artifacts to Nexus.
146 # Required Variables:
147 # stream: release stream (eg. stable-lithium or beryllium)
148 # branch: git branch (eg. stable/lithium or master)
157 artifactDaysToKeep: '{build-artifact-days-to-keep}'
158 artifactNumToKeep: '{build-artifact-num-to-keep}'
165 - gerrit-refspec-parameter:
166 refspec: 'refs/heads/{branch}'
169 - gerrit-trigger-scm:
170 credentials-id: '{ssh-credentials}'
172 choosing-strategy: 'default'
176 - ssh-agent-credentials:
178 - '{ssh-credentials}'
182 - gerrit-trigger-patch-merged:
187 - wipe-org-opendaylight-repo
188 - jacoco-nojava-workaround
189 - provide-maven-settings:
190 global-settings-file: '{odl-global-settings}'
191 settings-file: '{l2switch-settings}'
194 maven-name: '{mvn33}'
196 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Djenkins -Dmerge -Dstream={stream}'
197 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
198 settings: '{l2switch-settings}'
199 global-settings: '{odl-global-settings}'
200 post-step-run-condition: UNSTABLE
204 condition-kind: file-exists
205 condition-filename: deploy-site.xml
206 condition-basedir: workspace
208 # The strategy here is intentional to run Maven site:deploy twice
209 # once using regular pom.xml to produce a staged-site which is
210 # then used by deploy-site.xml to push to Nexus. This is a
211 # workaround to Maven Site's default linking code which creates
212 # incorrect URLs for sites due to auto-detection assuming your
213 # project is configured in a certain way which ODL is not.
216 maven-version: '{mvn33}'
218 goals: 'site:deploy -Dstream={stream}'
221 settings: '{l2switch-settings}'
222 global-settings: '{odl-global-settings}'
224 maven-version: '{mvn33}'
226 goals: 'site:deploy -Dstream={stream}'
229 settings: '{l2switch-settings}'
230 global-settings: '{odl-global-settings}'
237 artifacts: '**/target/surefire-reports/*-output.txt, '
238 - email-notification:
239 email-prefix: '[l2switch]'
243 deploy-unstable: false
247 name: 'l2switch-periodic-{stream}'
250 # Job template for periodic builders
252 # The purpose of this job template is to setup a periodic
255 # Required Variables:
256 # stream: release stream (eg. stable-lithium or beryllium)
257 # branch: git branch (eg. stable/lithium or master)
266 artifactDaysToKeep: '{build-artifact-days-to-keep}'
267 artifactNumToKeep: '{build-artifact-num-to-keep}'
275 credentials-id: '{ssh-credentials}'
281 - ssh-agent-credentials:
283 - '{ssh-credentials}'
289 - wipe-org-opendaylight-repo
290 - jacoco-nojava-workaround
291 - provide-maven-settings:
292 global-settings-file: '{odl-global-settings}'
293 settings-file: '{l2switch-settings}'
296 maven-name: '{mvn33}'
298 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Djenkins'
299 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
300 settings: '{l2switch-settings}'
301 global-settings: '{odl-global-settings}'
307 - email-notification:
308 email-prefix: '[l2switch]'
312 name: 'l2switch-distribution-{stream}'
314 # Required variables:
315 # stream: release stream (eg. stable-lithium or beryllium)
316 # branch: git branch (eg. stable/lithium or master)
323 daysToKeep: '{build-days-to-keep}'
324 numToKeep: '{build-num-to-keep}'
325 artifactDaysToKeep: '{build-artifact-days-to-keep}'
326 artifactNumToKeep: '{build-artifact-num-to-keep}'
330 project: 'integration/distribution'
334 credentials-id: '{ssh-credentials}'
340 - ssh-agent-credentials:
342 - '{ssh-credentials}'
346 jobs: '{project}-merge-{stream}'
350 - wipe-org-opendaylight-repo
351 - provide-maven-settings:
352 global-settings-file: '{odl-global-settings}'
353 settings-file: '{l2switch-settings}'
356 maven-name: '{mvn33}'
358 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
359 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
360 settings: '{integration-settings}'
361 global-settings: '{odl-global-settings}'
364 - email-notification:
365 email-prefix: '[{project}]'
369 deploy-unstable: false
371 # Template: integration-patch-distribution-{stream}
372 # Goal: Build a patch and make sure the distribution can deploy with this change
373 # Operation: This job template builds a patch, creates a distribution containing
374 # the patch, and triggers the distribution deploy test
377 name: 'l2switch-distribution-check-{stream}'
378 disabled: '{obj:disable_distribution_check}'
387 artifactDaysToKeep: '{build-artifact-days-to-keep}'
388 artifactNumToKeep: '{build-artifact-num-to-keep}'
391 - gerrit-project-parameter:
393 - gerrit-refspec-parameter:
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'
427 - project-compare-type: 'ANT'
428 project-pattern: '{name}'
430 - branch-compare-type: 'ANT'
431 branch-pattern: '**/{branch}'
439 - integration-get-bundle-url
441 properties-file: 'bundle.txt'
442 - wipe-org-opendaylight-repo
444 maven-version: '{mvn33}'
445 pom: '$GERRIT_PROJECT/pom.xml'
446 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}'
448 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
449 settings: '{l2switch-settings}'
450 global-settings: '{odl-global-settings}'
453 maven-name: '{mvn33}'
454 root-pom: 'distribution/pom.xml'
455 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
456 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
457 settings: '{l2switch-settings}'
458 global-settings: '{odl-global-settings}'
459 ignore-upstream-changes: true
460 post-step-run-condition: 'SUCCESS'
464 - project: 'integration-distribution-deploy-{stream}'
466 predefined-parameters:
470 - email-notification:
471 email-prefix: '[l2switch]'
474 name: 'l2switch-integration-{stream}'
477 # Job template for ODL integration verify jobs
479 # This is similar to a normal verify job, but it runs
480 # when a project that's a dependency of your project
481 # is successfully built.
483 # Required Variables:
484 # stream: release stream (eg. stable-lithium or beryllium)
485 # branch: git branch (eg. stable/lithium or master)
492 daysToKeep: '{build-days-to-keep}'
493 numToKeep: '{build-num-to-keep}'
494 artifactDaysToKeep: '{build-artifact-days-to-keep}'
495 artifactNumToKeep: '{build-artifact-num-to-keep}'
503 credentials-id: '{ssh-credentials}'
509 - ssh-agent-credentials:
511 - '{ssh-credentials}'
515 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream},openflowplugin-merge-{stream}'
519 - wipe-org-opendaylight-repo
520 - jacoco-nojava-workaround
521 - provide-maven-settings:
522 global-settings-file: '{odl-global-settings}'
523 settings-file: '{l2switch-settings}'
526 maven-name: '{mvn33}'
528 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Djenkins'
529 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
530 settings: '{l2switch-settings}'
531 global-settings: '{odl-global-settings}'
537 - email-notification:
538 email-prefix: '[l2switch] [odlparent] [yangtools] [controller] [openflowjava] [openflowplugin]'
542 name: 'l2switch-sonar'
552 artifactDaysToKeep: '1'
553 artifactNumToKeep: '1'
561 credentials-id: '{ssh-credentials}'
567 - ssh-agent-credentials:
569 - '{ssh-credentials}'
573 - gerrit-trigger-patch-sonar:
577 - wipe-org-opendaylight-repo
578 - jacoco-nojava-workaround
579 - provide-maven-settings:
580 global-settings-file: '{odl-global-settings}'
581 settings-file: '{l2switch-settings}'
584 maven-name: '{mvn33}'
586 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install -Djenkins -Dsonar'
587 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
588 settings: '{l2switch-settings}'
589 global-settings: '{odl-global-settings}'
597 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
598 - email-notification:
599 email-prefix: '[l2switch]'
603 name: 'l2switch-clm-{stream}'
611 daysToKeep: '{build-days-to-keep}'
612 numToKeep: '{build-num-to-keep}'
613 artifactDaysToKeep: '{build-artifact-days-to-keep}'
614 artifactNumToKeep: '{build-artifact-num-to-keep}'
622 credentials-id: '{ssh-credentials}'
628 - ssh-agent-credentials:
630 - '{ssh-credentials}'
636 - wipe-org-opendaylight-repo
637 - provide-maven-settings:
638 global-settings-file: '{odl-global-settings}'
639 settings-file: '{l2switch-settings}'
642 maven-name: '{mvn33}'
644 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'
645 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
646 settings: '{l2switch-settings}'
647 global-settings: '{odl-global-settings}'
650 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
652 application-name: l2switch
655 - email-notification:
656 email-prefix: '[l2switch]'
659 name: 'l2switch-validate-autorelease-{stream}'
660 disabled: '{obj:disable_autorelease}'
668 daysToKeep: '{build-days-to-keep}'
669 numToKeep: '{build-num-to-keep}'
670 artifactDaysToKeep: '{build-artifact-days-to-keep}'
671 artifactNumToKeep: '{build-artifact-num-to-keep}'
678 - autorelease-release-tag:
679 release-tag: 'validate'
680 - autorelease-release-branch:
681 release-branch: '{branch}'
682 - autorelease-release-datestamp:
687 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
696 - autorelease-build-timeout
697 - ssh-agent-credentials:
699 - '{ssh-credentials}'
703 server-name: 'OpenDaylight'
705 - patchset-created-event:
706 exclude-drafts: 'false'
707 exclude-trivial-rebase: 'false'
708 exclude-no-code-change: 'false'
709 - draft-published-event
710 - comment-added-contains-event:
711 comment-contains-value: 'recheck'
712 - comment-added-contains-event:
713 comment-contains-value: 'reverify'
714 - comment-added-contains-event:
715 comment-contains-value: 'revalidate'
717 - project-compare-type: 'ANT'
718 project-pattern: 'l2switch'
720 - branch-compare-type: 'ANT'
721 branch-pattern: '**/{branch}'
724 - wipe-org-opendaylight-repo
725 - jacoco-nojava-workaround
726 - autorelease-checkout-gerrit-patch
727 - autorelease-generate-taglist
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 - shell: "./scripts/list-project-dependencies.sh"
750 - autorelease-sys-stats
755 - email-notification:
756 email-prefix: '[autorelease] [l2switch]'