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 - 'openflowplugin-verify-{stream}'
10 - 'openflowplugin-merge-{stream}'
11 - 'openflowplugin-periodic-{stream}'
12 - 'openflowplugin-distribution-{stream}'
13 - 'openflowplugin-distribution-check-{stream}'
14 - 'openflowplugin-integration-{stream}'
15 - 'openflowplugin-sonar'
16 - 'openflowplugin-clm-{stream}'
17 - 'openflowplugin-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'
44 disable_autorelease: True
45 disable_distribution_check: True
47 project: 'openflowplugin'
49 # For the Job templates below replace instances of:
50 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
51 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
52 # MAVEN_GOALS with your maven goals to build
53 # MAVEN_OPTS with your maven options to build
56 name: 'openflowplugin-verify-{stream}'
58 # Job template for ODL verify jobs
60 # The purpose of this job template is to setup a ODL verify job
63 # stream: release stream (eg. stable-lithium or beryllium)
64 # branch: git branch (eg. stable/lithium or master)
81 daysToKeep: '{build-days-to-keep}'
82 numToKeep: '{build-num-to-keep}'
83 artifactDaysToKeep: '{build-artifact-days-to-keep}'
84 artifactNumToKeep: '{build-artifact-num-to-keep}'
92 refspec: 'refs/heads/{branch}'
96 credentials-id: '{ssh-credentials}'
97 refspec: '$GERRIT_REFSPEC'
98 choosing-strategy: 'gerrit'
102 - ssh-agent-credentials:
104 - '{ssh-credentials}'
107 - gerrit-trigger-patch-submitted:
108 name: 'openflowplugin'
112 - jacoco-nojava-workaround
113 - provide-maven-settings:
114 global-settings-file: 'odl-global-settings'
115 settings-file: 'openflowplugin-settings'
117 maven-version: '{mvn33}'
119 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -V -B -Djenkins -Dstream={stream}'
121 - '-Xmx1024m -XX:MaxPermSize=256m'
122 settings: 'openflowplugin-settings'
124 global-settings: 'odl-global-settings'
125 global-settings-type: cfp
129 artifacts: '**/target/surefire-reports/*-output.txt, model/*/target/site/**'
131 - email-notification:
132 email-prefix: '[openflowplugin]'
135 maven-version: '{mvn33}'
138 name: 'openflowplugin-merge-{stream}'
140 # Job template for ODL merge jobs
142 # The purpose of this job template is to setup a ODL merge job
143 # and deploy artifacts to Nexus.
145 # Required Variables:
146 # stream: release stream (eg. stable-lithium or beryllium)
147 # branch: git branch (eg. stable/lithium or master)
156 artifactDaysToKeep: '{build-artifact-days-to-keep}'
157 artifactNumToKeep: '{build-artifact-num-to-keep}'
165 refspec: 'refs/heads/{branch}'
168 - gerrit-trigger-scm:
169 credentials-id: '{ssh-credentials}'
171 choosing-strategy: 'default'
175 - ssh-agent-credentials:
177 - '{ssh-credentials}'
181 - gerrit-trigger-patch-merged:
182 name: 'openflowplugin'
186 - jacoco-nojava-workaround
187 - provide-maven-settings:
188 global-settings-file: 'odl-global-settings'
189 settings-file: 'openflowplugin-settings'
192 maven-name: '{mvn33}'
194 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -V -B -Djenkins -Dmerge -Dstream={stream}'
195 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
196 settings: 'openflowplugin-settings'
198 global-settings: 'odl-global-settings'
199 global-settings-type: cfp
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 -V -B -Dstream={stream}'
221 settings: 'openflowplugin-settings'
223 global-settings: 'odl-global-settings'
224 global-settings-type: cfp
226 maven-version: '{mvn33}'
228 goals: 'site:deploy -V -B -Dstream={stream}'
231 settings: 'openflowplugin-settings'
233 global-settings: 'odl-global-settings'
234 global-settings-type: cfp
241 artifacts: '**/target/surefire-reports/*-output.txt, model/*/target/site/**'
242 - email-notification:
243 email-prefix: '[openflowplugin]'
247 deploy-unstable: false
250 maven-version: '{mvn33}'
253 name: 'openflowplugin-periodic-{stream}'
256 # Job template for periodic builders
258 # The purpose of this job template is to setup a periodic
261 # Required Variables:
262 # stream: release stream (eg. stable-lithium or beryllium)
263 # branch: git branch (eg. stable/lithium or master)
272 artifactDaysToKeep: '{build-artifact-days-to-keep}'
273 artifactNumToKeep: '{build-artifact-num-to-keep}'
281 credentials-id: '{ssh-credentials}'
287 - ssh-agent-credentials:
289 - '{ssh-credentials}'
295 - jacoco-nojava-workaround
296 - provide-maven-settings:
297 global-settings-file: 'odl-global-settings'
298 settings-file: 'openflowplugin-settings'
301 maven-name: '{mvn33}'
303 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -V -B -Djenkins'
304 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
305 settings: 'openflowplugin-settings'
307 global-settings: 'odl-global-settings'
308 global-settings-type: cfp
314 - email-notification:
315 email-prefix: '[openflowplugin]'
318 maven-version: '{mvn33}'
321 name: 'openflowplugin-distribution-{stream}'
323 # Required variables:
324 # stream: release stream (eg. stable-lithium or beryllium)
325 # branch: git branch (eg. stable/lithium or master)
332 daysToKeep: '{build-days-to-keep}'
333 numToKeep: '{build-num-to-keep}'
334 artifactDaysToKeep: '{build-artifact-days-to-keep}'
335 artifactNumToKeep: '{build-artifact-num-to-keep}'
339 project: 'integration/distribution'
343 credentials-id: '{ssh-credentials}'
349 - ssh-agent-credentials:
351 - '{ssh-credentials}'
355 jobs: '{project}-merge-{stream}'
359 - provide-maven-settings:
360 global-settings-file: 'odl-global-settings'
361 settings-file: 'openflowplugin-settings'
364 maven-name: '{mvn33}'
366 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
367 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
368 settings: 'integration-distribution-settings'
370 global-settings: 'odl-global-settings'
371 global-settings-type: cfp
374 - email-notification:
375 email-prefix: '[{project}]'
379 deploy-unstable: false
381 maven-version: '{mvn33}'
383 # Template: integration-patch-distribution-{stream}
384 # Goal: Build a patch and make sure the distribution can deploy with this change
385 # Operation: This job template builds a patch, creates a distribution containing
386 # the patch, and triggers the distribution deploy test
389 name: 'openflowplugin-distribution-check-{stream}'
390 disabled: '{obj:disable_distribution_check}'
398 daysToKeep: '{build-days-to-keep}'
399 numToKeep: '{build-num-to-keep}'
400 artifactDaysToKeep: '{build-artifact-days-to-keep}'
401 artifactNumToKeep: '{build-artifact-num-to-keep}'
407 refspec: 'refs/heads/{branch}'
410 - integration-distribution-git-url
413 - integration-gerrit-scm:
414 credentials-id: '{ssh-credentials}'
415 basedir: '$GERRIT_PROJECT'
416 refspec: '$GERRIT_REFSPEC'
418 - integration-distribution-scm:
419 credentials-id: '{ssh-credentials}'
424 - ssh-agent-credentials:
426 - '{ssh-credentials}'
430 server-name: 'OpenDaylight'
432 - patchset-created-event:
433 exclude-drafts: 'true'
434 exclude-trivial-rebase: 'false'
435 exclude-no-code-change: 'true'
436 - draft-published-event
437 - comment-added-contains-event:
438 comment-contains-value: 'test-distribution'
439 - comment-added-contains-event:
440 comment-contains-value: 'reverify'
441 - comment-added-contains-event:
442 comment-contains-value: 'recheck'
444 - project-compare-type: 'ANT'
445 project-pattern: '{name}'
447 - branch-compare-type: 'ANT'
448 branch-pattern: '**/{branch}'
457 maven-version: '{mvn33}'
458 pom: '$GERRIT_PROJECT/pom.xml'
459 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}'
461 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
462 settings: 'openflowplugin-settings'
464 global-settings: 'odl-global-settings'
465 global-settings-type: cfp
468 maven-name: '{mvn33}'
469 root-pom: 'distribution/pom.xml'
470 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
471 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
472 settings: 'openflowplugin-settings'
474 global-settings: 'odl-global-settings'
475 global-settings-type: cfp
476 ignore-upstream-changes: true
477 post-step-run-condition: 'SUCCESS'
480 - integration-distribution-check
484 artifacts: 'karaf.log'
486 artifacts: 'karaf_console.log'
487 - email-notification:
488 email-prefix: '[openflowplugin]'
490 maven-version: '{mvn33}'
493 name: 'openflowplugin-integration-{stream}'
496 # Job template for ODL integration verify jobs
498 # This is similar to a normal verify job, but it runs
499 # when a project that's a dependency of your project
500 # is successfully built.
502 # Required Variables:
503 # stream: release stream (eg. stable-lithium or beryllium)
504 # branch: git branch (eg. stable/lithium or master)
511 daysToKeep: '{build-days-to-keep}'
512 numToKeep: '{build-num-to-keep}'
513 artifactDaysToKeep: '{build-artifact-days-to-keep}'
514 artifactNumToKeep: '{build-artifact-num-to-keep}'
522 credentials-id: '{ssh-credentials}'
528 - ssh-agent-credentials:
530 - '{ssh-credentials}'
534 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream}'
538 - jacoco-nojava-workaround
539 - provide-maven-settings:
540 global-settings-file: 'odl-global-settings'
541 settings-file: 'openflowplugin-settings'
544 maven-name: '{mvn33}'
546 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -V -B -Djenkins'
547 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
548 settings: 'openflowplugin-settings'
550 global-settings: 'odl-global-settings'
551 global-settings-type: cfp
557 - email-notification:
558 email-prefix: '[openflowplugin] [odlparent] [yangtools] [controller] [openflowjava]'
561 maven-version: '{mvn33}'
564 name: 'openflowplugin-sonar'
574 artifactDaysToKeep: '1'
575 artifactNumToKeep: '1'
583 credentials-id: '{ssh-credentials}'
589 - ssh-agent-credentials:
591 - '{ssh-credentials}'
595 - gerrit-trigger-patch-sonar:
596 name: 'openflowplugin'
599 - jacoco-nojava-workaround
600 - provide-maven-settings:
601 global-settings-file: 'odl-global-settings'
602 settings-file: 'openflowplugin-settings'
605 maven-name: '{mvn33}'
607 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -V -B -Djenkins -Dsonar'
608 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
609 settings: 'openflowplugin-settings'
611 global-settings: 'odl-global-settings'
612 global-settings-type: cfp
620 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
621 - email-notification:
622 email-prefix: '[openflowplugin]'
625 maven-version: '{mvn33}'
628 name: 'openflowplugin-clm-{stream}'
636 daysToKeep: '{build-days-to-keep}'
637 numToKeep: '{build-num-to-keep}'
638 artifactDaysToKeep: '{build-artifact-days-to-keep}'
639 artifactNumToKeep: '{build-artifact-num-to-keep}'
647 credentials-id: '{ssh-credentials}'
653 - ssh-agent-credentials:
655 - '{ssh-credentials}'
661 - provide-maven-settings:
662 global-settings-file: 'odl-global-settings'
663 settings-file: 'openflowplugin-settings'
666 maven-name: '{mvn33}'
668 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'
669 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
670 settings: 'openflowplugin-settings'
672 global-settings: 'odl-global-settings'
673 global-settings-type: cfp
676 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
678 application-name: openflowplugin
681 - email-notification:
682 email-prefix: '[openflowplugin]'
684 maven-version: '{mvn33}'
687 name: 'openflowplugin-validate-autorelease-{stream}'
688 disabled: '{obj:disable_autorelease}'
696 daysToKeep: '{build-days-to-keep}'
697 numToKeep: '{build-num-to-keep}'
698 artifactDaysToKeep: '{build-artifact-days-to-keep}'
699 artifactNumToKeep: '{build-artifact-num-to-keep}'
707 refspec: 'refs/heads/{branch}'
708 - autorelease-release-tag:
709 release-tag: 'validate'
710 - autorelease-release-branch:
711 release-branch: '{branch}'
714 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
715 description: "Autorelease clone URL"
720 credentials-id: '{ssh-credentials}'
730 - autorelease-build-timeout
731 - ssh-agent-credentials:
733 - '{ssh-credentials}'
737 server-name: 'OpenDaylight'
739 - patchset-created-event:
740 exclude-drafts: 'true'
741 exclude-trivial-rebase: 'false'
742 exclude-no-code-change: 'true'
743 - draft-published-event
744 - comment-added-contains-event:
745 comment-contains-value: 'recheck'
746 - comment-added-contains-event:
747 comment-contains-value: 'reverify'
748 - comment-added-contains-event:
749 comment-contains-value: 'revalidate'
751 - project-compare-type: 'ANT'
752 project-pattern: 'openflowplugin'
754 - branch-compare-type: 'ANT'
755 branch-pattern: '**/{branch}'
761 - jacoco-nojava-workaround
762 - autorelease-checkout-gerrit-patch
763 - autorelease-generate-release-patches
765 maven-version: '{mvn33}'
766 pom: validate-pom.xml
767 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'
770 settings: 'autorelease-settings'
772 global-settings: 'odl-global-settings'
773 global-settings-type: cfp
776 maven-name: '{mvn33}'
778 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
779 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
780 settings: 'autorelease-settings'
782 global-settings: 'odl-global-settings'
783 global-settings-type: cfp
784 automatic-archiving: false
785 post-step-run-condition: UNSTABLE
788 - autorelease-sys-stats
791 - email-notification:
792 email-prefix: '[autorelease] [openflowplugin]'
794 maven-version: '{mvn33}'