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 - 'nemo-verify-{stream}'
10 - 'nemo-merge-{stream}'
11 - 'nemo-periodic-{stream}'
12 - 'nemo-distribution-{stream}'
13 - 'nemo-distribution-check-{stream}'
14 - 'nemo-integration-{stream}'
17 - 'nemo-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: 'nemo-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}'
83 - gerrit-refspec-parameter:
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: '{nemo-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: '{nemo-settings}'
116 global-settings: '{odl-global-settings}'
120 artifacts: '**/target/surefire-reports/*-output.txt, '
122 - email-notification:
123 email-prefix: '[nemo]'
127 name: 'nemo-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}'
153 - gerrit-refspec-parameter:
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: '{nemo-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: '{nemo-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: '{nemo-settings}'
210 global-settings: '{odl-global-settings}'
212 maven-version: '{mvn33}'
214 goals: 'site:deploy -Dstream={stream}'
217 settings: '{nemo-settings}'
218 global-settings: '{odl-global-settings}'
225 artifacts: '**/target/surefire-reports/*-output.txt, '
226 - email-notification:
227 email-prefix: '[nemo]'
231 deploy-unstable: false
235 name: 'nemo-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: '{nemo-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: '{nemo-settings}'
289 global-settings: '{odl-global-settings}'
295 - email-notification:
296 email-prefix: '[nemo]'
300 name: 'nemo-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: '{nemo-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: 'nemo-distribution-check-{stream}'
366 disabled: '{obj:disable_distribution_check}'
376 artifactDaysToKeep: '{build-artifact-days-to-keep}'
377 artifactNumToKeep: '{build-artifact-num-to-keep}'
380 - gerrit-project-parameter:
382 - gerrit-refspec-parameter:
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'
416 - project-compare-type: 'ANT'
417 project-pattern: '{name}'
419 - branch-compare-type: 'ANT'
420 branch-pattern: '**/{branch}'
428 - wipe-org-opendaylight-repo
430 maven-version: '{mvn33}'
431 pom: '$GERRIT_PROJECT/pom.xml'
432 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}'
434 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
435 settings: '{nemo-settings}'
436 global-settings: '{odl-global-settings}'
439 maven-name: '{mvn33}'
440 root-pom: 'distribution/pom.xml'
441 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
442 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
443 settings: '{nemo-settings}'
444 global-settings: '{odl-global-settings}'
445 ignore-upstream-changes: true
446 post-step-run-condition: 'SUCCESS'
449 - integration-distribution-check
453 artifacts: 'karaf.log'
455 artifacts: 'karaf_console.log'
456 - email-notification:
457 email-prefix: '[nemo]'
460 name: 'nemo-integration-{stream}'
463 # Job template for ODL integration verify jobs
465 # This is similar to a normal verify job, but it runs
466 # when a project that's a dependency of your project
467 # is successfully built.
469 # Required Variables:
470 # stream: release stream (eg. stable-lithium or beryllium)
471 # branch: git branch (eg. stable/lithium or master)
478 daysToKeep: '{build-days-to-keep}'
479 numToKeep: '{build-num-to-keep}'
480 artifactDaysToKeep: '{build-artifact-days-to-keep}'
481 artifactNumToKeep: '{build-artifact-num-to-keep}'
489 credentials-id: '{ssh-credentials}'
495 - ssh-agent-credentials:
497 - '{ssh-credentials}'
501 jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}'
505 - wipe-org-opendaylight-repo
506 - jacoco-nojava-workaround
507 - provide-maven-settings:
508 global-settings-file: '{odl-global-settings}'
509 settings-file: '{nemo-settings}'
512 maven-name: '{mvn33}'
514 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
515 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
516 settings: '{nemo-settings}'
517 global-settings: '{odl-global-settings}'
523 - email-notification:
524 email-prefix: '[nemo] [controller] [yangtools] [odlparent]'
538 artifactDaysToKeep: '1'
539 artifactNumToKeep: '1'
547 credentials-id: '{ssh-credentials}'
553 - ssh-agent-credentials:
555 - '{ssh-credentials}'
559 - gerrit-trigger-patch-sonar:
563 - wipe-org-opendaylight-repo
564 - jacoco-nojava-workaround
565 - provide-maven-settings:
566 global-settings-file: '{odl-global-settings}'
567 settings-file: '{nemo-settings}'
570 maven-name: '{mvn33}'
572 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
573 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
574 settings: '{nemo-settings}'
575 global-settings: '{odl-global-settings}'
583 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
584 - email-notification:
585 email-prefix: '[nemo]'
589 name: 'nemo-clm-{stream}'
597 daysToKeep: '{build-days-to-keep}'
598 numToKeep: '{build-num-to-keep}'
599 artifactDaysToKeep: '{build-artifact-days-to-keep}'
600 artifactNumToKeep: '{build-artifact-num-to-keep}'
608 credentials-id: '{ssh-credentials}'
614 - ssh-agent-credentials:
616 - '{ssh-credentials}'
622 - wipe-org-opendaylight-repo
623 - provide-maven-settings:
624 global-settings-file: '{odl-global-settings}'
625 settings-file: '{nemo-settings}'
628 maven-name: '{mvn33}'
630 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'
631 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
632 settings: '{nemo-settings}'
633 global-settings: '{odl-global-settings}'
636 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
638 application-name: nemo
641 - email-notification:
642 email-prefix: '[nemo]'
645 name: 'nemo-validate-autorelease-{stream}'
646 disabled: '{obj:disable_autorelease}'
654 daysToKeep: '{build-days-to-keep}'
655 numToKeep: '{build-num-to-keep}'
656 artifactDaysToKeep: '{build-artifact-days-to-keep}'
657 artifactNumToKeep: '{build-artifact-num-to-keep}'
664 - autorelease-release-tag:
665 release-tag: 'validate'
666 - autorelease-release-branch:
667 release-branch: '{branch}'
668 - autorelease-release-datestamp:
673 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
682 - autorelease-build-timeout
683 - ssh-agent-credentials:
685 - '{ssh-credentials}'
689 server-name: 'OpenDaylight'
691 - patchset-created-event:
692 exclude-drafts: 'false'
693 exclude-trivial-rebase: 'false'
694 exclude-no-code-change: 'false'
695 - draft-published-event
696 - comment-added-contains-event:
697 comment-contains-value: 'recheck'
698 - comment-added-contains-event:
699 comment-contains-value: 'reverify'
700 - comment-added-contains-event:
701 comment-contains-value: 'revalidate'
703 - project-compare-type: 'ANT'
704 project-pattern: 'nemo'
706 - branch-compare-type: 'ANT'
707 branch-pattern: '**/{branch}'
713 - wipe-org-opendaylight-repo
714 - jacoco-nojava-workaround
715 - autorelease-checkout-gerrit-patch
716 - autorelease-generate-taglist
717 - autorelease-generate-release-patches
719 maven-version: '{mvn33}'
720 pom: validate-pom.xml
721 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
724 settings: '{autorelease-settings}'
725 global-settings: '{odl-global-settings}'
728 maven-name: '{mvn33}'
730 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
731 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
732 settings: '{autorelease-settings}'
733 global-settings: '{odl-global-settings}'
734 automatic-archiving: false
735 post-step-run-condition: UNSTABLE
738 - shell: "./scripts/list-project-dependencies.sh"
739 - autorelease-sys-stats
744 - email-notification:
745 email-prefix: '[autorelease] [nemo]'