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 - 'neutron-verify-{stream}'
10 - 'neutron-merge-{stream}'
11 - 'neutron-periodic-{stream}'
12 - 'neutron-distribution-{stream}'
13 - 'neutron-distribution-check-{stream}'
14 - 'neutron-integration-{stream}'
16 - 'neutron-clm-{stream}'
17 - 'neutron-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'
35 disable_autorelease: False
36 disable_distribution_check: False
38 branch: 'stable/lithium'
43 disable_autorelease: True
44 disable_distribution_check: True
48 # For the Job templates below replace instances of:
49 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
50 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
51 # MAVEN_GOALS with your maven goals to build
52 # MAVEN_OPTS with your maven options to build
55 name: 'neutron-verify-{stream}'
57 # Job template for ODL verify jobs
59 # The purpose of this job template is to setup a ODL verify job
62 # stream: release stream (eg. stable-lithium or beryllium)
63 # branch: git branch (eg. stable/lithium or master)
80 daysToKeep: '{build-days-to-keep}'
81 numToKeep: '{build-num-to-keep}'
82 artifactDaysToKeep: '{build-artifact-days-to-keep}'
83 artifactNumToKeep: '{build-artifact-num-to-keep}'
91 refspec: 'refs/heads/{branch}'
95 credentials-id: '{ssh-credentials}'
96 refspec: '$GERRIT_REFSPEC'
97 choosing-strategy: 'gerrit'
101 - ssh-agent-credentials:
103 - '{ssh-credentials}'
106 - gerrit-trigger-patch-submitted:
111 - wipe-org-opendaylight-repo
112 - jacoco-nojava-workaround
113 - provide-maven-settings:
114 global-settings-file: 'odl-global-settings'
115 settings-file: 'neutron-settings'
117 maven-version: '{mvn33}'
119 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
121 - '-Xmx1024m -XX:MaxPermSize=256m'
122 settings: 'neutron-settings'
124 global-settings: 'odl-global-settings'
125 global-settings-type: cfp
129 artifacts: '**/target/surefire-reports/*-output.txt, '
131 - email-notification:
132 email-prefix: '[neutron]'
136 name: 'neutron-merge-{stream}'
138 # Job template for ODL merge jobs
140 # The purpose of this job template is to setup a ODL merge job
141 # and deploy artifacts to Nexus.
143 # Required Variables:
144 # stream: release stream (eg. stable-lithium or beryllium)
145 # branch: git branch (eg. stable/lithium or master)
154 artifactDaysToKeep: '{build-artifact-days-to-keep}'
155 artifactNumToKeep: '{build-artifact-num-to-keep}'
163 refspec: 'refs/heads/{branch}'
166 - gerrit-trigger-scm:
167 credentials-id: '{ssh-credentials}'
169 choosing-strategy: 'default'
173 - ssh-agent-credentials:
175 - '{ssh-credentials}'
179 - gerrit-trigger-patch-merged:
184 - wipe-org-opendaylight-repo
185 - jacoco-nojava-workaround
186 - provide-maven-settings:
187 global-settings-file: 'odl-global-settings'
188 settings-file: 'neutron-settings'
191 maven-name: '{mvn33}'
193 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
194 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
195 settings: 'neutron-settings'
197 global-settings: 'odl-global-settings'
198 global-settings-type: cfp
199 post-step-run-condition: UNSTABLE
203 condition-kind: file-exists
204 condition-filename: deploy-site.xml
205 condition-basedir: workspace
207 # The strategy here is intentional to run Maven site:deploy twice
208 # once using regular pom.xml to produce a staged-site which is
209 # then used by deploy-site.xml to push to Nexus. This is a
210 # workaround to Maven Site's default linking code which creates
211 # incorrect URLs for sites due to auto-detection assuming your
212 # project is configured in a certain way which ODL is not.
215 maven-version: '{mvn33}'
217 goals: 'site:deploy -V -B -Dstream={stream}'
220 settings: 'neutron-settings'
222 global-settings: 'odl-global-settings'
223 global-settings-type: cfp
225 maven-version: '{mvn33}'
227 goals: 'site:deploy -V -B -Dstream={stream}'
230 settings: 'neutron-settings'
232 global-settings: 'odl-global-settings'
233 global-settings-type: cfp
240 artifacts: '**/target/surefire-reports/*-output.txt, '
241 - email-notification:
242 email-prefix: '[neutron]'
246 deploy-unstable: false
250 name: 'neutron-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 - wipe-org-opendaylight-repo
293 - jacoco-nojava-workaround
294 - provide-maven-settings:
295 global-settings-file: 'odl-global-settings'
296 settings-file: 'neutron-settings'
299 maven-name: '{mvn33}'
301 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
302 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
303 settings: 'neutron-settings'
305 global-settings: 'odl-global-settings'
306 global-settings-type: cfp
312 - email-notification:
313 email-prefix: '[neutron]'
317 name: 'neutron-distribution-{stream}'
319 # Required variables:
320 # stream: release stream (eg. stable-lithium or beryllium)
321 # branch: git branch (eg. stable/lithium or master)
328 daysToKeep: '{build-days-to-keep}'
329 numToKeep: '{build-num-to-keep}'
330 artifactDaysToKeep: '{build-artifact-days-to-keep}'
331 artifactNumToKeep: '{build-artifact-num-to-keep}'
335 project: 'integration/distribution'
339 credentials-id: '{ssh-credentials}'
345 - ssh-agent-credentials:
347 - '{ssh-credentials}'
351 jobs: '{project}-merge-{stream}'
355 - wipe-org-opendaylight-repo
356 - provide-maven-settings:
357 global-settings-file: 'odl-global-settings'
358 settings-file: 'neutron-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 # Template: integration-patch-distribution-{stream}
379 # Goal: Build a patch and make sure the distribution can deploy with this change
380 # Operation: This job template builds a patch, creates a distribution containing
381 # the patch, and triggers the distribution deploy test
384 name: 'neutron-distribution-check-{stream}'
385 disabled: '{obj:disable_distribution_check}'
393 daysToKeep: '{build-days-to-keep}'
394 numToKeep: '{build-num-to-keep}'
395 artifactDaysToKeep: '{build-artifact-days-to-keep}'
396 artifactNumToKeep: '{build-artifact-num-to-keep}'
402 refspec: 'refs/heads/{branch}'
405 - integration-distribution-git-url
408 - integration-gerrit-scm:
409 credentials-id: '{ssh-credentials}'
410 basedir: '$GERRIT_PROJECT'
411 refspec: '$GERRIT_REFSPEC'
413 - integration-distribution-scm:
414 credentials-id: '{ssh-credentials}'
419 - ssh-agent-credentials:
421 - '{ssh-credentials}'
425 server-name: 'OpenDaylight'
427 - patchset-created-event:
428 exclude-drafts: 'true'
429 exclude-trivial-rebase: 'false'
430 exclude-no-code-change: 'true'
431 - draft-published-event
432 - comment-added-contains-event:
433 comment-contains-value: 'test-distribution'
434 - comment-added-contains-event:
435 comment-contains-value: 'reverify'
436 - comment-added-contains-event:
437 comment-contains-value: 'recheck'
439 - project-compare-type: 'ANT'
440 project-pattern: '{name}'
442 - branch-compare-type: 'ANT'
443 branch-pattern: '**/{branch}'
451 - wipe-org-opendaylight-repo
453 maven-version: '{mvn33}'
454 pom: '$GERRIT_PROJECT/pom.xml'
455 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}'
457 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
458 settings: 'neutron-settings'
460 global-settings: 'odl-global-settings'
461 global-settings-type: cfp
464 maven-name: '{mvn33}'
465 root-pom: 'distribution/pom.xml'
466 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
467 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
468 settings: 'neutron-settings'
470 global-settings: 'odl-global-settings'
471 global-settings-type: cfp
472 ignore-upstream-changes: true
473 post-step-run-condition: 'SUCCESS'
476 - integration-distribution-check
480 artifacts: 'karaf.log'
482 artifacts: 'karaf_console.log'
483 - email-notification:
484 email-prefix: '[neutron]'
487 name: 'neutron-integration-{stream}'
490 # Job template for ODL integration verify jobs
492 # This is similar to a normal verify job, but it runs
493 # when a project that's a dependency of your project
494 # is successfully built.
496 # Required Variables:
497 # stream: release stream (eg. stable-lithium or beryllium)
498 # branch: git branch (eg. stable/lithium or master)
505 daysToKeep: '{build-days-to-keep}'
506 numToKeep: '{build-num-to-keep}'
507 artifactDaysToKeep: '{build-artifact-days-to-keep}'
508 artifactNumToKeep: '{build-artifact-num-to-keep}'
516 credentials-id: '{ssh-credentials}'
522 - ssh-agent-credentials:
524 - '{ssh-credentials}'
528 jobs: 'odlparent-merge-{stream},aaa-merge-{stream}'
532 - wipe-org-opendaylight-repo
533 - jacoco-nojava-workaround
534 - provide-maven-settings:
535 global-settings-file: 'odl-global-settings'
536 settings-file: 'neutron-settings'
539 maven-name: '{mvn33}'
541 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
542 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
543 settings: 'neutron-settings'
545 global-settings: 'odl-global-settings'
546 global-settings-type: cfp
552 - email-notification:
553 email-prefix: '[neutron] [odlparent] [aaa]'
557 name: 'neutron-sonar'
567 artifactDaysToKeep: '1'
568 artifactNumToKeep: '1'
576 credentials-id: '{ssh-credentials}'
582 - ssh-agent-credentials:
584 - '{ssh-credentials}'
588 - gerrit-trigger-patch-sonar:
592 - wipe-org-opendaylight-repo
593 - jacoco-nojava-workaround
594 - provide-maven-settings:
595 global-settings-file: 'odl-global-settings'
596 settings-file: 'neutron-settings'
599 maven-name: '{mvn33}'
601 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
602 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
603 settings: 'neutron-settings'
605 global-settings: 'odl-global-settings'
606 global-settings-type: cfp
614 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
615 - email-notification:
616 email-prefix: '[neutron]'
620 name: 'neutron-clm-{stream}'
628 daysToKeep: '{build-days-to-keep}'
629 numToKeep: '{build-num-to-keep}'
630 artifactDaysToKeep: '{build-artifact-days-to-keep}'
631 artifactNumToKeep: '{build-artifact-num-to-keep}'
639 credentials-id: '{ssh-credentials}'
645 - ssh-agent-credentials:
647 - '{ssh-credentials}'
653 - wipe-org-opendaylight-repo
654 - provide-maven-settings:
655 global-settings-file: 'odl-global-settings'
656 settings-file: 'neutron-settings'
659 maven-name: '{mvn33}'
661 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'
662 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
663 settings: 'neutron-settings'
665 global-settings: 'odl-global-settings'
666 global-settings-type: cfp
669 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
671 application-name: neutron
674 - email-notification:
675 email-prefix: '[neutron]'
678 name: 'neutron-validate-autorelease-{stream}'
679 disabled: '{obj:disable_autorelease}'
687 daysToKeep: '{build-days-to-keep}'
688 numToKeep: '{build-num-to-keep}'
689 artifactDaysToKeep: '{build-artifact-days-to-keep}'
690 artifactNumToKeep: '{build-artifact-num-to-keep}'
698 refspec: 'refs/heads/{branch}'
699 - autorelease-release-tag:
700 release-tag: 'validate'
701 - autorelease-release-branch:
702 release-branch: '{branch}'
705 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
706 description: "Autorelease clone URL"
711 credentials-id: '{ssh-credentials}'
721 - autorelease-build-timeout
722 - ssh-agent-credentials:
724 - '{ssh-credentials}'
728 server-name: 'OpenDaylight'
730 - patchset-created-event:
731 exclude-drafts: 'true'
732 exclude-trivial-rebase: 'false'
733 exclude-no-code-change: 'true'
734 - draft-published-event
735 - comment-added-contains-event:
736 comment-contains-value: 'recheck'
737 - comment-added-contains-event:
738 comment-contains-value: 'reverify'
739 - comment-added-contains-event:
740 comment-contains-value: 'revalidate'
742 - project-compare-type: 'ANT'
743 project-pattern: 'neutron'
745 - branch-compare-type: 'ANT'
746 branch-pattern: '**/{branch}'
752 - wipe-org-opendaylight-repo
753 - jacoco-nojava-workaround
754 - autorelease-checkout-gerrit-patch
755 - autorelease-generate-release-patches
757 maven-version: '{mvn33}'
758 pom: validate-pom.xml
759 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'
762 settings: 'autorelease-settings'
764 global-settings: 'odl-global-settings'
765 global-settings-type: cfp
768 maven-name: '{mvn33}'
770 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
771 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
772 settings: 'autorelease-settings'
774 global-settings: 'odl-global-settings'
775 global-settings-type: cfp
776 automatic-archiving: false
777 post-step-run-condition: UNSTABLE
780 - autorelease-sys-stats
783 - email-notification:
784 email-prefix: '[autorelease] [neutron]'