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)
89 refspec: 'refs/heads/{branch}'
93 credentials-id: '{ssh-credentials}'
94 refspec: '$GERRIT_REFSPEC'
95 choosing-strategy: 'gerrit'
99 - ssh-agent-credentials:
101 - '{ssh-credentials}'
104 - gerrit-trigger-patch-submitted:
105 name: 'openflowplugin'
109 - jacoco-nojava-workaround
110 - provide-maven-settings:
111 global-settings-file: 'odl-global-settings'
112 settings-file: 'openflowplugin-settings'
114 maven-version: '{mvn33}'
116 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -V -B -Djenkins -Dstream={stream}'
118 - '-Xmx1024m -XX:MaxPermSize=256m'
119 settings: 'openflowplugin-settings'
121 global-settings: 'odl-global-settings'
122 global-settings-type: cfp
126 artifacts: '**/target/surefire-reports/*-output.txt, model/*/target/site/**'
128 - email-notification:
129 email-prefix: '[openflowplugin]'
132 maven-version: '{mvn33}'
135 name: 'openflowplugin-merge-{stream}'
137 # Job template for ODL merge jobs
139 # The purpose of this job template is to setup a ODL merge job
140 # and deploy artifacts to Nexus.
142 # Required Variables:
143 # stream: release stream (eg. stable-lithium or beryllium)
144 # branch: git branch (eg. stable/lithium or master)
153 artifactDaysToKeep: '{build-artifact-days-to-keep}'
154 artifactNumToKeep: '{build-artifact-num-to-keep}'
162 refspec: 'refs/heads/{branch}'
165 - gerrit-trigger-scm:
166 credentials-id: '{ssh-credentials}'
168 choosing-strategy: 'default'
172 - ssh-agent-credentials:
174 - '{ssh-credentials}'
178 - gerrit-trigger-patch-merged:
179 name: 'openflowplugin'
183 - jacoco-nojava-workaround
184 - provide-maven-settings:
185 global-settings-file: 'odl-global-settings'
186 settings-file: 'openflowplugin-settings'
189 maven-name: '{mvn33}'
191 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -V -B -Djenkins -Dmerge -Dstream={stream}'
192 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
193 settings: 'openflowplugin-settings'
195 global-settings: 'odl-global-settings'
196 global-settings-type: cfp
197 post-step-run-condition: UNSTABLE
201 condition-kind: file-exists
202 condition-filename: deploy-site.xml
203 condition-basedir: workspace
205 # The strategy here is intentional to run Maven site:deploy twice
206 # once using regular pom.xml to produce a staged-site which is
207 # then used by deploy-site.xml to push to Nexus. This is a
208 # workaround to Maven Site's default linking code which creates
209 # incorrect URLs for sites due to auto-detection assuming your
210 # project is configured in a certain way which ODL is not.
213 maven-version: '{mvn33}'
215 goals: 'site:deploy -V -B -Dstream={stream}'
218 settings: 'openflowplugin-settings'
220 global-settings: 'odl-global-settings'
221 global-settings-type: cfp
223 maven-version: '{mvn33}'
225 goals: 'site:deploy -V -B -Dstream={stream}'
228 settings: 'openflowplugin-settings'
230 global-settings: 'odl-global-settings'
231 global-settings-type: cfp
238 artifacts: '**/target/surefire-reports/*-output.txt, model/*/target/site/**'
239 - email-notification:
240 email-prefix: '[openflowplugin]'
244 deploy-unstable: false
247 maven-version: '{mvn33}'
250 name: 'openflowplugin-periodic-{stream}'
253 # Job template for periodic builders
255 # The purpose of this job template is to setup a periodic
258 # Required Variables:
259 # stream: release stream (eg. stable-lithium or beryllium)
260 # branch: git branch (eg. stable/lithium or master)
269 artifactDaysToKeep: '{build-artifact-days-to-keep}'
270 artifactNumToKeep: '{build-artifact-num-to-keep}'
278 credentials-id: '{ssh-credentials}'
284 - ssh-agent-credentials:
286 - '{ssh-credentials}'
292 - jacoco-nojava-workaround
293 - provide-maven-settings:
294 global-settings-file: 'odl-global-settings'
295 settings-file: 'openflowplugin-settings'
298 maven-name: '{mvn33}'
300 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -V -B -Djenkins'
301 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
302 settings: 'openflowplugin-settings'
304 global-settings: 'odl-global-settings'
305 global-settings-type: cfp
311 - email-notification:
312 email-prefix: '[openflowplugin]'
315 maven-version: '{mvn33}'
318 name: 'openflowplugin-distribution-{stream}'
320 # Required variables:
321 # stream: release stream (eg. stable-lithium or beryllium)
322 # branch: git branch (eg. stable/lithium or master)
329 daysToKeep: '{build-days-to-keep}'
330 numToKeep: '{build-num-to-keep}'
331 artifactDaysToKeep: '{build-artifact-days-to-keep}'
332 artifactNumToKeep: '{build-artifact-num-to-keep}'
336 project: 'integration/distribution'
340 credentials-id: '{ssh-credentials}'
346 - ssh-agent-credentials:
348 - '{ssh-credentials}'
352 jobs: '{project}-merge-{stream}'
356 - provide-maven-settings:
357 global-settings-file: 'odl-global-settings'
358 settings-file: 'openflowplugin-settings'
361 maven-name: '{mvn33}'
363 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
364 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
365 settings: 'integration-distribution-settings'
367 global-settings: 'odl-global-settings'
368 global-settings-type: cfp
371 - email-notification:
372 email-prefix: '[{project}]'
376 deploy-unstable: false
378 maven-version: '{mvn33}'
380 # Template: integration-patch-distribution-{stream}
381 # Goal: Build a patch and make sure the distribution can deploy with this change
382 # Operation: This job template builds a patch, creates a distribution containing
383 # the patch, and triggers the distribution deploy test
386 name: 'openflowplugin-distribution-check-{stream}'
387 disabled: '{obj:disable_distribution_check}'
395 daysToKeep: '{build-days-to-keep}'
396 numToKeep: '{build-num-to-keep}'
397 artifactDaysToKeep: '{build-artifact-days-to-keep}'
398 artifactNumToKeep: '{build-artifact-num-to-keep}'
404 refspec: 'refs/heads/{branch}'
407 - integration-distribution-git-url
410 - integration-gerrit-scm:
411 credentials-id: '{ssh-credentials}'
412 basedir: '$GERRIT_PROJECT'
413 refspec: '$GERRIT_REFSPEC'
415 - integration-distribution-scm:
416 credentials-id: '{ssh-credentials}'
421 - ssh-agent-credentials:
423 - '{ssh-credentials}'
427 server-name: 'OpenDaylight'
429 - patchset-created-event:
430 exclude-drafts: 'true'
431 exclude-trivial-rebase: 'false'
432 exclude-no-code-change: 'true'
433 - draft-published-event
434 - comment-added-contains-event:
435 comment-contains-value: 'test-distribution'
436 - comment-added-contains-event:
437 comment-contains-value: 'reverify'
438 - comment-added-contains-event:
439 comment-contains-value: 'recheck'
441 - project-compare-type: 'ANT'
442 project-pattern: '{name}'
444 - branch-compare-type: 'ANT'
445 branch-pattern: '**/{branch}'
454 maven-version: '{mvn33}'
455 pom: '$GERRIT_PROJECT/pom.xml'
456 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}'
458 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
459 settings: 'openflowplugin-settings'
461 global-settings: 'odl-global-settings'
462 global-settings-type: cfp
465 maven-name: '{mvn33}'
466 root-pom: 'distribution/pom.xml'
467 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
468 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
469 settings: 'openflowplugin-settings'
471 global-settings: 'odl-global-settings'
472 global-settings-type: cfp
473 ignore-upstream-changes: true
474 post-step-run-condition: 'SUCCESS'
477 - integration-distribution-check
481 artifacts: 'karaf.log'
483 artifacts: 'karaf_console.log'
484 - email-notification:
485 email-prefix: '[openflowplugin]'
487 maven-version: '{mvn33}'
490 name: 'openflowplugin-integration-{stream}'
493 # Job template for ODL integration verify jobs
495 # This is similar to a normal verify job, but it runs
496 # when a project that's a dependency of your project
497 # is successfully built.
499 # Required Variables:
500 # stream: release stream (eg. stable-lithium or beryllium)
501 # branch: git branch (eg. stable/lithium or master)
508 daysToKeep: '{build-days-to-keep}'
509 numToKeep: '{build-num-to-keep}'
510 artifactDaysToKeep: '{build-artifact-days-to-keep}'
511 artifactNumToKeep: '{build-artifact-num-to-keep}'
519 credentials-id: '{ssh-credentials}'
525 - ssh-agent-credentials:
527 - '{ssh-credentials}'
531 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream}'
535 - jacoco-nojava-workaround
536 - provide-maven-settings:
537 global-settings-file: 'odl-global-settings'
538 settings-file: 'openflowplugin-settings'
541 maven-name: '{mvn33}'
543 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -V -B -Djenkins'
544 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
545 settings: 'openflowplugin-settings'
547 global-settings: 'odl-global-settings'
548 global-settings-type: cfp
554 - email-notification:
555 email-prefix: '[openflowplugin] [odlparent] [yangtools] [controller] [openflowjava]'
558 maven-version: '{mvn33}'
561 name: 'openflowplugin-sonar'
571 artifactDaysToKeep: '1'
572 artifactNumToKeep: '1'
580 credentials-id: '{ssh-credentials}'
586 - ssh-agent-credentials:
588 - '{ssh-credentials}'
592 - gerrit-trigger-patch-sonar:
593 name: 'openflowplugin'
596 - jacoco-nojava-workaround
597 - provide-maven-settings:
598 global-settings-file: 'odl-global-settings'
599 settings-file: 'openflowplugin-settings'
602 maven-name: '{mvn33}'
604 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -V -B -Djenkins -Dsonar'
605 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
606 settings: 'openflowplugin-settings'
608 global-settings: 'odl-global-settings'
609 global-settings-type: cfp
617 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
618 - email-notification:
619 email-prefix: '[openflowplugin]'
622 maven-version: '{mvn33}'
625 name: 'openflowplugin-clm-{stream}'
633 daysToKeep: '{build-days-to-keep}'
634 numToKeep: '{build-num-to-keep}'
635 artifactDaysToKeep: '{build-artifact-days-to-keep}'
636 artifactNumToKeep: '{build-artifact-num-to-keep}'
644 credentials-id: '{ssh-credentials}'
650 - ssh-agent-credentials:
652 - '{ssh-credentials}'
658 - provide-maven-settings:
659 global-settings-file: 'odl-global-settings'
660 settings-file: 'openflowplugin-settings'
663 maven-name: '{mvn33}'
665 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'
666 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
667 settings: 'openflowplugin-settings'
669 global-settings: 'odl-global-settings'
670 global-settings-type: cfp
673 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
675 application-name: openflowplugin
678 - email-notification:
679 email-prefix: '[openflowplugin]'
681 maven-version: '{mvn33}'
684 name: 'openflowplugin-validate-autorelease-{stream}'
685 disabled: '{obj:disable_autorelease}'
693 daysToKeep: '{build-days-to-keep}'
694 numToKeep: '{build-num-to-keep}'
695 artifactDaysToKeep: '{build-artifact-days-to-keep}'
696 artifactNumToKeep: '{build-artifact-num-to-keep}'
704 refspec: 'refs/heads/{branch}'
705 - autorelease-release-tag:
706 release-tag: 'validate'
707 - autorelease-release-branch:
708 release-branch: '{branch}'
711 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
712 description: "Autorelease clone URL"
717 credentials-id: '{ssh-credentials}'
727 - autorelease-build-timeout
728 - ssh-agent-credentials:
730 - '{ssh-credentials}'
734 server-name: 'OpenDaylight'
736 - patchset-created-event:
737 exclude-drafts: 'true'
738 exclude-trivial-rebase: 'false'
739 exclude-no-code-change: 'true'
740 - draft-published-event
741 - comment-added-contains-event:
742 comment-contains-value: 'recheck'
743 - comment-added-contains-event:
744 comment-contains-value: 'reverify'
745 - comment-added-contains-event:
746 comment-contains-value: 'revalidate'
748 - project-compare-type: 'ANT'
749 project-pattern: 'openflowplugin'
751 - branch-compare-type: 'ANT'
752 branch-pattern: '**/{branch}'
758 - jacoco-nojava-workaround
759 - autorelease-checkout-gerrit-patch
760 - autorelease-generate-release-patches
762 maven-version: '{mvn33}'
763 pom: validate-pom.xml
764 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'
767 settings: 'autorelease-settings'
769 global-settings: 'odl-global-settings'
770 global-settings-type: cfp
773 maven-name: '{mvn33}'
775 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
776 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
777 settings: 'autorelease-settings'
779 global-settings: 'odl-global-settings'
780 global-settings-type: cfp
781 automatic-archiving: false
782 post-step-run-condition: UNSTABLE
785 - autorelease-sys-stats
788 - email-notification:
789 email-prefix: '[autorelease] [openflowplugin]'
791 maven-version: '{mvn33}'