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 - 'sdninterfaceapp-verify-{stream}'
10 - 'sdninterfaceapp-merge-{stream}'
11 - 'sdninterfaceapp-periodic-{stream}'
12 - 'sdninterfaceapp-distribution-{stream}'
13 - 'sdninterfaceapp-distribution-check-{stream}'
14 - 'sdninterfaceapp-integration-{stream}'
15 - 'sdninterfaceapp-sonar'
16 - 'sdninterfaceapp-clm-{stream}'
17 - 'sdninterfaceapp-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
47 project: 'sdninterfaceapp'
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: 'sdninterfaceapp-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}'
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:
108 name: 'sdninterfaceapp'
112 - wipe-org-opendaylight-repo
113 - jacoco-nojava-workaround
114 - provide-maven-settings:
115 global-settings-file: 'odl-global-settings'
116 settings-file: 'sdninterfaceapp-settings'
118 maven-version: '{mvn33}'
120 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dstream={stream}'
122 - '-Xmx1024m -XX:MaxPermSize=256m'
123 settings: 'sdninterfaceapp-settings'
125 global-settings: 'odl-global-settings'
126 global-settings-type: cfp
130 artifacts: '**/target/surefire-reports/*-output.txt, '
132 - email-notification:
133 email-prefix: '[sdninterfaceapp]'
137 name: 'sdninterfaceapp-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:
181 name: 'sdninterfaceapp'
185 - wipe-org-opendaylight-repo
186 - jacoco-nojava-workaround
187 - provide-maven-settings:
188 global-settings-file: 'odl-global-settings'
189 settings-file: 'sdninterfaceapp-settings'
192 maven-name: '{mvn33}'
194 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dmerge -Dstream={stream}'
195 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
196 settings: 'sdninterfaceapp-settings'
198 global-settings: 'odl-global-settings'
199 global-settings-type: cfp
200 post-step-run-condition: UNSTABLE
204 condition-kind: file-exists
205 condition-filename: deploy-site.xml
206 condition-basedir: workspace
208 # The strategy here is intentional to run Maven site:deploy twice
209 # once using regular pom.xml to produce a staged-site which is
210 # then used by deploy-site.xml to push to Nexus. This is a
211 # workaround to Maven Site's default linking code which creates
212 # incorrect URLs for sites due to auto-detection assuming your
213 # project is configured in a certain way which ODL is not.
216 maven-version: '{mvn33}'
218 goals: 'site:deploy -V -B -Dstream={stream}'
221 settings: 'sdninterfaceapp-settings'
223 global-settings: 'odl-global-settings'
224 global-settings-type: cfp
226 maven-version: '{mvn33}'
228 goals: 'site:deploy -V -B -Dstream={stream}'
231 settings: 'sdninterfaceapp-settings'
233 global-settings: 'odl-global-settings'
234 global-settings-type: cfp
241 artifacts: '**/target/surefire-reports/*-output.txt, '
242 - email-notification:
243 email-prefix: '[sdninterfaceapp]'
247 deploy-unstable: false
251 name: 'sdninterfaceapp-periodic-{stream}'
254 # Job template for periodic builders
256 # The purpose of this job template is to setup a periodic
259 # Required Variables:
260 # stream: release stream (eg. stable-lithium or beryllium)
261 # branch: git branch (eg. stable/lithium or master)
270 artifactDaysToKeep: '{build-artifact-days-to-keep}'
271 artifactNumToKeep: '{build-artifact-num-to-keep}'
279 credentials-id: '{ssh-credentials}'
285 - ssh-agent-credentials:
287 - '{ssh-credentials}'
293 - wipe-org-opendaylight-repo
294 - jacoco-nojava-workaround
295 - provide-maven-settings:
296 global-settings-file: 'odl-global-settings'
297 settings-file: 'sdninterfaceapp-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: 'sdninterfaceapp-settings'
306 global-settings: 'odl-global-settings'
307 global-settings-type: cfp
313 - email-notification:
314 email-prefix: '[sdninterfaceapp]'
318 name: 'sdninterfaceapp-distribution-{stream}'
320 # Required variables:
321 # stream: release stream (eg. stable-lithium or beryllium)
322 # branch: git branch (eg. stable/lithium or master)
329 daysToKeep: '{build-days-to-keep}'
330 numToKeep: '{build-num-to-keep}'
331 artifactDaysToKeep: '{build-artifact-days-to-keep}'
332 artifactNumToKeep: '{build-artifact-num-to-keep}'
336 project: 'integration/distribution'
340 credentials-id: '{ssh-credentials}'
346 - ssh-agent-credentials:
348 - '{ssh-credentials}'
352 jobs: '{project}-merge-{stream}'
356 - wipe-org-opendaylight-repo
357 - provide-maven-settings:
358 global-settings-file: 'odl-global-settings'
359 settings-file: 'sdninterfaceapp-settings'
362 maven-name: '{mvn33}'
364 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
365 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
366 settings: 'integration-distribution-settings'
368 global-settings: 'odl-global-settings'
369 global-settings-type: cfp
372 - email-notification:
373 email-prefix: '[{project}]'
377 deploy-unstable: false
379 # Template: integration-patch-distribution-{stream}
380 # Goal: Build a patch and make sure the distribution can deploy with this change
381 # Operation: This job template builds a patch, creates a distribution containing
382 # the patch, and triggers the distribution deploy test
385 name: 'sdninterfaceapp-distribution-check-{stream}'
386 disabled: '{obj:disable_distribution_check}'
394 daysToKeep: '{build-days-to-keep}'
395 numToKeep: '{build-num-to-keep}'
396 artifactDaysToKeep: '{build-artifact-days-to-keep}'
397 artifactNumToKeep: '{build-artifact-num-to-keep}'
403 refspec: 'refs/heads/{branch}'
406 - integration-distribution-git-url
409 - integration-gerrit-scm:
410 credentials-id: '{ssh-credentials}'
411 basedir: '$GERRIT_PROJECT'
412 refspec: '$GERRIT_REFSPEC'
414 - integration-distribution-scm:
415 credentials-id: '{ssh-credentials}'
420 - ssh-agent-credentials:
422 - '{ssh-credentials}'
426 server-name: 'OpenDaylight'
428 - patchset-created-event:
429 exclude-drafts: 'true'
430 exclude-trivial-rebase: 'false'
431 exclude-no-code-change: 'true'
432 - draft-published-event
433 - comment-added-contains-event:
434 comment-contains-value: 'test-distribution'
435 - comment-added-contains-event:
436 comment-contains-value: 'reverify'
437 - comment-added-contains-event:
438 comment-contains-value: 'recheck'
440 - project-compare-type: 'ANT'
441 project-pattern: '{name}'
443 - branch-compare-type: 'ANT'
444 branch-pattern: '**/{branch}'
452 - wipe-org-opendaylight-repo
454 maven-version: '{mvn33}'
455 pom: '$GERRIT_PROJECT/pom.xml'
456 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}'
458 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
459 settings: 'sdninterfaceapp-settings'
461 global-settings: 'odl-global-settings'
462 global-settings-type: cfp
465 maven-name: '{mvn33}'
466 root-pom: 'distribution/pom.xml'
467 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
468 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
469 settings: 'sdninterfaceapp-settings'
471 global-settings: 'odl-global-settings'
472 global-settings-type: cfp
473 ignore-upstream-changes: true
474 post-step-run-condition: 'SUCCESS'
477 - integration-distribution-check
481 artifacts: 'karaf.log'
483 artifacts: 'karaf_console.log'
484 - email-notification:
485 email-prefix: '[sdninterfaceapp]'
488 name: 'sdninterfaceapp-integration-{stream}'
491 # Job template for ODL integration verify jobs
493 # This is similar to a normal verify job, but it runs
494 # when a project that's a dependency of your project
495 # is successfully built.
497 # Required Variables:
498 # stream: release stream (eg. stable-lithium or beryllium)
499 # branch: git branch (eg. stable/lithium or master)
506 daysToKeep: '{build-days-to-keep}'
507 numToKeep: '{build-num-to-keep}'
508 artifactDaysToKeep: '{build-artifact-days-to-keep}'
509 artifactNumToKeep: '{build-artifact-num-to-keep}'
517 credentials-id: '{ssh-credentials}'
523 - ssh-agent-credentials:
525 - '{ssh-credentials}'
529 jobs: 'odlparent-merge-{stream},bgpcep-merge-{stream}'
533 - wipe-org-opendaylight-repo
534 - jacoco-nojava-workaround
535 - provide-maven-settings:
536 global-settings-file: 'odl-global-settings'
537 settings-file: 'sdninterfaceapp-settings'
540 maven-name: '{mvn33}'
542 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins'
543 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
544 settings: 'sdninterfaceapp-settings'
546 global-settings: 'odl-global-settings'
547 global-settings-type: cfp
553 - email-notification:
554 email-prefix: '[sdninterfaceapp] [odlparent] [bgpcep]'
558 name: 'sdninterfaceapp-sonar'
568 artifactDaysToKeep: '1'
569 artifactNumToKeep: '1'
577 credentials-id: '{ssh-credentials}'
583 - ssh-agent-credentials:
585 - '{ssh-credentials}'
589 - gerrit-trigger-patch-sonar:
590 name: 'sdninterfaceapp'
593 - wipe-org-opendaylight-repo
594 - jacoco-nojava-workaround
595 - provide-maven-settings:
596 global-settings-file: 'odl-global-settings'
597 settings-file: 'sdninterfaceapp-settings'
600 maven-name: '{mvn33}'
602 goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -V -B -Djenkins -Dsonar'
603 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
604 settings: 'sdninterfaceapp-settings'
606 global-settings: 'odl-global-settings'
607 global-settings-type: cfp
615 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
616 - email-notification:
617 email-prefix: '[sdninterfaceapp]'
621 name: 'sdninterfaceapp-clm-{stream}'
629 daysToKeep: '{build-days-to-keep}'
630 numToKeep: '{build-num-to-keep}'
631 artifactDaysToKeep: '{build-artifact-days-to-keep}'
632 artifactNumToKeep: '{build-artifact-num-to-keep}'
640 credentials-id: '{ssh-credentials}'
646 - ssh-agent-credentials:
648 - '{ssh-credentials}'
654 - wipe-org-opendaylight-repo
655 - provide-maven-settings:
656 global-settings-file: 'odl-global-settings'
657 settings-file: 'sdninterfaceapp-settings'
660 maven-name: '{mvn33}'
662 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'
663 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
664 settings: 'sdninterfaceapp-settings'
666 global-settings: 'odl-global-settings'
667 global-settings-type: cfp
670 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
672 application-name: sdninterfaceapp
675 - email-notification:
676 email-prefix: '[sdninterfaceapp]'
679 name: 'sdninterfaceapp-validate-autorelease-{stream}'
680 disabled: '{obj:disable_autorelease}'
688 daysToKeep: '{build-days-to-keep}'
689 numToKeep: '{build-num-to-keep}'
690 artifactDaysToKeep: '{build-artifact-days-to-keep}'
691 artifactNumToKeep: '{build-artifact-num-to-keep}'
699 refspec: 'refs/heads/{branch}'
700 - autorelease-release-tag:
701 release-tag: 'validate'
702 - autorelease-release-branch:
703 release-branch: '{branch}'
706 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
707 description: "Autorelease clone URL"
712 credentials-id: '{ssh-credentials}'
722 - autorelease-build-timeout
723 - ssh-agent-credentials:
725 - '{ssh-credentials}'
729 server-name: 'OpenDaylight'
731 - patchset-created-event:
732 exclude-drafts: 'true'
733 exclude-trivial-rebase: 'false'
734 exclude-no-code-change: 'true'
735 - draft-published-event
736 - comment-added-contains-event:
737 comment-contains-value: 'recheck'
738 - comment-added-contains-event:
739 comment-contains-value: 'reverify'
740 - comment-added-contains-event:
741 comment-contains-value: 'revalidate'
743 - project-compare-type: 'ANT'
744 project-pattern: 'sdninterfaceapp'
746 - branch-compare-type: 'ANT'
747 branch-pattern: '**/{branch}'
753 - wipe-org-opendaylight-repo
754 - jacoco-nojava-workaround
755 - autorelease-checkout-gerrit-patch
756 - autorelease-generate-release-patches
758 maven-version: '{mvn33}'
759 pom: validate-pom.xml
760 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'
763 settings: 'autorelease-settings'
765 global-settings: 'odl-global-settings'
766 global-settings-type: cfp
769 maven-name: '{mvn33}'
771 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
772 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
773 settings: 'autorelease-settings'
775 global-settings: 'odl-global-settings'
776 global-settings-type: cfp
777 automatic-archiving: false
778 post-step-run-condition: UNSTABLE
781 - autorelease-sys-stats
784 - email-notification:
785 email-prefix: '[autorelease] [sdninterfaceapp]'