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 - 'capwap-verify-{stream}'
10 - 'capwap-merge-{stream}'
11 - 'capwap-periodic-{stream}'
12 - 'capwap-distribution-{stream}'
13 - 'capwap-distribution-check-{stream}'
14 - 'capwap-integration-{stream}'
16 - 'capwap-clm-{stream}'
17 - 'capwap-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
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: 'capwap-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}'
90 - gerrit-refspec-parameter:
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: '{capwap-settings}'
117 maven-version: '{mvn33}'
119 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
121 - '-Xmx1024m -XX:MaxPermSize=256m'
122 settings: '{capwap-settings}'
123 global-settings: '{odl-global-settings}'
127 - email-notification:
128 email-prefix: '[capwap]'
132 name: 'capwap-merge-{stream}'
134 # Job template for ODL merge jobs
136 # The purpose of this job template is to setup a ODL merge job
137 # and deploy artifacts to Nexus.
139 # Required Variables:
140 # stream: release stream (eg. stable-lithium or beryllium)
141 # branch: git branch (eg. stable/lithium or master)
150 artifactDaysToKeep: '{build-artifact-days-to-keep}'
151 artifactNumToKeep: '{build-artifact-num-to-keep}'
158 - gerrit-refspec-parameter:
159 refspec: 'refs/heads/{branch}'
162 - gerrit-trigger-scm:
163 credentials-id: '{ssh-credentials}'
165 choosing-strategy: 'default'
169 - ssh-agent-credentials:
171 - '{ssh-credentials}'
175 - gerrit-trigger-patch-merged:
180 - wipe-org-opendaylight-repo
181 - jacoco-nojava-workaround
182 - provide-maven-settings:
183 global-settings-file: '{odl-global-settings}'
184 settings-file: '{capwap-settings}'
187 maven-name: '{mvn33}'
189 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
190 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
191 settings: '{capwap-settings}'
192 global-settings: '{odl-global-settings}'
193 post-step-run-condition: UNSTABLE
197 condition-kind: file-exists
198 condition-filename: deploy-site.xml
199 condition-basedir: workspace
201 # The strategy here is intentional to run Maven site:deploy twice
202 # once using regular pom.xml to produce a staged-site which is
203 # then used by deploy-site.xml to push to Nexus. This is a
204 # workaround to Maven Site's default linking code which creates
205 # incorrect URLs for sites due to auto-detection assuming your
206 # project is configured in a certain way which ODL is not.
209 maven-version: '{mvn33}'
211 goals: 'site:deploy -Dstream={stream}'
214 settings: '{capwap-settings}'
215 global-settings: '{odl-global-settings}'
217 maven-version: '{mvn33}'
219 goals: 'site:deploy -Dstream={stream}'
222 settings: '{capwap-settings}'
223 global-settings: '{odl-global-settings}'
230 artifacts: '**/target/surefire-reports/*-output.txt, '
231 - email-notification:
232 email-prefix: '[capwap]'
236 deploy-unstable: false
240 name: 'capwap-periodic-{stream}'
243 # Job template for periodic builders
245 # The purpose of this job template is to setup a periodic
248 # Required Variables:
249 # stream: release stream (eg. stable-lithium or beryllium)
250 # branch: git branch (eg. stable/lithium or master)
259 artifactDaysToKeep: '{build-artifact-days-to-keep}'
260 artifactNumToKeep: '{build-artifact-num-to-keep}'
268 credentials-id: '{ssh-credentials}'
274 - ssh-agent-credentials:
276 - '{ssh-credentials}'
282 - wipe-org-opendaylight-repo
283 - jacoco-nojava-workaround
284 - provide-maven-settings:
285 global-settings-file: '{odl-global-settings}'
286 settings-file: '{capwap-settings}'
289 maven-name: '{mvn33}'
291 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
292 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
293 settings: '{capwap-settings}'
294 global-settings: '{odl-global-settings}'
300 - email-notification:
301 email-prefix: '[capwap]'
305 name: 'capwap-distribution-{stream}'
307 # Required variables:
308 # stream: release stream (eg. stable-lithium or beryllium)
309 # branch: git branch (eg. stable/lithium or master)
316 daysToKeep: '{build-days-to-keep}'
317 numToKeep: '{build-num-to-keep}'
318 artifactDaysToKeep: '{build-artifact-days-to-keep}'
319 artifactNumToKeep: '{build-artifact-num-to-keep}'
323 project: 'integration/distribution'
327 credentials-id: '{ssh-credentials}'
333 - ssh-agent-credentials:
335 - '{ssh-credentials}'
339 jobs: '{project}-merge-{stream}'
343 - wipe-org-opendaylight-repo
344 - provide-maven-settings:
345 global-settings-file: '{odl-global-settings}'
346 settings-file: '{capwap-settings}'
349 maven-name: '{mvn33}'
351 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
352 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
353 settings: '{integration-settings}'
354 global-settings: '{odl-global-settings}'
357 - email-notification:
358 email-prefix: '[{project}]'
362 deploy-unstable: false
364 # Template: integration-patch-distribution-{stream}
365 # Goal: Build a patch and make sure the distribution can deploy with this change
366 # Operation: This job template builds a patch, creates a distribution containing
367 # the patch, and triggers the distribution deploy test
370 name: 'capwap-distribution-check-{stream}'
371 disabled: '{obj:disable_distribution_check}'
381 artifactDaysToKeep: '{build-artifact-days-to-keep}'
382 artifactNumToKeep: '{build-artifact-num-to-keep}'
385 - gerrit-project-parameter:
387 - gerrit-refspec-parameter:
391 - integration-distribution-git-url
394 - integration-gerrit-scm:
395 credentials-id: '{ssh-credentials}'
396 basedir: '$GERRIT_PROJECT'
397 refspec: '$GERRIT_REFSPEC'
399 - integration-distribution-scm:
400 credentials-id: '{ssh-credentials}'
405 - ssh-agent-credentials:
407 - '{ssh-credentials}'
411 server-name: 'OpenDaylight'
413 - patchset-created-event:
414 exclude-drafts: 'true'
415 exclude-trivial-rebase: 'false'
416 exclude-no-code-change: 'true'
417 - draft-published-event
418 - comment-added-contains-event:
419 comment-contains-value: 'test-distribution'
421 - project-compare-type: 'ANT'
422 project-pattern: '{name}'
424 - branch-compare-type: 'ANT'
425 branch-pattern: '**/{branch}'
433 - integration-get-bundle-url
435 properties-file: 'bundle.txt'
436 - wipe-org-opendaylight-repo
438 maven-version: '{mvn33}'
439 pom: '$GERRIT_PROJECT/pom.xml'
440 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}'
442 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
443 settings: '{capwap-settings}'
444 global-settings: '{odl-global-settings}'
447 maven-name: '{mvn33}'
448 root-pom: 'distribution/pom.xml'
449 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
450 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
451 settings: '{capwap-settings}'
452 global-settings: '{odl-global-settings}'
453 ignore-upstream-changes: true
454 post-step-run-condition: 'SUCCESS'
458 - project: 'integration-distribution-deploy-{stream}'
460 predefined-parameters:
464 - email-notification:
465 email-prefix: '[capwap]'
468 name: 'capwap-integration-{stream}'
471 # Job template for ODL integration verify jobs
473 # This is similar to a normal verify job, but it runs
474 # when a project that's a dependency of your project
475 # is successfully built.
477 # Required Variables:
478 # stream: release stream (eg. stable-lithium or beryllium)
479 # branch: git branch (eg. stable/lithium or master)
486 daysToKeep: '{build-days-to-keep}'
487 numToKeep: '{build-num-to-keep}'
488 artifactDaysToKeep: '{build-artifact-days-to-keep}'
489 artifactNumToKeep: '{build-artifact-num-to-keep}'
497 credentials-id: '{ssh-credentials}'
503 - ssh-agent-credentials:
505 - '{ssh-credentials}'
509 jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}'
513 - wipe-org-opendaylight-repo
514 - jacoco-nojava-workaround
515 - provide-maven-settings:
516 global-settings-file: '{odl-global-settings}'
517 settings-file: '{capwap-settings}'
520 maven-name: '{mvn33}'
522 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
523 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
524 settings: '{capwap-settings}'
525 global-settings: '{odl-global-settings}'
531 - email-notification:
532 email-prefix: '[capwap] [controller] [yangtools] [odlparent]'
546 artifactDaysToKeep: '1'
547 artifactNumToKeep: '1'
555 credentials-id: '{ssh-credentials}'
561 - ssh-agent-credentials:
563 - '{ssh-credentials}'
567 - gerrit-trigger-patch-sonar:
571 - wipe-org-opendaylight-repo
572 - jacoco-nojava-workaround
573 - provide-maven-settings:
574 global-settings-file: '{odl-global-settings}'
575 settings-file: '{capwap-settings}'
578 maven-name: '{mvn33}'
580 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
581 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
582 settings: '{capwap-settings}'
583 global-settings: '{odl-global-settings}'
591 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
592 - email-notification:
593 email-prefix: '[capwap]'
597 name: 'capwap-clm-{stream}'
605 daysToKeep: '{build-days-to-keep}'
606 numToKeep: '{build-num-to-keep}'
607 artifactDaysToKeep: '{build-artifact-days-to-keep}'
608 artifactNumToKeep: '{build-artifact-num-to-keep}'
616 credentials-id: '{ssh-credentials}'
622 - ssh-agent-credentials:
624 - '{ssh-credentials}'
630 - wipe-org-opendaylight-repo
631 - provide-maven-settings:
632 global-settings-file: '{odl-global-settings}'
633 settings-file: '{capwap-settings}'
636 maven-name: '{mvn33}'
638 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'
639 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
640 settings: '{capwap-settings}'
641 global-settings: '{odl-global-settings}'
644 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
646 application-name: capwap
649 - email-notification:
650 email-prefix: '[capwap]'
653 name: 'capwap-validate-autorelease-{stream}'
654 disabled: '{obj:disable_autorelease}'
662 daysToKeep: '{build-days-to-keep}'
663 numToKeep: '{build-num-to-keep}'
664 artifactDaysToKeep: '{build-artifact-days-to-keep}'
665 artifactNumToKeep: '{build-artifact-num-to-keep}'
672 - autorelease-release-tag:
673 release-tag: 'validate'
674 - autorelease-release-branch:
675 release-branch: '{branch}'
676 - autorelease-release-datestamp:
681 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
690 - autorelease-build-timeout
691 - ssh-agent-credentials:
693 - '{ssh-credentials}'
697 server-name: 'OpenDaylight'
699 - patchset-created-event:
700 exclude-drafts: 'false'
701 exclude-trivial-rebase: 'false'
702 exclude-no-code-change: 'false'
703 - draft-published-event
704 - comment-added-contains-event:
705 comment-contains-value: 'recheck'
706 - comment-added-contains-event:
707 comment-contains-value: 'reverify'
708 - comment-added-contains-event:
709 comment-contains-value: 'revalidate'
711 - project-compare-type: 'ANT'
712 project-pattern: 'capwap'
714 - branch-compare-type: 'ANT'
715 branch-pattern: '**/{branch}'
718 - wipe-org-opendaylight-repo
719 - jacoco-nojava-workaround
720 - autorelease-checkout-gerrit-patch
721 - autorelease-generate-taglist
722 - autorelease-generate-release-patches
724 maven-version: '{mvn33}'
725 pom: validate-pom.xml
726 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
729 settings: '{autorelease-settings}'
730 global-settings: '{odl-global-settings}'
733 maven-name: '{mvn33}'
735 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
736 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
737 settings: '{autorelease-settings}'
738 global-settings: '{odl-global-settings}'
739 automatic-archiving: false
740 post-step-run-condition: UNSTABLE
743 - shell: "./scripts/list-project-dependencies.sh"
744 - autorelease-sys-stats
749 - email-notification:
750 email-prefix: '[autorelease] [capwap]'