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 - 'nic-verify-{stream}'
10 - 'nic-merge-{stream}'
11 - 'nic-periodic-{stream}'
12 - 'nic-distribution-{stream}'
13 - 'nic-distribution-check-{stream}'
14 - 'nic-integration-{stream}'
17 - 'nic-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'
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: 'nic-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 - jacoco-nojava-workaround
112 - provide-maven-settings:
113 global-settings-file: 'odl-global-settings'
114 settings-file: 'nic-settings'
116 maven-version: '{mvn33}'
118 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
120 - '-Xmx1024m -XX:MaxPermSize=256m'
121 settings: 'nic-settings'
123 global-settings: 'odl-global-settings'
124 global-settings-type: cfp
128 artifacts: '**/target/surefire-reports/*-output.txt, '
130 - email-notification:
131 email-prefix: '[nic]'
134 maven-version: '{mvn33}'
137 name: 'nic-merge-{stream}'
139 # Job template for ODL merge jobs
141 # The purpose of this job template is to setup a ODL merge job
142 # and deploy artifacts to Nexus.
144 # Required Variables:
145 # stream: release stream (eg. stable-lithium or beryllium)
146 # branch: git branch (eg. stable/lithium or master)
155 artifactDaysToKeep: '{build-artifact-days-to-keep}'
156 artifactNumToKeep: '{build-artifact-num-to-keep}'
164 refspec: 'refs/heads/{branch}'
167 - gerrit-trigger-scm:
168 credentials-id: '{ssh-credentials}'
170 choosing-strategy: 'default'
174 - ssh-agent-credentials:
176 - '{ssh-credentials}'
180 - gerrit-trigger-patch-merged:
185 - jacoco-nojava-workaround
186 - provide-maven-settings:
187 global-settings-file: 'odl-global-settings'
188 settings-file: 'nic-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: 'nic-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: 'nic-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: 'nic-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: '[nic]'
246 deploy-unstable: false
249 maven-version: '{mvn33}'
252 name: 'nic-periodic-{stream}'
255 # Job template for periodic builders
257 # The purpose of this job template is to setup a periodic
260 # Required Variables:
261 # stream: release stream (eg. stable-lithium or beryllium)
262 # branch: git branch (eg. stable/lithium or master)
271 artifactDaysToKeep: '{build-artifact-days-to-keep}'
272 artifactNumToKeep: '{build-artifact-num-to-keep}'
280 credentials-id: '{ssh-credentials}'
286 - ssh-agent-credentials:
288 - '{ssh-credentials}'
294 - jacoco-nojava-workaround
295 - provide-maven-settings:
296 global-settings-file: 'odl-global-settings'
297 settings-file: 'nic-settings'
300 maven-name: '{mvn33}'
302 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
303 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
304 settings: 'nic-settings'
306 global-settings: 'odl-global-settings'
307 global-settings-type: cfp
313 - email-notification:
314 email-prefix: '[nic]'
317 maven-version: '{mvn33}'
320 name: 'nic-distribution-{stream}'
322 # Required variables:
323 # stream: release stream (eg. stable-lithium or beryllium)
324 # branch: git branch (eg. stable/lithium or master)
331 daysToKeep: '{build-days-to-keep}'
332 numToKeep: '{build-num-to-keep}'
333 artifactDaysToKeep: '{build-artifact-days-to-keep}'
334 artifactNumToKeep: '{build-artifact-num-to-keep}'
338 project: 'integration/distribution'
342 credentials-id: '{ssh-credentials}'
348 - ssh-agent-credentials:
350 - '{ssh-credentials}'
354 jobs: '{project}-merge-{stream}'
358 - provide-maven-settings:
359 global-settings-file: 'odl-global-settings'
360 settings-file: 'nic-settings'
363 maven-name: '{mvn33}'
365 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
366 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
367 settings: 'integration-distribution-settings'
369 global-settings: 'odl-global-settings'
370 global-settings-type: cfp
373 - email-notification:
374 email-prefix: '[{project}]'
378 deploy-unstable: false
380 maven-version: '{mvn33}'
382 # Template: integration-patch-distribution-{stream}
383 # Goal: Build a patch and make sure the distribution can deploy with this change
384 # Operation: This job template builds a patch, creates a distribution containing
385 # the patch, and triggers the distribution deploy test
388 name: 'nic-distribution-check-{stream}'
389 disabled: '{obj:disable_distribution_check}'
397 daysToKeep: '{build-days-to-keep}'
398 numToKeep: '{build-num-to-keep}'
399 artifactDaysToKeep: '{build-artifact-days-to-keep}'
400 artifactNumToKeep: '{build-artifact-num-to-keep}'
406 refspec: 'refs/heads/{branch}'
409 - integration-distribution-git-url
412 - integration-gerrit-scm:
413 credentials-id: '{ssh-credentials}'
414 basedir: '$GERRIT_PROJECT'
415 refspec: '$GERRIT_REFSPEC'
417 - integration-distribution-scm:
418 credentials-id: '{ssh-credentials}'
423 - ssh-agent-credentials:
425 - '{ssh-credentials}'
429 server-name: 'OpenDaylight'
431 - patchset-created-event:
432 exclude-drafts: 'true'
433 exclude-trivial-rebase: 'false'
434 exclude-no-code-change: 'true'
435 - draft-published-event
436 - comment-added-contains-event:
437 comment-contains-value: 'test-distribution'
438 - comment-added-contains-event:
439 comment-contains-value: 'reverify'
440 - comment-added-contains-event:
441 comment-contains-value: 'recheck'
443 - project-compare-type: 'ANT'
444 project-pattern: '{name}'
446 - branch-compare-type: 'ANT'
447 branch-pattern: '**/{branch}'
456 maven-version: '{mvn33}'
457 pom: '$GERRIT_PROJECT/pom.xml'
458 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}'
460 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
461 settings: 'nic-settings'
463 global-settings: 'odl-global-settings'
464 global-settings-type: cfp
467 maven-name: '{mvn33}'
468 root-pom: 'distribution/pom.xml'
469 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
470 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
471 settings: 'nic-settings'
473 global-settings: 'odl-global-settings'
474 global-settings-type: cfp
475 ignore-upstream-changes: true
476 post-step-run-condition: 'SUCCESS'
479 - integration-distribution-check
483 artifacts: 'karaf.log'
485 artifacts: 'karaf_console.log'
486 - email-notification:
487 email-prefix: '[nic]'
489 maven-version: '{mvn33}'
492 name: 'nic-integration-{stream}'
495 # Job template for ODL integration verify jobs
497 # This is similar to a normal verify job, but it runs
498 # when a project that's a dependency of your project
499 # is successfully built.
501 # Required Variables:
502 # stream: release stream (eg. stable-lithium or beryllium)
503 # branch: git branch (eg. stable/lithium or master)
510 daysToKeep: '{build-days-to-keep}'
511 numToKeep: '{build-num-to-keep}'
512 artifactDaysToKeep: '{build-artifact-days-to-keep}'
513 artifactNumToKeep: '{build-artifact-num-to-keep}'
521 credentials-id: '{ssh-credentials}'
527 - ssh-agent-credentials:
529 - '{ssh-credentials}'
533 jobs: 'controller-merge-{stream},odlparent-merge-{stream},vtn-merge-{stream},yangtools-merge-{stream},groupbasedpolicy-merge-{stream}'
537 - jacoco-nojava-workaround
538 - provide-maven-settings:
539 global-settings-file: 'odl-global-settings'
540 settings-file: 'nic-settings'
543 maven-name: '{mvn33}'
545 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
546 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
547 settings: 'nic-settings'
549 global-settings: 'odl-global-settings'
550 global-settings-type: cfp
556 - email-notification:
557 email-prefix: '[nic] [controller] [odlparent] [vtn] [yangtools] [groupbasedpolicy]'
560 maven-version: '{mvn33}'
573 artifactDaysToKeep: '1'
574 artifactNumToKeep: '1'
582 credentials-id: '{ssh-credentials}'
588 - ssh-agent-credentials:
590 - '{ssh-credentials}'
594 - gerrit-trigger-patch-sonar:
598 - jacoco-nojava-workaround
599 - provide-maven-settings:
600 global-settings-file: 'odl-global-settings'
601 settings-file: 'nic-settings'
604 maven-name: '{mvn33}'
606 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
607 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
608 settings: 'nic-settings'
610 global-settings: 'odl-global-settings'
611 global-settings-type: cfp
619 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
620 - email-notification:
621 email-prefix: '[nic]'
624 maven-version: '{mvn33}'
627 name: 'nic-clm-{stream}'
635 daysToKeep: '{build-days-to-keep}'
636 numToKeep: '{build-num-to-keep}'
637 artifactDaysToKeep: '{build-artifact-days-to-keep}'
638 artifactNumToKeep: '{build-artifact-num-to-keep}'
646 credentials-id: '{ssh-credentials}'
652 - ssh-agent-credentials:
654 - '{ssh-credentials}'
660 - provide-maven-settings:
661 global-settings-file: 'odl-global-settings'
662 settings-file: 'nic-settings'
665 maven-name: '{mvn33}'
667 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'
668 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
669 settings: 'nic-settings'
671 global-settings: 'odl-global-settings'
672 global-settings-type: cfp
675 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
677 application-name: nic
680 - email-notification:
681 email-prefix: '[nic]'
683 maven-version: '{mvn33}'
686 name: 'nic-validate-autorelease-{stream}'
687 disabled: '{obj:disable_autorelease}'
695 daysToKeep: '{build-days-to-keep}'
696 numToKeep: '{build-num-to-keep}'
697 artifactDaysToKeep: '{build-artifact-days-to-keep}'
698 artifactNumToKeep: '{build-artifact-num-to-keep}'
706 refspec: 'refs/heads/{branch}'
707 - autorelease-release-tag:
708 release-tag: 'validate'
709 - autorelease-release-branch:
710 release-branch: '{branch}'
713 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
714 description: "Autorelease clone URL"
719 credentials-id: '{ssh-credentials}'
729 - autorelease-build-timeout
730 - ssh-agent-credentials:
732 - '{ssh-credentials}'
736 server-name: 'OpenDaylight'
738 - patchset-created-event:
739 exclude-drafts: 'true'
740 exclude-trivial-rebase: 'false'
741 exclude-no-code-change: 'true'
742 - draft-published-event
743 - comment-added-contains-event:
744 comment-contains-value: 'recheck'
745 - comment-added-contains-event:
746 comment-contains-value: 'reverify'
747 - comment-added-contains-event:
748 comment-contains-value: 'revalidate'
750 - project-compare-type: 'ANT'
751 project-pattern: 'nic'
753 - branch-compare-type: 'ANT'
754 branch-pattern: '**/{branch}'
760 - jacoco-nojava-workaround
761 - autorelease-checkout-gerrit-patch
762 - autorelease-generate-release-patches
764 maven-version: '{mvn33}'
765 pom: validate-pom.xml
766 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'
769 settings: 'autorelease-settings'
771 global-settings: 'odl-global-settings'
772 global-settings-type: cfp
775 maven-name: '{mvn33}'
777 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
778 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
779 settings: 'autorelease-settings'
781 global-settings: 'odl-global-settings'
782 global-settings-type: cfp
783 automatic-archiving: false
784 post-step-run-condition: UNSTABLE
787 - autorelease-sys-stats
790 - email-notification:
791 email-prefix: '[autorelease] [nic]'
793 maven-version: '{mvn33}'