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 - 'centinel-verify-{stream}'
10 - 'centinel-merge-{stream}'
11 - 'centinel-periodic-{stream}'
12 - 'centinel-distribution-{stream}'
13 - 'centinel-distribution-check-{stream}'
14 - 'centinel-integration-{stream}'
16 - 'centinel-clm-{stream}'
17 - 'centinel-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
41 # For the Job templates below replace instances of:
42 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
43 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
44 # MAVEN_GOALS with your maven goals to build
45 # MAVEN_OPTS with your maven options to build
48 name: 'centinel-verify-{stream}'
50 # Job template for ODL verify jobs
52 # The purpose of this job template is to setup a ODL verify job
55 # stream: release stream (eg. stable-lithium or beryllium)
56 # branch: git branch (eg. stable/lithium or master)
81 refspec: 'refs/heads/{branch}'
85 credentials-id: '{ssh-credentials}'
86 refspec: '$GERRIT_REFSPEC'
87 choosing-strategy: 'gerrit'
90 - opendaylight-infra-wrappers:
91 build-timeout: '{build-timeout}'
94 - gerrit-trigger-patch-submitted:
99 - jacoco-nojava-workaround
100 - provide-maven-settings:
101 global-settings-file: 'odl-global-settings'
102 settings-file: 'centinel-settings'
104 maven-version: '{mvn33}'
106 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
108 - '-Xmx1024m -XX:MaxPermSize=256m'
109 settings: 'centinel-settings'
111 global-settings: 'odl-global-settings'
112 global-settings-type: cfp
116 artifacts: '**/target/surefire-reports/*-output.txt, '
118 - email-notification:
119 email-prefix: '[centinel]'
122 maven-version: '{mvn33}'
125 name: 'centinel-merge-{stream}'
127 # Job template for ODL merge jobs
129 # The purpose of this job template is to setup a ODL merge job
130 # and deploy artifacts to Nexus.
132 # Required Variables:
133 # stream: release stream (eg. stable-lithium or beryllium)
134 # branch: git branch (eg. stable/lithium or master)
143 artifactDaysToKeep: '{build-artifact-days-to-keep}'
144 artifactNumToKeep: '{build-artifact-num-to-keep}'
152 refspec: 'refs/heads/{branch}'
155 - gerrit-trigger-scm:
156 credentials-id: '{ssh-credentials}'
158 choosing-strategy: 'default'
161 - opendaylight-infra-wrappers:
162 build-timeout: '{build-timeout}'
166 - gerrit-trigger-patch-merged:
171 - jacoco-nojava-workaround
172 - provide-maven-settings:
173 global-settings-file: 'odl-global-settings'
174 settings-file: 'centinel-settings'
177 maven-name: '{mvn33}'
179 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
180 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
181 settings: 'centinel-settings'
183 global-settings: 'odl-global-settings'
184 global-settings-type: cfp
185 post-step-run-condition: UNSTABLE
189 condition-kind: file-exists
190 condition-filename: deploy-site.xml
191 condition-basedir: workspace
193 # The strategy here is intentional to run Maven site:deploy twice
194 # once using regular pom.xml to produce a staged-site which is
195 # then used by deploy-site.xml to push to Nexus. This is a
196 # workaround to Maven Site's default linking code which creates
197 # incorrect URLs for sites due to auto-detection assuming your
198 # project is configured in a certain way which ODL is not.
201 maven-version: '{mvn33}'
203 goals: 'site:deploy -V -B -Dstream={stream}'
206 settings: 'centinel-settings'
208 global-settings: 'odl-global-settings'
209 global-settings-type: cfp
211 maven-version: '{mvn33}'
213 goals: 'site:deploy -V -B -Dstream={stream}'
216 settings: 'centinel-settings'
218 global-settings: 'odl-global-settings'
219 global-settings-type: cfp
226 artifacts: '**/target/surefire-reports/*-output.txt, '
227 - email-notification:
228 email-prefix: '[centinel]'
232 deploy-unstable: false
235 maven-version: '{mvn33}'
238 name: 'centinel-periodic-{stream}'
241 # Job template for periodic builders
243 # The purpose of this job template is to setup a periodic
246 # Required Variables:
247 # stream: release stream (eg. stable-lithium or beryllium)
248 # branch: git branch (eg. stable/lithium or master)
257 artifactDaysToKeep: '{build-artifact-days-to-keep}'
258 artifactNumToKeep: '{build-artifact-num-to-keep}'
266 credentials-id: '{ssh-credentials}'
271 - opendaylight-infra-wrappers:
272 build-timeout: '{build-timeout}'
278 - jacoco-nojava-workaround
279 - provide-maven-settings:
280 global-settings-file: 'odl-global-settings'
281 settings-file: 'centinel-settings'
284 maven-name: '{mvn33}'
286 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
287 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
288 settings: 'centinel-settings'
290 global-settings: 'odl-global-settings'
291 global-settings-type: cfp
297 - email-notification:
298 email-prefix: '[centinel]'
301 maven-version: '{mvn33}'
304 name: 'centinel-distribution-{stream}'
306 # Required variables:
307 # stream: release stream (eg. stable-lithium or beryllium)
308 # branch: git branch (eg. stable/lithium or master)
315 daysToKeep: '{build-days-to-keep}'
316 numToKeep: '{build-num-to-keep}'
317 artifactDaysToKeep: '{build-artifact-days-to-keep}'
318 artifactNumToKeep: '{build-artifact-num-to-keep}'
322 project: 'integration/distribution'
326 credentials-id: '{ssh-credentials}'
331 - opendaylight-infra-wrappers:
332 build-timeout: '{build-timeout}'
336 jobs: '{project}-merge-{stream}'
340 - provide-maven-settings:
341 global-settings-file: 'odl-global-settings'
342 settings-file: 'centinel-settings'
345 maven-name: '{mvn33}'
347 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
348 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
349 settings: 'integration-distribution-settings'
351 global-settings: 'odl-global-settings'
352 global-settings-type: cfp
355 - email-notification:
356 email-prefix: '[{project}]'
360 deploy-unstable: false
362 maven-version: '{mvn33}'
364 # Template: integration-patch-distribution-{stream}
365 # Goal: Build a patch and make sure the distribution can deploy with this change
366 # Operation: This job template builds a patch, creates a distribution containing
367 # the patch, and triggers the distribution deploy test
370 name: 'centinel-distribution-check-{stream}'
371 disabled: '{obj:disable_distribution_check}'
379 daysToKeep: '{build-days-to-keep}'
380 numToKeep: '{build-num-to-keep}'
381 artifactDaysToKeep: '{build-artifact-days-to-keep}'
382 artifactNumToKeep: '{build-artifact-num-to-keep}'
388 refspec: 'refs/heads/{branch}'
391 - integration-distribution-git-url
394 - integration-gerrit-scm:
395 credentials-id: '{ssh-credentials}'
396 basedir: '$GERRIT_PROJECT'
397 refspec: '$GERRIT_REFSPEC'
399 - integration-distribution-scm:
400 credentials-id: '{ssh-credentials}'
404 - opendaylight-infra-wrappers:
405 build-timeout: '{build-timeout}'
409 server-name: 'OpenDaylight'
411 - patchset-created-event:
412 exclude-drafts: 'true'
413 exclude-trivial-rebase: 'false'
414 exclude-no-code-change: 'true'
415 - draft-published-event
416 - comment-added-contains-event:
417 comment-contains-value: 'test-distribution'
418 - comment-added-contains-event:
419 comment-contains-value: 'reverify'
420 - comment-added-contains-event:
421 comment-contains-value: 'recheck'
423 - project-compare-type: 'ANT'
424 project-pattern: '{name}'
426 - branch-compare-type: 'ANT'
427 branch-pattern: '**/{branch}'
436 maven-version: '{mvn33}'
437 pom: '$GERRIT_PROJECT/pom.xml'
438 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}'
440 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
441 settings: 'centinel-settings'
443 global-settings: 'odl-global-settings'
444 global-settings-type: cfp
447 maven-name: '{mvn33}'
448 root-pom: 'distribution/pom.xml'
449 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
450 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
451 settings: 'centinel-settings'
453 global-settings: 'odl-global-settings'
454 global-settings-type: cfp
455 ignore-upstream-changes: true
456 post-step-run-condition: 'SUCCESS'
459 - integration-distribution-check
462 - email-notification:
463 email-prefix: '[centinel]'
468 mkdir -p $WORKSPACE/archives
469 cp karaf*.log $WORKSPACE/archives
470 script-only-if-succeeded: False
471 script-only-if-failed: False
472 mark-unstable-if-failed: True
474 maven-version: '{mvn33}'
477 name: 'centinel-integration-{stream}'
480 # Job template for ODL integration verify jobs
482 # This is similar to a normal verify job, but it runs
483 # when a project that's a dependency of your project
484 # is successfully built.
486 # Required Variables:
487 # stream: release stream (eg. stable-lithium or beryllium)
488 # branch: git branch (eg. stable/lithium or master)
495 daysToKeep: '{build-days-to-keep}'
496 numToKeep: '{build-num-to-keep}'
497 artifactDaysToKeep: '{build-artifact-days-to-keep}'
498 artifactNumToKeep: '{build-artifact-num-to-keep}'
506 credentials-id: '{ssh-credentials}'
511 - opendaylight-infra-wrappers:
512 build-timeout: '{build-timeout}'
516 jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}'
520 - jacoco-nojava-workaround
521 - provide-maven-settings:
522 global-settings-file: 'odl-global-settings'
523 settings-file: 'centinel-settings'
526 maven-name: '{mvn33}'
528 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
529 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
530 settings: 'centinel-settings'
532 global-settings: 'odl-global-settings'
533 global-settings-type: cfp
539 - email-notification:
540 email-prefix: '[centinel] [odlparent] [controller] [yangtools]'
543 maven-version: '{mvn33}'
546 name: 'centinel-sonar'
556 artifactDaysToKeep: '1'
557 artifactNumToKeep: '1'
565 credentials-id: '{ssh-credentials}'
570 - opendaylight-infra-wrappers:
571 build-timeout: '{build-timeout}'
575 - gerrit-trigger-patch-sonar:
579 - jacoco-nojava-workaround
580 - provide-maven-settings:
581 global-settings-file: 'odl-global-settings'
582 settings-file: 'centinel-settings'
585 maven-name: '{mvn33}'
587 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
588 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
589 settings: 'centinel-settings'
591 global-settings: 'odl-global-settings'
592 global-settings-type: cfp
600 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
601 - email-notification:
602 email-prefix: '[centinel]'
605 maven-version: '{mvn33}'
608 name: 'centinel-clm-{stream}'
616 daysToKeep: '{build-days-to-keep}'
617 numToKeep: '{build-num-to-keep}'
618 artifactDaysToKeep: '{build-artifact-days-to-keep}'
619 artifactNumToKeep: '{build-artifact-num-to-keep}'
627 credentials-id: '{ssh-credentials}'
632 - opendaylight-infra-wrappers:
633 build-timeout: '{build-timeout}'
639 - provide-maven-settings:
640 global-settings-file: 'odl-global-settings'
641 settings-file: 'centinel-settings'
644 maven-name: '{mvn33}'
646 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'
647 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
648 settings: 'centinel-settings'
650 global-settings: 'odl-global-settings'
651 global-settings-type: cfp
654 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
656 application-name: centinel
659 - email-notification:
660 email-prefix: '[centinel]'
662 maven-version: '{mvn33}'
665 name: 'centinel-validate-autorelease-{stream}'
666 disabled: '{obj:disable_autorelease}'
674 daysToKeep: '{build-days-to-keep}'
675 numToKeep: '{build-num-to-keep}'
676 artifactDaysToKeep: '{build-artifact-days-to-keep}'
677 artifactNumToKeep: '{build-artifact-num-to-keep}'
685 refspec: 'refs/heads/{branch}'
686 - autorelease-release-tag:
687 release-tag: 'validate'
688 - autorelease-release-branch:
689 release-branch: '{branch}'
692 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
693 description: "Autorelease clone URL"
698 credentials-id: '{ssh-credentials}'
708 - opendaylight-infra-wrappers:
709 build-timeout: '{build-timeout}'
713 server-name: 'OpenDaylight'
715 - patchset-created-event:
716 exclude-drafts: 'true'
717 exclude-trivial-rebase: 'false'
718 exclude-no-code-change: 'true'
719 - draft-published-event
720 - comment-added-contains-event:
721 comment-contains-value: 'recheck'
722 - comment-added-contains-event:
723 comment-contains-value: 'reverify'
724 - comment-added-contains-event:
725 comment-contains-value: 'revalidate'
727 - project-compare-type: 'ANT'
728 project-pattern: 'centinel'
730 - branch-compare-type: 'ANT'
731 branch-pattern: '**/{branch}'
737 - jacoco-nojava-workaround
738 - autorelease-checkout-gerrit-patch
739 - autorelease-generate-release-patches
741 maven-version: '{mvn33}'
742 pom: validate-pom.xml
743 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'
746 settings: 'autorelease-settings'
748 global-settings: 'odl-global-settings'
749 global-settings-type: cfp
752 maven-name: '{mvn33}'
754 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
755 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
756 settings: 'autorelease-settings'
758 global-settings: 'odl-global-settings'
759 global-settings-type: cfp
760 automatic-archiving: false
761 post-step-run-condition: UNSTABLE
764 - autorelease-sys-stats
767 - email-notification:
768 email-prefix: '[autorelease] [centinel]'
770 maven-version: '{mvn33}'