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 - 'iotdm-verify-{stream}'
10 - 'iotdm-merge-{stream}'
11 - 'iotdm-periodic-{stream}'
12 - 'iotdm-distribution-{stream}'
13 - 'iotdm-distribution-check-{stream}'
14 - 'iotdm-integration-{stream}'
16 - 'iotdm-clm-{stream}'
17 - 'iotdm-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
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: 'iotdm-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}'
91 - gerrit-refspec-parameter:
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:
112 - wipe-org-opendaylight-repo
113 - jacoco-nojava-workaround
114 - provide-maven-settings:
115 global-settings-file: '{odl-global-settings}'
116 settings-file: '{iotdm-settings}'
118 maven-version: '{mvn33}'
120 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
122 - '-Xmx1024m -XX:MaxPermSize=256m'
123 settings: '{iotdm-settings}'
124 global-settings: '{odl-global-settings}'
128 - email-notification:
129 email-prefix: '[iotdm]'
133 name: 'iotdm-merge-{stream}'
135 # Job template for ODL merge jobs
137 # The purpose of this job template is to setup a ODL merge job
138 # and deploy artifacts to Nexus.
140 # Required Variables:
141 # stream: release stream (eg. stable-lithium or beryllium)
142 # branch: git branch (eg. stable/lithium or master)
151 artifactDaysToKeep: '{build-artifact-days-to-keep}'
152 artifactNumToKeep: '{build-artifact-num-to-keep}'
159 - gerrit-refspec-parameter:
160 refspec: 'refs/heads/{branch}'
163 - gerrit-trigger-scm:
164 credentials-id: '{ssh-credentials}'
166 choosing-strategy: 'default'
170 - ssh-agent-credentials:
172 - '{ssh-credentials}'
176 - gerrit-trigger-patch-merged:
181 - wipe-org-opendaylight-repo
182 - jacoco-nojava-workaround
183 - provide-maven-settings:
184 global-settings-file: '{odl-global-settings}'
185 settings-file: '{iotdm-settings}'
188 maven-name: '{mvn33}'
190 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
191 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
192 settings: '{iotdm-settings}'
193 global-settings: '{odl-global-settings}'
194 post-step-run-condition: UNSTABLE
198 condition-kind: file-exists
199 condition-filename: deploy-site.xml
200 condition-basedir: workspace
202 # The strategy here is intentional to run Maven site:deploy twice
203 # once using regular pom.xml to produce a staged-site which is
204 # then used by deploy-site.xml to push to Nexus. This is a
205 # workaround to Maven Site's default linking code which creates
206 # incorrect URLs for sites due to auto-detection assuming your
207 # project is configured in a certain way which ODL is not.
210 maven-version: '{mvn33}'
212 goals: 'site:deploy -Dstream={stream}'
215 settings: '{iotdm-settings}'
216 global-settings: '{odl-global-settings}'
218 maven-version: '{mvn33}'
220 goals: 'site:deploy -Dstream={stream}'
223 settings: '{iotdm-settings}'
224 global-settings: '{odl-global-settings}'
231 artifacts: '**/target/surefire-reports/*-output.txt, '
232 - email-notification:
233 email-prefix: '[iotdm]'
237 deploy-unstable: false
241 name: 'iotdm-periodic-{stream}'
244 # Job template for periodic builders
246 # The purpose of this job template is to setup a periodic
249 # Required Variables:
250 # stream: release stream (eg. stable-lithium or beryllium)
251 # branch: git branch (eg. stable/lithium or master)
260 artifactDaysToKeep: '{build-artifact-days-to-keep}'
261 artifactNumToKeep: '{build-artifact-num-to-keep}'
269 credentials-id: '{ssh-credentials}'
275 - ssh-agent-credentials:
277 - '{ssh-credentials}'
283 - wipe-org-opendaylight-repo
284 - jacoco-nojava-workaround
285 - provide-maven-settings:
286 global-settings-file: '{odl-global-settings}'
287 settings-file: '{iotdm-settings}'
290 maven-name: '{mvn33}'
292 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
293 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
294 settings: '{iotdm-settings}'
295 global-settings: '{odl-global-settings}'
301 - email-notification:
302 email-prefix: '[iotdm]'
306 name: 'iotdm-distribution-{stream}'
308 # Required variables:
309 # stream: release stream (eg. stable-lithium or beryllium)
310 # branch: git branch (eg. stable/lithium or master)
317 daysToKeep: '{build-days-to-keep}'
318 numToKeep: '{build-num-to-keep}'
319 artifactDaysToKeep: '{build-artifact-days-to-keep}'
320 artifactNumToKeep: '{build-artifact-num-to-keep}'
324 project: 'integration/distribution'
328 credentials-id: '{ssh-credentials}'
334 - ssh-agent-credentials:
336 - '{ssh-credentials}'
340 jobs: '{project}-merge-{stream}'
344 - wipe-org-opendaylight-repo
345 - provide-maven-settings:
346 global-settings-file: '{odl-global-settings}'
347 settings-file: '{iotdm-settings}'
350 maven-name: '{mvn33}'
352 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
353 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
354 settings: '{integration-settings}'
355 global-settings: '{odl-global-settings}'
358 - email-notification:
359 email-prefix: '[{project}]'
363 deploy-unstable: false
365 # Template: integration-patch-distribution-{stream}
366 # Goal: Build a patch and make sure the distribution can deploy with this change
367 # Operation: This job template builds a patch, creates a distribution containing
368 # the patch, and triggers the distribution deploy test
371 name: 'iotdm-distribution-check-{stream}'
372 disabled: '{obj:disable_distribution_check}'
382 artifactDaysToKeep: '{build-artifact-days-to-keep}'
383 artifactNumToKeep: '{build-artifact-num-to-keep}'
386 - gerrit-project-parameter:
388 - gerrit-refspec-parameter:
392 - integration-distribution-git-url
395 - integration-gerrit-scm:
396 credentials-id: '{ssh-credentials}'
397 basedir: '$GERRIT_PROJECT'
398 refspec: '$GERRIT_REFSPEC'
400 - integration-distribution-scm:
401 credentials-id: '{ssh-credentials}'
406 - ssh-agent-credentials:
408 - '{ssh-credentials}'
412 server-name: 'OpenDaylight'
414 - patchset-created-event:
415 exclude-drafts: 'true'
416 exclude-trivial-rebase: 'false'
417 exclude-no-code-change: 'true'
418 - draft-published-event
419 - comment-added-contains-event:
420 comment-contains-value: 'test-distribution'
422 - project-compare-type: 'ANT'
423 project-pattern: '{name}'
425 - branch-compare-type: 'ANT'
426 branch-pattern: '**/{branch}'
434 - wipe-org-opendaylight-repo
436 maven-version: '{mvn33}'
437 pom: '$GERRIT_PROJECT/pom.xml'
438 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}'
440 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
441 settings: '{iotdm-settings}'
442 global-settings: '{odl-global-settings}'
445 maven-name: '{mvn33}'
446 root-pom: 'distribution/pom.xml'
447 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
448 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
449 settings: '{iotdm-settings}'
450 global-settings: '{odl-global-settings}'
451 ignore-upstream-changes: true
452 post-step-run-condition: 'SUCCESS'
455 - integration-distribution-check
459 artifacts: 'karaf.log'
461 artifacts: 'karaf_console.log'
462 - email-notification:
463 email-prefix: '[iotdm]'
466 name: 'iotdm-integration-{stream}'
469 # Job template for ODL integration verify jobs
471 # This is similar to a normal verify job, but it runs
472 # when a project that's a dependency of your project
473 # is successfully built.
475 # Required Variables:
476 # stream: release stream (eg. stable-lithium or beryllium)
477 # branch: git branch (eg. stable/lithium or master)
484 daysToKeep: '{build-days-to-keep}'
485 numToKeep: '{build-num-to-keep}'
486 artifactDaysToKeep: '{build-artifact-days-to-keep}'
487 artifactNumToKeep: '{build-artifact-num-to-keep}'
495 credentials-id: '{ssh-credentials}'
501 - ssh-agent-credentials:
503 - '{ssh-credentials}'
507 jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},aaa-merge-{stream}'
511 - wipe-org-opendaylight-repo
512 - jacoco-nojava-workaround
513 - provide-maven-settings:
514 global-settings-file: '{odl-global-settings}'
515 settings-file: '{iotdm-settings}'
518 maven-name: '{mvn33}'
520 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
521 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
522 settings: '{iotdm-settings}'
523 global-settings: '{odl-global-settings}'
529 - email-notification:
530 email-prefix: '[iotdm] [controller] [yangtools] [odlparent] [aaa]'
544 artifactDaysToKeep: '1'
545 artifactNumToKeep: '1'
553 credentials-id: '{ssh-credentials}'
559 - ssh-agent-credentials:
561 - '{ssh-credentials}'
565 - gerrit-trigger-patch-sonar:
569 - wipe-org-opendaylight-repo
570 - jacoco-nojava-workaround
571 - provide-maven-settings:
572 global-settings-file: '{odl-global-settings}'
573 settings-file: '{iotdm-settings}'
576 maven-name: '{mvn33}'
578 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
579 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
580 settings: '{iotdm-settings}'
581 global-settings: '{odl-global-settings}'
589 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
590 - email-notification:
591 email-prefix: '[iotdm]'
595 name: 'iotdm-clm-{stream}'
603 daysToKeep: '{build-days-to-keep}'
604 numToKeep: '{build-num-to-keep}'
605 artifactDaysToKeep: '{build-artifact-days-to-keep}'
606 artifactNumToKeep: '{build-artifact-num-to-keep}'
614 credentials-id: '{ssh-credentials}'
620 - ssh-agent-credentials:
622 - '{ssh-credentials}'
628 - wipe-org-opendaylight-repo
629 - provide-maven-settings:
630 global-settings-file: '{odl-global-settings}'
631 settings-file: '{iotdm-settings}'
634 maven-name: '{mvn33}'
636 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'
637 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
638 settings: '{iotdm-settings}'
639 global-settings: '{odl-global-settings}'
642 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
644 application-name: iotdm
647 - email-notification:
648 email-prefix: '[iotdm]'
651 name: 'iotdm-validate-autorelease-{stream}'
652 disabled: '{obj:disable_autorelease}'
660 daysToKeep: '{build-days-to-keep}'
661 numToKeep: '{build-num-to-keep}'
662 artifactDaysToKeep: '{build-artifact-days-to-keep}'
663 artifactNumToKeep: '{build-artifact-num-to-keep}'
670 - autorelease-release-tag:
671 release-tag: 'validate'
672 - autorelease-release-branch:
673 release-branch: '{branch}'
674 - autorelease-release-datestamp:
679 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
688 - autorelease-build-timeout
689 - ssh-agent-credentials:
691 - '{ssh-credentials}'
695 server-name: 'OpenDaylight'
697 - patchset-created-event:
698 exclude-drafts: 'false'
699 exclude-trivial-rebase: 'false'
700 exclude-no-code-change: 'false'
701 - draft-published-event
702 - comment-added-contains-event:
703 comment-contains-value: 'recheck'
704 - comment-added-contains-event:
705 comment-contains-value: 'reverify'
706 - comment-added-contains-event:
707 comment-contains-value: 'revalidate'
709 - project-compare-type: 'ANT'
710 project-pattern: 'iotdm'
712 - branch-compare-type: 'ANT'
713 branch-pattern: '**/{branch}'
716 - wipe-org-opendaylight-repo
717 - jacoco-nojava-workaround
718 - autorelease-checkout-gerrit-patch
719 - autorelease-generate-taglist
720 - autorelease-generate-release-patches
722 maven-version: '{mvn33}'
723 pom: validate-pom.xml
724 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
727 settings: '{autorelease-settings}'
728 global-settings: '{odl-global-settings}'
731 maven-name: '{mvn33}'
733 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
734 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
735 settings: '{autorelease-settings}'
736 global-settings: '{odl-global-settings}'
737 automatic-archiving: false
738 post-step-run-condition: UNSTABLE
741 - shell: "./scripts/list-project-dependencies.sh"
742 - autorelease-sys-stats
747 - email-notification:
748 email-prefix: '[autorelease] [iotdm]'