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 - 'toolkit-verify-{stream}'
10 - 'toolkit-merge-{stream}'
11 - 'toolkit-periodic-{stream}'
12 - 'toolkit-distribution-{stream}'
13 - 'toolkit-distribution-check-{stream}'
14 - 'toolkit-integration-{stream}'
16 - 'toolkit-clm-{stream}'
17 - 'toolkit-validate-autorelease-{stream}'
20 # stream: release stream (eg. stable-lithium or beryllium)
21 # branch: git branch (eg. stable/lithium or master)
28 disable_autorelease: True
29 disable_distribution_check: False
31 branch: 'stable/beryllium'
35 disable_autorelease: True
36 disable_distribution_check: False
40 # For the Job templates below replace instances of:
41 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
42 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
43 # MAVEN_GOALS with your maven goals to build
44 # MAVEN_OPTS with your maven options to build
47 name: 'toolkit-verify-{stream}'
49 # Job template for ODL verify jobs
51 # The purpose of this job template is to setup a ODL verify job
54 # stream: release stream (eg. stable-lithium or beryllium)
55 # branch: git branch (eg. stable/lithium or master)
72 daysToKeep: '{build-days-to-keep}'
73 numToKeep: '{build-num-to-keep}'
74 artifactDaysToKeep: '{build-artifact-days-to-keep}'
75 artifactNumToKeep: '{build-artifact-num-to-keep}'
82 - gerrit-refspec-parameter:
83 refspec: 'refs/heads/{branch}'
87 credentials-id: '{ssh-credentials}'
88 refspec: '$GERRIT_REFSPEC'
89 choosing-strategy: 'gerrit'
93 - ssh-agent-credentials:
98 - gerrit-trigger-patch-submitted:
103 - wipe-org-opendaylight-repo
104 - jacoco-nojava-workaround
105 - provide-maven-settings:
106 global-settings-file: '{odl-global-settings}'
107 settings-file: '{toolkit-settings}'
109 maven-version: '{mvn33}'
111 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
113 - '-Xmx1024m -XX:MaxPermSize=256m'
114 settings: '{toolkit-settings}'
115 global-settings: '{odl-global-settings}'
119 artifacts: '**/target/surefire-reports/*-output.txt, '
121 - email-notification:
122 email-prefix: '[toolkit]'
126 name: 'toolkit-merge-{stream}'
128 # Job template for ODL merge jobs
130 # The purpose of this job template is to setup a ODL merge job
131 # and deploy artifacts to Nexus.
133 # Required Variables:
134 # stream: release stream (eg. stable-lithium or beryllium)
135 # branch: git branch (eg. stable/lithium or master)
144 artifactDaysToKeep: '{build-artifact-days-to-keep}'
145 artifactNumToKeep: '{build-artifact-num-to-keep}'
152 - gerrit-refspec-parameter:
153 refspec: 'refs/heads/{branch}'
156 - gerrit-trigger-scm:
157 credentials-id: '{ssh-credentials}'
159 choosing-strategy: 'default'
163 - ssh-agent-credentials:
165 - '{ssh-credentials}'
169 - gerrit-trigger-patch-merged:
174 - wipe-org-opendaylight-repo
175 - jacoco-nojava-workaround
176 - provide-maven-settings:
177 global-settings-file: '{odl-global-settings}'
178 settings-file: '{toolkit-settings}'
181 maven-name: '{mvn33}'
183 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
184 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
185 settings: '{toolkit-settings}'
186 global-settings: '{odl-global-settings}'
187 post-step-run-condition: UNSTABLE
191 condition-kind: file-exists
192 condition-filename: deploy-site.xml
193 condition-basedir: workspace
195 # The strategy here is intentional to run Maven site:deploy twice
196 # once using regular pom.xml to produce a staged-site which is
197 # then used by deploy-site.xml to push to Nexus. This is a
198 # workaround to Maven Site's default linking code which creates
199 # incorrect URLs for sites due to auto-detection assuming your
200 # project is configured in a certain way which ODL is not.
203 maven-version: '{mvn33}'
205 goals: 'site:deploy -Dstream={stream}'
208 settings: '{toolkit-settings}'
209 global-settings: '{odl-global-settings}'
211 maven-version: '{mvn33}'
213 goals: 'site:deploy -Dstream={stream}'
216 settings: '{toolkit-settings}'
217 global-settings: '{odl-global-settings}'
224 artifacts: '**/target/surefire-reports/*-output.txt, '
225 - email-notification:
226 email-prefix: '[toolkit]'
230 deploy-unstable: false
234 name: 'toolkit-periodic-{stream}'
237 # Job template for periodic builders
239 # The purpose of this job template is to setup a periodic
242 # Required Variables:
243 # stream: release stream (eg. stable-lithium or beryllium)
244 # branch: git branch (eg. stable/lithium or master)
253 artifactDaysToKeep: '{build-artifact-days-to-keep}'
254 artifactNumToKeep: '{build-artifact-num-to-keep}'
262 credentials-id: '{ssh-credentials}'
268 - ssh-agent-credentials:
270 - '{ssh-credentials}'
276 - wipe-org-opendaylight-repo
277 - jacoco-nojava-workaround
278 - provide-maven-settings:
279 global-settings-file: '{odl-global-settings}'
280 settings-file: '{toolkit-settings}'
283 maven-name: '{mvn33}'
285 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
286 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
287 settings: '{toolkit-settings}'
288 global-settings: '{odl-global-settings}'
294 - email-notification:
295 email-prefix: '[toolkit]'
299 name: 'toolkit-distribution-{stream}'
301 # Required variables:
302 # stream: release stream (eg. stable-lithium or beryllium)
303 # branch: git branch (eg. stable/lithium or master)
310 daysToKeep: '{build-days-to-keep}'
311 numToKeep: '{build-num-to-keep}'
312 artifactDaysToKeep: '{build-artifact-days-to-keep}'
313 artifactNumToKeep: '{build-artifact-num-to-keep}'
317 project: 'integration/distribution'
321 credentials-id: '{ssh-credentials}'
327 - ssh-agent-credentials:
329 - '{ssh-credentials}'
333 jobs: '{project}-merge-{stream}'
337 - wipe-org-opendaylight-repo
338 - provide-maven-settings:
339 global-settings-file: '{odl-global-settings}'
340 settings-file: '{toolkit-settings}'
343 maven-name: '{mvn33}'
345 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
346 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
347 settings: '{integration-settings}'
348 global-settings: '{odl-global-settings}'
351 - email-notification:
352 email-prefix: '[{project}]'
356 deploy-unstable: false
358 # Template: integration-patch-distribution-{stream}
359 # Goal: Build a patch and make sure the distribution can deploy with this change
360 # Operation: This job template builds a patch, creates a distribution containing
361 # the patch, and triggers the distribution deploy test
364 name: 'toolkit-distribution-check-{stream}'
365 disabled: '{obj:disable_distribution_check}'
375 artifactDaysToKeep: '{build-artifact-days-to-keep}'
376 artifactNumToKeep: '{build-artifact-num-to-keep}'
379 - gerrit-project-parameter:
381 - gerrit-refspec-parameter:
385 - integration-distribution-git-url
388 - integration-gerrit-scm:
389 credentials-id: '{ssh-credentials}'
390 basedir: '$GERRIT_PROJECT'
391 refspec: '$GERRIT_REFSPEC'
393 - integration-distribution-scm:
394 credentials-id: '{ssh-credentials}'
399 - ssh-agent-credentials:
401 - '{ssh-credentials}'
405 server-name: 'OpenDaylight'
407 - patchset-created-event:
408 exclude-drafts: 'true'
409 exclude-trivial-rebase: 'false'
410 exclude-no-code-change: 'true'
411 - draft-published-event
412 - comment-added-contains-event:
413 comment-contains-value: 'test-distribution'
414 - comment-added-contains-event:
415 comment-contains-value: 'reverify'
416 - comment-added-contains-event:
417 comment-contains-value: 'recheck'
419 - project-compare-type: 'ANT'
420 project-pattern: '{name}'
422 - branch-compare-type: 'ANT'
423 branch-pattern: '**/{branch}'
431 - wipe-org-opendaylight-repo
433 maven-version: '{mvn33}'
434 pom: '$GERRIT_PROJECT/pom.xml'
435 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}'
437 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
438 settings: '{toolkit-settings}'
439 global-settings: '{odl-global-settings}'
442 maven-name: '{mvn33}'
443 root-pom: 'distribution/pom.xml'
444 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
445 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
446 settings: '{toolkit-settings}'
447 global-settings: '{odl-global-settings}'
448 ignore-upstream-changes: true
449 post-step-run-condition: 'SUCCESS'
452 - integration-distribution-check
456 artifacts: 'karaf.log'
458 artifacts: 'karaf_console.log'
459 - email-notification:
460 email-prefix: '[toolkit]'
463 name: 'toolkit-integration-{stream}'
466 # Job template for ODL integration verify jobs
468 # This is similar to a normal verify job, but it runs
469 # when a project that's a dependency of your project
470 # is successfully built.
472 # Required Variables:
473 # stream: release stream (eg. stable-lithium or beryllium)
474 # branch: git branch (eg. stable/lithium or master)
481 daysToKeep: '{build-days-to-keep}'
482 numToKeep: '{build-num-to-keep}'
483 artifactDaysToKeep: '{build-artifact-days-to-keep}'
484 artifactNumToKeep: '{build-artifact-num-to-keep}'
492 credentials-id: '{ssh-credentials}'
498 - ssh-agent-credentials:
500 - '{ssh-credentials}'
504 jobs: 'odlparent-merge-{stream},controller-merge-{stream}'
508 - wipe-org-opendaylight-repo
509 - jacoco-nojava-workaround
510 - provide-maven-settings:
511 global-settings-file: '{odl-global-settings}'
512 settings-file: '{toolkit-settings}'
515 maven-name: '{mvn33}'
517 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
518 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
519 settings: '{toolkit-settings}'
520 global-settings: '{odl-global-settings}'
526 - email-notification:
527 email-prefix: '[toolkit] [odlparent] [controller]'
531 name: 'toolkit-sonar'
541 artifactDaysToKeep: '1'
542 artifactNumToKeep: '1'
550 credentials-id: '{ssh-credentials}'
556 - ssh-agent-credentials:
558 - '{ssh-credentials}'
562 - gerrit-trigger-patch-sonar:
566 - wipe-org-opendaylight-repo
567 - jacoco-nojava-workaround
568 - provide-maven-settings:
569 global-settings-file: '{odl-global-settings}'
570 settings-file: '{toolkit-settings}'
573 maven-name: '{mvn33}'
575 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
576 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
577 settings: '{toolkit-settings}'
578 global-settings: '{odl-global-settings}'
586 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
587 - email-notification:
588 email-prefix: '[toolkit]'
592 name: 'toolkit-clm-{stream}'
600 daysToKeep: '{build-days-to-keep}'
601 numToKeep: '{build-num-to-keep}'
602 artifactDaysToKeep: '{build-artifact-days-to-keep}'
603 artifactNumToKeep: '{build-artifact-num-to-keep}'
611 credentials-id: '{ssh-credentials}'
617 - ssh-agent-credentials:
619 - '{ssh-credentials}'
625 - wipe-org-opendaylight-repo
626 - provide-maven-settings:
627 global-settings-file: '{odl-global-settings}'
628 settings-file: '{toolkit-settings}'
631 maven-name: '{mvn33}'
633 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'
634 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
635 settings: '{toolkit-settings}'
636 global-settings: '{odl-global-settings}'
639 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
641 application-name: toolkit
644 - email-notification:
645 email-prefix: '[toolkit]'
648 name: 'toolkit-validate-autorelease-{stream}'
649 disabled: '{obj:disable_autorelease}'
657 daysToKeep: '{build-days-to-keep}'
658 numToKeep: '{build-num-to-keep}'
659 artifactDaysToKeep: '{build-artifact-days-to-keep}'
660 artifactNumToKeep: '{build-artifact-num-to-keep}'
667 - autorelease-release-tag:
668 release-tag: 'validate'
669 - autorelease-release-branch:
670 release-branch: '{branch}'
671 - autorelease-release-datestamp:
675 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
676 description: "Autorelease clone URL"
691 - autorelease-build-timeout
692 - ssh-agent-credentials:
694 - '{ssh-credentials}'
698 server-name: 'OpenDaylight'
700 - patchset-created-event:
701 exclude-drafts: 'false'
702 exclude-trivial-rebase: 'false'
703 exclude-no-code-change: 'false'
704 - draft-published-event
705 - comment-added-contains-event:
706 comment-contains-value: 'recheck'
707 - comment-added-contains-event:
708 comment-contains-value: 'reverify'
709 - comment-added-contains-event:
710 comment-contains-value: 'revalidate'
712 - project-compare-type: 'ANT'
713 project-pattern: 'toolkit'
715 - branch-compare-type: 'ANT'
716 branch-pattern: '**/{branch}'
722 - wipe-org-opendaylight-repo
723 - jacoco-nojava-workaround
724 - autorelease-checkout-gerrit-patch
725 - autorelease-generate-release-patches
727 maven-version: '{mvn33}'
728 pom: validate-pom.xml
729 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
732 settings: '{autorelease-settings}'
733 global-settings: '{odl-global-settings}'
736 maven-name: '{mvn33}'
738 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
739 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
740 settings: '{autorelease-settings}'
741 global-settings: '{odl-global-settings}'
742 automatic-archiving: false
743 post-step-run-condition: UNSTABLE
746 - autorelease-sys-stats
749 - email-notification:
750 email-prefix: '[autorelease] [toolkit]'