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 - 'bgpcep-verify-{stream}'
10 - 'bgpcep-merge-{stream}'
11 - 'bgpcep-periodic-{stream}'
12 - 'bgpcep-distribution-{stream}'
13 - 'bgpcep-distribution-check-{stream}'
14 - 'bgpcep-integration-{stream}'
16 - 'bgpcep-clm-{stream}'
17 - 'bgpcep-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 branch: 'stable/helium'
51 disable_autorelease: True
52 disable_distribution_check: True
56 # For the Job templates below replace instances of:
57 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
58 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
59 # MAVEN_GOALS with your maven goals to build
60 # MAVEN_OPTS with your maven options to build
63 name: 'bgpcep-verify-{stream}'
65 # Job template for ODL verify jobs
67 # The purpose of this job template is to setup a ODL verify job
70 # stream: release stream (eg. stable-lithium or beryllium)
71 # branch: git branch (eg. stable/lithium or master)
88 daysToKeep: '{build-days-to-keep}'
89 numToKeep: '{build-num-to-keep}'
90 artifactDaysToKeep: '{build-artifact-days-to-keep}'
91 artifactNumToKeep: '{build-artifact-num-to-keep}'
98 - gerrit-refspec-parameter:
99 refspec: 'refs/heads/{branch}'
102 - gerrit-trigger-scm:
103 credentials-id: '{ssh-credentials}'
104 refspec: '$GERRIT_REFSPEC'
105 choosing-strategy: 'gerrit'
109 - ssh-agent-credentials:
111 - '{ssh-credentials}'
114 - gerrit-trigger-patch-submitted:
119 - wipe-org-opendaylight-repo
120 - jacoco-nojava-workaround
121 - provide-maven-settings:
122 global-settings-file: '{odl-global-settings}'
123 settings-file: '{bgpcep-settings}'
125 maven-version: '{mvn33}'
127 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate -Djenkins -Dstream={stream}'
129 - '-Xmx1024m -XX:MaxPermSize=256m'
130 settings: '{bgpcep-settings}'
131 global-settings: '{odl-global-settings}'
135 - email-notification:
136 email-prefix: '[bgpcep]'
140 name: 'bgpcep-merge-{stream}'
142 # Job template for ODL merge jobs
144 # The purpose of this job template is to setup a ODL merge job
145 # and deploy artifacts to Nexus.
147 # Required Variables:
148 # stream: release stream (eg. stable-lithium or beryllium)
149 # branch: git branch (eg. stable/lithium or master)
158 artifactDaysToKeep: '{build-artifact-days-to-keep}'
159 artifactNumToKeep: '{build-artifact-num-to-keep}'
166 - gerrit-refspec-parameter:
167 refspec: 'refs/heads/{branch}'
170 - gerrit-trigger-scm:
171 credentials-id: '{ssh-credentials}'
173 choosing-strategy: 'default'
177 - ssh-agent-credentials:
179 - '{ssh-credentials}'
183 - gerrit-trigger-patch-merged:
188 - wipe-org-opendaylight-repo
189 - jacoco-nojava-workaround
190 - provide-maven-settings:
191 global-settings-file: '{odl-global-settings}'
192 settings-file: '{bgpcep-settings}'
195 maven-name: '{mvn33}'
197 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate -Djenkins -Dmerge -Dstream={stream}'
198 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
199 settings: '{bgpcep-settings}'
200 global-settings: '{odl-global-settings}'
201 post-step-run-condition: UNSTABLE
205 condition-kind: file-exists
206 condition-filename: deploy-site.xml
207 condition-basedir: workspace
209 # The strategy here is intentional to run Maven site:deploy twice
210 # once using regular pom.xml to produce a staged-site which is
211 # then used by deploy-site.xml to push to Nexus. This is a
212 # workaround to Maven Site's default linking code which creates
213 # incorrect URLs for sites due to auto-detection assuming your
214 # project is configured in a certain way which ODL is not.
217 maven-version: '{mvn33}'
219 goals: 'site:deploy -Dstream={stream}'
222 settings: '{bgpcep-settings}'
223 global-settings: '{odl-global-settings}'
225 maven-version: '{mvn33}'
227 goals: 'site:deploy -Dstream={stream}'
230 settings: '{bgpcep-settings}'
231 global-settings: '{odl-global-settings}'
238 artifacts: '**/target/surefire-reports/*-output.txt, '
239 - email-notification:
240 email-prefix: '[bgpcep]'
244 deploy-unstable: false
248 name: 'bgpcep-periodic-{stream}'
251 # Job template for periodic builders
253 # The purpose of this job template is to setup a periodic
256 # Required Variables:
257 # stream: release stream (eg. stable-lithium or beryllium)
258 # branch: git branch (eg. stable/lithium or master)
267 artifactDaysToKeep: '{build-artifact-days-to-keep}'
268 artifactNumToKeep: '{build-artifact-num-to-keep}'
276 credentials-id: '{ssh-credentials}'
282 - ssh-agent-credentials:
284 - '{ssh-credentials}'
290 - wipe-org-opendaylight-repo
291 - jacoco-nojava-workaround
292 - provide-maven-settings:
293 global-settings-file: '{odl-global-settings}'
294 settings-file: '{bgpcep-settings}'
297 maven-name: '{mvn33}'
299 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate -Djenkins'
300 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
301 settings: '{bgpcep-settings}'
302 global-settings: '{odl-global-settings}'
308 - email-notification:
309 email-prefix: '[bgpcep]'
313 name: 'bgpcep-distribution-{stream}'
315 # Required variables:
316 # stream: release stream (eg. stable-lithium or beryllium)
317 # branch: git branch (eg. stable/lithium or master)
324 daysToKeep: '{build-days-to-keep}'
325 numToKeep: '{build-num-to-keep}'
326 artifactDaysToKeep: '{build-artifact-days-to-keep}'
327 artifactNumToKeep: '{build-artifact-num-to-keep}'
331 project: 'integration/distribution'
335 credentials-id: '{ssh-credentials}'
341 - ssh-agent-credentials:
343 - '{ssh-credentials}'
347 jobs: '{project}-merge-{stream}'
351 - wipe-org-opendaylight-repo
352 - provide-maven-settings:
353 global-settings-file: '{odl-global-settings}'
354 settings-file: '{bgpcep-settings}'
357 maven-name: '{mvn33}'
359 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
360 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
361 settings: '{integration-settings}'
362 global-settings: '{odl-global-settings}'
365 - email-notification:
366 email-prefix: '[{project}]'
370 deploy-unstable: false
372 # Template: integration-patch-distribution-{stream}
373 # Goal: Build a patch and make sure the distribution can deploy with this change
374 # Operation: This job template builds a patch, creates a distribution containing
375 # the patch, and triggers the distribution deploy test
378 name: 'bgpcep-distribution-check-{stream}'
379 disabled: '{obj:disable_distribution_check}'
389 artifactDaysToKeep: '{build-artifact-days-to-keep}'
390 artifactNumToKeep: '{build-artifact-num-to-keep}'
393 - gerrit-project-parameter:
395 - gerrit-refspec-parameter:
399 - integration-distribution-git-url
402 - integration-gerrit-scm:
403 credentials-id: '{ssh-credentials}'
404 basedir: '$GERRIT_PROJECT'
405 refspec: '$GERRIT_REFSPEC'
407 - integration-distribution-scm:
408 credentials-id: '{ssh-credentials}'
413 - ssh-agent-credentials:
415 - '{ssh-credentials}'
419 server-name: 'OpenDaylight'
421 - patchset-created-event:
422 exclude-drafts: 'true'
423 exclude-trivial-rebase: 'false'
424 exclude-no-code-change: 'true'
425 - draft-published-event
426 - comment-added-contains-event:
427 comment-contains-value: 'test-distribution'
429 - project-compare-type: 'ANT'
430 project-pattern: '{name}'
432 - branch-compare-type: 'ANT'
433 branch-pattern: '**/{branch}'
441 - integration-get-bundle-url
443 properties-file: 'bundle.txt'
444 - wipe-org-opendaylight-repo
446 maven-version: '{mvn33}'
447 pom: '$GERRIT_PROJECT/pom.xml'
448 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}'
450 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
451 settings: '{bgpcep-settings}'
452 global-settings: '{odl-global-settings}'
455 maven-name: '{mvn33}'
456 root-pom: 'distribution/pom.xml'
457 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
458 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
459 settings: '{bgpcep-settings}'
460 global-settings: '{odl-global-settings}'
461 ignore-upstream-changes: true
462 post-step-run-condition: 'SUCCESS'
466 - project: 'integration-distribution-deploy-{stream}'
468 predefined-parameters:
472 - email-notification:
473 email-prefix: '[bgpcep]'
476 name: 'bgpcep-integration-{stream}'
479 # Job template for ODL integration verify jobs
481 # This is similar to a normal verify job, but it runs
482 # when a project that's a dependency of your project
483 # is successfully built.
485 # Required Variables:
486 # stream: release stream (eg. stable-lithium or beryllium)
487 # branch: git branch (eg. stable/lithium or master)
494 daysToKeep: '{build-days-to-keep}'
495 numToKeep: '{build-num-to-keep}'
496 artifactDaysToKeep: '{build-artifact-days-to-keep}'
497 artifactNumToKeep: '{build-artifact-num-to-keep}'
505 credentials-id: '{ssh-credentials}'
511 - ssh-agent-credentials:
513 - '{ssh-credentials}'
517 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},mdsal-merge-{stream},tcpmd5-merge-{stream}'
521 - wipe-org-opendaylight-repo
522 - jacoco-nojava-workaround
523 - provide-maven-settings:
524 global-settings-file: '{odl-global-settings}'
525 settings-file: '{bgpcep-settings}'
528 maven-name: '{mvn33}'
530 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate -Djenkins'
531 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
532 settings: '{bgpcep-settings}'
533 global-settings: '{odl-global-settings}'
539 - email-notification:
540 email-prefix: '[bgpcep] [odlparent] [yangtools] [controller] [mdsal] [tcpmd5]'
554 artifactDaysToKeep: '1'
555 artifactNumToKeep: '1'
563 credentials-id: '{ssh-credentials}'
569 - ssh-agent-credentials:
571 - '{ssh-credentials}'
575 - gerrit-trigger-patch-sonar:
579 - wipe-org-opendaylight-repo
580 - jacoco-nojava-workaround
581 - provide-maven-settings:
582 global-settings-file: '{odl-global-settings}'
583 settings-file: '{bgpcep-settings}'
586 maven-name: '{mvn33}'
588 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean -DrepoBuild install javadoc:aggregate -Djenkins -Dsonar'
589 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
590 settings: '{bgpcep-settings}'
591 global-settings: '{odl-global-settings}'
599 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
600 - email-notification:
601 email-prefix: '[bgpcep]'
605 name: 'bgpcep-clm-{stream}'
613 daysToKeep: '{build-days-to-keep}'
614 numToKeep: '{build-num-to-keep}'
615 artifactDaysToKeep: '{build-artifact-days-to-keep}'
616 artifactNumToKeep: '{build-artifact-num-to-keep}'
624 credentials-id: '{ssh-credentials}'
630 - ssh-agent-credentials:
632 - '{ssh-credentials}'
638 - wipe-org-opendaylight-repo
639 - provide-maven-settings:
640 global-settings-file: '{odl-global-settings}'
641 settings-file: '{bgpcep-settings}'
644 maven-name: '{mvn33}'
646 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'
647 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
648 settings: '{bgpcep-settings}'
649 global-settings: '{odl-global-settings}'
652 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
654 application-name: bgpcep
657 - email-notification:
658 email-prefix: '[bgpcep]'
661 name: 'bgpcep-validate-autorelease-{stream}'
662 disabled: '{obj:disable_autorelease}'
670 daysToKeep: '{build-days-to-keep}'
671 numToKeep: '{build-num-to-keep}'
672 artifactDaysToKeep: '{build-artifact-days-to-keep}'
673 artifactNumToKeep: '{build-artifact-num-to-keep}'
680 - autorelease-release-tag:
681 release-tag: 'validate'
682 - autorelease-release-branch:
683 release-branch: '{branch}'
684 - autorelease-release-datestamp:
689 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
698 - autorelease-build-timeout
699 - ssh-agent-credentials:
701 - '{ssh-credentials}'
705 server-name: 'OpenDaylight'
707 - patchset-created-event:
708 exclude-drafts: 'false'
709 exclude-trivial-rebase: 'false'
710 exclude-no-code-change: 'false'
711 - draft-published-event
712 - comment-added-contains-event:
713 comment-contains-value: 'recheck'
714 - comment-added-contains-event:
715 comment-contains-value: 'reverify'
716 - comment-added-contains-event:
717 comment-contains-value: 'revalidate'
719 - project-compare-type: 'ANT'
720 project-pattern: 'bgpcep'
722 - branch-compare-type: 'ANT'
723 branch-pattern: '**/{branch}'
726 - wipe-org-opendaylight-repo
727 - jacoco-nojava-workaround
728 - autorelease-checkout-gerrit-patch
729 - autorelease-generate-taglist
730 - autorelease-generate-release-patches
732 maven-version: '{mvn33}'
733 pom: validate-pom.xml
734 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
737 settings: '{autorelease-settings}'
738 global-settings: '{odl-global-settings}'
741 maven-name: '{mvn33}'
743 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
744 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
745 settings: '{autorelease-settings}'
746 global-settings: '{odl-global-settings}'
747 automatic-archiving: false
748 post-step-run-condition: UNSTABLE
751 - shell: "./scripts/list-project-dependencies.sh"
752 - autorelease-sys-stats
757 - email-notification:
758 email-prefix: '[autorelease] [bgpcep]'