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)
73 daysToKeep: '{build-days-to-keep}'
74 numToKeep: '{build-num-to-keep}'
75 artifactDaysToKeep: '{build-artifact-days-to-keep}'
76 artifactNumToKeep: '{build-artifact-num-to-keep}'
83 - gerrit-refspec-parameter:
84 refspec: 'refs/heads/{branch}'
88 credentials-id: '{ssh-credentials}'
89 refspec: '$GERRIT_REFSPEC'
90 choosing-strategy: 'gerrit'
94 - ssh-agent-credentials:
99 - gerrit-trigger-patch-submitted:
104 - wipe-org-opendaylight-repo
105 - jacoco-nojava-workaround
106 - provide-maven-settings:
107 global-settings-file: '{odl-global-settings}'
108 settings-file: '{centinel-settings}'
110 maven-version: '{mvn33}'
112 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
114 - '-Xmx1024m -XX:MaxPermSize=256m'
115 settings: '{centinel-settings}'
116 global-settings: '{odl-global-settings}'
120 artifacts: '**/target/surefire-reports/*-output.txt, '
122 - email-notification:
123 email-prefix: '[centinel]'
127 name: 'centinel-merge-{stream}'
129 # Job template for ODL merge jobs
131 # The purpose of this job template is to setup a ODL merge job
132 # and deploy artifacts to Nexus.
134 # Required Variables:
135 # stream: release stream (eg. stable-lithium or beryllium)
136 # branch: git branch (eg. stable/lithium or master)
145 artifactDaysToKeep: '{build-artifact-days-to-keep}'
146 artifactNumToKeep: '{build-artifact-num-to-keep}'
153 - gerrit-refspec-parameter:
154 refspec: 'refs/heads/{branch}'
157 - gerrit-trigger-scm:
158 credentials-id: '{ssh-credentials}'
160 choosing-strategy: 'default'
164 - ssh-agent-credentials:
166 - '{ssh-credentials}'
170 - gerrit-trigger-patch-merged:
175 - wipe-org-opendaylight-repo
176 - jacoco-nojava-workaround
177 - provide-maven-settings:
178 global-settings-file: '{odl-global-settings}'
179 settings-file: '{centinel-settings}'
182 maven-name: '{mvn33}'
184 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
185 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
186 settings: '{centinel-settings}'
187 global-settings: '{odl-global-settings}'
188 post-step-run-condition: UNSTABLE
192 condition-kind: file-exists
193 condition-filename: deploy-site.xml
194 condition-basedir: workspace
196 # The strategy here is intentional to run Maven site:deploy twice
197 # once using regular pom.xml to produce a staged-site which is
198 # then used by deploy-site.xml to push to Nexus. This is a
199 # workaround to Maven Site's default linking code which creates
200 # incorrect URLs for sites due to auto-detection assuming your
201 # project is configured in a certain way which ODL is not.
204 maven-version: '{mvn33}'
206 goals: 'site:deploy -Dstream={stream}'
209 settings: '{centinel-settings}'
210 global-settings: '{odl-global-settings}'
212 maven-version: '{mvn33}'
214 goals: 'site:deploy -Dstream={stream}'
217 settings: '{centinel-settings}'
218 global-settings: '{odl-global-settings}'
225 artifacts: '**/target/surefire-reports/*-output.txt, '
226 - email-notification:
227 email-prefix: '[centinel]'
231 deploy-unstable: false
235 name: 'centinel-periodic-{stream}'
238 # Job template for periodic builders
240 # The purpose of this job template is to setup a periodic
243 # Required Variables:
244 # stream: release stream (eg. stable-lithium or beryllium)
245 # branch: git branch (eg. stable/lithium or master)
254 artifactDaysToKeep: '{build-artifact-days-to-keep}'
255 artifactNumToKeep: '{build-artifact-num-to-keep}'
263 credentials-id: '{ssh-credentials}'
269 - ssh-agent-credentials:
271 - '{ssh-credentials}'
277 - wipe-org-opendaylight-repo
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 -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
287 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
288 settings: '{centinel-settings}'
289 global-settings: '{odl-global-settings}'
295 - email-notification:
296 email-prefix: '[centinel]'
300 name: 'centinel-distribution-{stream}'
302 # Required variables:
303 # stream: release stream (eg. stable-lithium or beryllium)
304 # branch: git branch (eg. stable/lithium or master)
311 daysToKeep: '{build-days-to-keep}'
312 numToKeep: '{build-num-to-keep}'
313 artifactDaysToKeep: '{build-artifact-days-to-keep}'
314 artifactNumToKeep: '{build-artifact-num-to-keep}'
318 project: 'integration/distribution'
322 credentials-id: '{ssh-credentials}'
328 - ssh-agent-credentials:
330 - '{ssh-credentials}'
334 jobs: '{project}-merge-{stream}'
338 - wipe-org-opendaylight-repo
339 - provide-maven-settings:
340 global-settings-file: '{odl-global-settings}'
341 settings-file: '{centinel-settings}'
344 maven-name: '{mvn33}'
346 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
347 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
348 settings: '{integration-settings}'
349 global-settings: '{odl-global-settings}'
352 - email-notification:
353 email-prefix: '[{project}]'
357 deploy-unstable: false
359 # Template: integration-patch-distribution-{stream}
360 # Goal: Build a patch and make sure the distribution can deploy with this change
361 # Operation: This job template builds a patch, creates a distribution containing
362 # the patch, and triggers the distribution deploy test
365 name: 'centinel-distribution-check-{stream}'
366 disabled: '{obj:disable_distribution_check}'
376 artifactDaysToKeep: '{build-artifact-days-to-keep}'
377 artifactNumToKeep: '{build-artifact-num-to-keep}'
380 - gerrit-project-parameter:
382 - gerrit-refspec-parameter:
386 - integration-distribution-git-url
389 - integration-gerrit-scm:
390 credentials-id: '{ssh-credentials}'
391 basedir: '$GERRIT_PROJECT'
392 refspec: '$GERRIT_REFSPEC'
394 - integration-distribution-scm:
395 credentials-id: '{ssh-credentials}'
400 - ssh-agent-credentials:
402 - '{ssh-credentials}'
406 server-name: 'OpenDaylight'
408 - patchset-created-event:
409 exclude-drafts: 'true'
410 exclude-trivial-rebase: 'false'
411 exclude-no-code-change: 'true'
412 - draft-published-event
413 - comment-added-contains-event:
414 comment-contains-value: 'test-distribution'
415 - comment-added-contains-event:
416 comment-contains-value: 'reverify'
417 - comment-added-contains-event:
418 comment-contains-value: 'recheck'
420 - project-compare-type: 'ANT'
421 project-pattern: '{name}'
423 - branch-compare-type: 'ANT'
424 branch-pattern: '**/{branch}'
432 - wipe-org-opendaylight-repo
434 maven-version: '{mvn33}'
435 pom: '$GERRIT_PROJECT/pom.xml'
436 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}'
438 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
439 settings: '{centinel-settings}'
440 global-settings: '{odl-global-settings}'
443 maven-name: '{mvn33}'
444 root-pom: 'distribution/pom.xml'
445 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
446 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
447 settings: '{centinel-settings}'
448 global-settings: '{odl-global-settings}'
449 ignore-upstream-changes: true
450 post-step-run-condition: 'SUCCESS'
453 - integration-distribution-check
457 artifacts: 'karaf.log'
459 artifacts: 'karaf_console.log'
460 - email-notification:
461 email-prefix: '[centinel]'
464 name: 'centinel-integration-{stream}'
467 # Job template for ODL integration verify jobs
469 # This is similar to a normal verify job, but it runs
470 # when a project that's a dependency of your project
471 # is successfully built.
473 # Required Variables:
474 # stream: release stream (eg. stable-lithium or beryllium)
475 # branch: git branch (eg. stable/lithium or master)
482 daysToKeep: '{build-days-to-keep}'
483 numToKeep: '{build-num-to-keep}'
484 artifactDaysToKeep: '{build-artifact-days-to-keep}'
485 artifactNumToKeep: '{build-artifact-num-to-keep}'
493 credentials-id: '{ssh-credentials}'
499 - ssh-agent-credentials:
501 - '{ssh-credentials}'
505 jobs: 'odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}'
509 - wipe-org-opendaylight-repo
510 - jacoco-nojava-workaround
511 - provide-maven-settings:
512 global-settings-file: '{odl-global-settings}'
513 settings-file: '{centinel-settings}'
516 maven-name: '{mvn33}'
518 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
519 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
520 settings: '{centinel-settings}'
521 global-settings: '{odl-global-settings}'
527 - email-notification:
528 email-prefix: '[centinel] [odlparent] [controller] [yangtools]'
532 name: 'centinel-sonar'
542 artifactDaysToKeep: '1'
543 artifactNumToKeep: '1'
551 credentials-id: '{ssh-credentials}'
557 - ssh-agent-credentials:
559 - '{ssh-credentials}'
563 - gerrit-trigger-patch-sonar:
567 - wipe-org-opendaylight-repo
568 - jacoco-nojava-workaround
569 - provide-maven-settings:
570 global-settings-file: '{odl-global-settings}'
571 settings-file: '{centinel-settings}'
574 maven-name: '{mvn33}'
576 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
577 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
578 settings: '{centinel-settings}'
579 global-settings: '{odl-global-settings}'
587 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
588 - email-notification:
589 email-prefix: '[centinel]'
593 name: 'centinel-clm-{stream}'
601 daysToKeep: '{build-days-to-keep}'
602 numToKeep: '{build-num-to-keep}'
603 artifactDaysToKeep: '{build-artifact-days-to-keep}'
604 artifactNumToKeep: '{build-artifact-num-to-keep}'
612 credentials-id: '{ssh-credentials}'
618 - ssh-agent-credentials:
620 - '{ssh-credentials}'
626 - wipe-org-opendaylight-repo
627 - provide-maven-settings:
628 global-settings-file: '{odl-global-settings}'
629 settings-file: '{centinel-settings}'
632 maven-name: '{mvn33}'
634 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'
635 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
636 settings: '{centinel-settings}'
637 global-settings: '{odl-global-settings}'
640 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
642 application-name: centinel
645 - email-notification:
646 email-prefix: '[centinel]'
649 name: 'centinel-validate-autorelease-{stream}'
650 disabled: '{obj:disable_autorelease}'
658 daysToKeep: '{build-days-to-keep}'
659 numToKeep: '{build-num-to-keep}'
660 artifactDaysToKeep: '{build-artifact-days-to-keep}'
661 artifactNumToKeep: '{build-artifact-num-to-keep}'
668 - autorelease-release-tag:
669 release-tag: 'validate'
670 - autorelease-release-branch:
671 release-branch: '{branch}'
672 - autorelease-release-datestamp:
676 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
677 description: "Autorelease clone URL"
692 - autorelease-build-timeout
693 - ssh-agent-credentials:
695 - '{ssh-credentials}'
699 server-name: 'OpenDaylight'
701 - patchset-created-event:
702 exclude-drafts: 'false'
703 exclude-trivial-rebase: 'false'
704 exclude-no-code-change: 'false'
705 - draft-published-event
706 - comment-added-contains-event:
707 comment-contains-value: 'recheck'
708 - comment-added-contains-event:
709 comment-contains-value: 'reverify'
710 - comment-added-contains-event:
711 comment-contains-value: 'revalidate'
713 - project-compare-type: 'ANT'
714 project-pattern: 'centinel'
716 - branch-compare-type: 'ANT'
717 branch-pattern: '**/{branch}'
723 - wipe-org-opendaylight-repo
724 - jacoco-nojava-workaround
725 - autorelease-checkout-gerrit-patch
726 - autorelease-generate-release-patches
728 maven-version: '{mvn33}'
729 pom: validate-pom.xml
730 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
733 settings: '{autorelease-settings}'
734 global-settings: '{odl-global-settings}'
737 maven-name: '{mvn33}'
739 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
740 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
741 settings: '{autorelease-settings}'
742 global-settings: '{odl-global-settings}'
743 automatic-archiving: false
744 post-step-run-condition: UNSTABLE
747 - autorelease-sys-stats
750 - email-notification:
751 email-prefix: '[autorelease] [centinel]'