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 - 'yang-push-verify-{stream}'
10 - 'yang-push-merge-{stream}'
11 - 'yang-push-periodic-{stream}'
12 - 'yang-push-distribution-{stream}'
13 - 'yang-push-distribution-check-{stream}'
14 - 'yang-push-integration-{stream}'
16 - 'yang-push-clm-{stream}'
17 - 'yang-push-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
41 # For the Job templates below replace instances of:
42 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
43 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
44 # MAVEN_GOALS with your maven goals to build
45 # MAVEN_OPTS with your maven options to build
48 name: 'yang-push-verify-{stream}'
50 # Job template for ODL verify jobs
52 # The purpose of this job template is to setup a ODL verify job
55 # stream: release stream (eg. stable-lithium or beryllium)
56 # branch: git branch (eg. stable/lithium or master)
73 daysToKeep: '{build-days-to-keep}'
74 numToKeep: '{build-num-to-keep}'
75 artifactDaysToKeep: '{build-artifact-days-to-keep}'
76 artifactNumToKeep: '{build-artifact-num-to-keep}'
84 refspec: 'refs/heads/{branch}'
88 credentials-id: '{ssh-credentials}'
89 refspec: '$GERRIT_REFSPEC'
90 choosing-strategy: 'gerrit'
94 - ssh-agent-credentials:
99 - gerrit-trigger-patch-submitted:
104 - wipe-org-opendaylight-repo
105 - jacoco-nojava-workaround
106 - provide-maven-settings:
107 global-settings-file: '{odl-global-settings}'
108 settings-file: '{yang-push-settings}'
110 maven-version: '{mvn33}'
112 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
114 - '-Xmx1024m -XX:MaxPermSize=256m'
115 settings: '{yang-push-settings}'
116 global-settings: '{odl-global-settings}'
120 artifacts: '**/target/surefire-reports/*-output.txt, '
122 - email-notification:
123 email-prefix: '[yang-push]'
127 name: 'yang-push-merge-{stream}'
129 # Job template for ODL merge jobs
131 # The purpose of this job template is to setup a ODL merge job
132 # and deploy artifacts to Nexus.
134 # Required Variables:
135 # stream: release stream (eg. stable-lithium or beryllium)
136 # branch: git branch (eg. stable/lithium or master)
145 artifactDaysToKeep: '{build-artifact-days-to-keep}'
146 artifactNumToKeep: '{build-artifact-num-to-keep}'
154 refspec: 'refs/heads/{branch}'
157 - gerrit-trigger-scm:
158 credentials-id: '{ssh-credentials}'
160 choosing-strategy: 'default'
164 - ssh-agent-credentials:
166 - '{ssh-credentials}'
170 - gerrit-trigger-patch-merged:
175 - wipe-org-opendaylight-repo
176 - jacoco-nojava-workaround
177 - provide-maven-settings:
178 global-settings-file: '{odl-global-settings}'
179 settings-file: '{yang-push-settings}'
182 maven-name: '{mvn33}'
184 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
185 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
186 settings: '{yang-push-settings}'
187 global-settings: '{odl-global-settings}'
188 post-step-run-condition: UNSTABLE
192 condition-kind: file-exists
193 condition-filename: deploy-site.xml
194 condition-basedir: workspace
196 # The strategy here is intentional to run Maven site:deploy twice
197 # once using regular pom.xml to produce a staged-site which is
198 # then used by deploy-site.xml to push to Nexus. This is a
199 # workaround to Maven Site's default linking code which creates
200 # incorrect URLs for sites due to auto-detection assuming your
201 # project is configured in a certain way which ODL is not.
204 maven-version: '{mvn33}'
206 goals: 'site:deploy -Dstream={stream}'
209 settings: '{yang-push-settings}'
210 global-settings: '{odl-global-settings}'
212 maven-version: '{mvn33}'
214 goals: 'site:deploy -Dstream={stream}'
217 settings: '{yang-push-settings}'
218 global-settings: '{odl-global-settings}'
225 artifacts: '**/target/surefire-reports/*-output.txt, '
226 - email-notification:
227 email-prefix: '[yang-push]'
231 deploy-unstable: false
235 name: 'yang-push-periodic-{stream}'
238 # Job template for periodic builders
240 # The purpose of this job template is to setup a periodic
243 # Required Variables:
244 # stream: release stream (eg. stable-lithium or beryllium)
245 # branch: git branch (eg. stable/lithium or master)
254 artifactDaysToKeep: '{build-artifact-days-to-keep}'
255 artifactNumToKeep: '{build-artifact-num-to-keep}'
263 credentials-id: '{ssh-credentials}'
269 - ssh-agent-credentials:
271 - '{ssh-credentials}'
277 - wipe-org-opendaylight-repo
278 - jacoco-nojava-workaround
279 - provide-maven-settings:
280 global-settings-file: '{odl-global-settings}'
281 settings-file: '{yang-push-settings}'
284 maven-name: '{mvn33}'
286 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
287 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
288 settings: '{yang-push-settings}'
289 global-settings: '{odl-global-settings}'
295 - email-notification:
296 email-prefix: '[yang-push]'
300 name: 'yang-push-distribution-{stream}'
302 # Required variables:
303 # stream: release stream (eg. stable-lithium or beryllium)
304 # branch: git branch (eg. stable/lithium or master)
311 daysToKeep: '{build-days-to-keep}'
312 numToKeep: '{build-num-to-keep}'
313 artifactDaysToKeep: '{build-artifact-days-to-keep}'
314 artifactNumToKeep: '{build-artifact-num-to-keep}'
318 project: 'integration/distribution'
322 credentials-id: '{ssh-credentials}'
328 - ssh-agent-credentials:
330 - '{ssh-credentials}'
334 jobs: '{project}-merge-{stream}'
338 - wipe-org-opendaylight-repo
339 - provide-maven-settings:
340 global-settings-file: '{odl-global-settings}'
341 settings-file: '{yang-push-settings}'
344 maven-name: '{mvn33}'
346 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
347 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
348 settings: '{integration-settings}'
349 global-settings: '{odl-global-settings}'
352 - email-notification:
353 email-prefix: '[{project}]'
357 deploy-unstable: false
359 # Template: integration-patch-distribution-{stream}
360 # Goal: Build a patch and make sure the distribution can deploy with this change
361 # Operation: This job template builds a patch, creates a distribution containing
362 # the patch, and triggers the distribution deploy test
365 name: 'yang-push-distribution-check-{stream}'
366 disabled: '{obj:disable_distribution_check}'
376 artifactDaysToKeep: '{build-artifact-days-to-keep}'
377 artifactNumToKeep: '{build-artifact-num-to-keep}'
383 refspec: 'refs/heads/{branch}'
386 - integration-distribution-git-url
389 - integration-gerrit-scm:
390 credentials-id: '{ssh-credentials}'
391 basedir: '$GERRIT_PROJECT'
392 refspec: '$GERRIT_REFSPEC'
394 - integration-distribution-scm:
395 credentials-id: '{ssh-credentials}'
400 - ssh-agent-credentials:
402 - '{ssh-credentials}'
406 server-name: 'OpenDaylight'
408 - patchset-created-event:
409 exclude-drafts: 'true'
410 exclude-trivial-rebase: 'false'
411 exclude-no-code-change: 'true'
412 - draft-published-event
413 - comment-added-contains-event:
414 comment-contains-value: 'test-distribution'
415 - comment-added-contains-event:
416 comment-contains-value: 'reverify'
417 - comment-added-contains-event:
418 comment-contains-value: 'recheck'
420 - project-compare-type: 'ANT'
421 project-pattern: '{name}'
423 - branch-compare-type: 'ANT'
424 branch-pattern: '**/{branch}'
432 - wipe-org-opendaylight-repo
434 maven-version: '{mvn33}'
435 pom: '$GERRIT_PROJECT/pom.xml'
436 goals: 'clean install -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}'
438 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
439 settings: '{yang-push-settings}'
440 global-settings: '{odl-global-settings}'
443 maven-name: '{mvn33}'
444 root-pom: 'distribution/pom.xml'
445 goals: 'clean install -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
446 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
447 settings: '{yang-push-settings}'
448 global-settings: '{odl-global-settings}'
449 ignore-upstream-changes: true
450 post-step-run-condition: 'SUCCESS'
453 - integration-distribution-check
457 artifacts: 'karaf.log'
459 artifacts: 'karaf_console.log'
460 - email-notification:
461 email-prefix: '[yang-push]'
464 name: 'yang-push-integration-{stream}'
467 # Job template for ODL integration verify jobs
469 # This is similar to a normal verify job, but it runs
470 # when a project that's a dependency of your project
471 # is successfully built.
473 # Required Variables:
474 # stream: release stream (eg. stable-lithium or beryllium)
475 # branch: git branch (eg. stable/lithium or master)
482 daysToKeep: '{build-days-to-keep}'
483 numToKeep: '{build-num-to-keep}'
484 artifactDaysToKeep: '{build-artifact-days-to-keep}'
485 artifactNumToKeep: '{build-artifact-num-to-keep}'
493 credentials-id: '{ssh-credentials}'
499 - ssh-agent-credentials:
501 - '{ssh-credentials}'
505 jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}'
509 - wipe-org-opendaylight-repo
510 - jacoco-nojava-workaround
511 - provide-maven-settings:
512 global-settings-file: '{odl-global-settings}'
513 settings-file: '{yang-push-settings}'
516 maven-name: '{mvn33}'
518 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
519 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
520 settings: '{yang-push-settings}'
521 global-settings: '{odl-global-settings}'
527 - email-notification:
528 email-prefix: '[yang-push] [controller] [yangtools] [odlparent]'
532 name: 'yang-push-sonar'
542 artifactDaysToKeep: '1'
543 artifactNumToKeep: '1'
551 credentials-id: '{ssh-credentials}'
557 - ssh-agent-credentials:
559 - '{ssh-credentials}'
563 - gerrit-trigger-patch-sonar:
567 - wipe-org-opendaylight-repo
568 - jacoco-nojava-workaround
569 - provide-maven-settings:
570 global-settings-file: '{odl-global-settings}'
571 settings-file: '{yang-push-settings}'
574 maven-name: '{mvn33}'
576 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
577 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
578 settings: '{yang-push-settings}'
579 global-settings: '{odl-global-settings}'
587 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
588 - email-notification:
589 email-prefix: '[yang-push]'
593 name: 'yang-push-clm-{stream}'
601 daysToKeep: '{build-days-to-keep}'
602 numToKeep: '{build-num-to-keep}'
603 artifactDaysToKeep: '{build-artifact-days-to-keep}'
604 artifactNumToKeep: '{build-artifact-num-to-keep}'
612 credentials-id: '{ssh-credentials}'
618 - ssh-agent-credentials:
620 - '{ssh-credentials}'
626 - wipe-org-opendaylight-repo
627 - provide-maven-settings:
628 global-settings-file: '{odl-global-settings}'
629 settings-file: '{yang-push-settings}'
632 maven-name: '{mvn33}'
634 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'
635 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
636 settings: '{yang-push-settings}'
637 global-settings: '{odl-global-settings}'
640 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
642 application-name: yang-push
645 - email-notification:
646 email-prefix: '[yang-push]'
649 name: 'yang-push-validate-autorelease-{stream}'
650 disabled: '{obj:disable_autorelease}'
658 daysToKeep: '{build-days-to-keep}'
659 numToKeep: '{build-num-to-keep}'
660 artifactDaysToKeep: '{build-artifact-days-to-keep}'
661 artifactNumToKeep: '{build-artifact-num-to-keep}'
669 refspec: 'refs/heads/{branch}'
670 - autorelease-release-tag:
671 release-tag: 'validate'
672 - autorelease-release-branch:
673 release-branch: '{branch}'
674 - autorelease-release-datestamp:
678 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
679 description: "Autorelease clone URL"
693 - autorelease-build-timeout
694 - ssh-agent-credentials:
696 - '{ssh-credentials}'
700 server-name: 'OpenDaylight'
702 - patchset-created-event:
703 exclude-drafts: 'false'
704 exclude-trivial-rebase: 'false'
705 exclude-no-code-change: 'false'
706 - draft-published-event
707 - comment-added-contains-event:
708 comment-contains-value: 'recheck'
709 - comment-added-contains-event:
710 comment-contains-value: 'reverify'
711 - comment-added-contains-event:
712 comment-contains-value: 'revalidate'
714 - project-compare-type: 'ANT'
715 project-pattern: 'yang-push'
717 - branch-compare-type: 'ANT'
718 branch-pattern: '**/{branch}'
724 - wipe-org-opendaylight-repo
725 - jacoco-nojava-workaround
726 - autorelease-checkout-gerrit-patch
727 - autorelease-generate-release-patches
729 maven-version: '{mvn33}'
730 pom: validate-pom.xml
731 goals: 'clean install -B -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
734 settings: '{autorelease-settings}'
735 global-settings: '{odl-global-settings}'
738 maven-name: '{mvn33}'
740 goals: 'clean validate -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
741 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
742 settings: '{autorelease-settings}'
743 global-settings: '{odl-global-settings}'
744 automatic-archiving: false
745 post-step-run-condition: UNSTABLE
748 - autorelease-sys-stats
751 - email-notification:
752 email-prefix: '[autorelease] [yang-push]'