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 - 'neutron-verify-{stream}'
10 - 'neutron-merge-{stream}'
11 - 'neutron-periodic-{stream}'
12 - 'neutron-distribution-{stream}'
13 - 'neutron-integration-{stream}'
15 - 'neutron-clm-{stream}'
16 - 'neutron-validate-autorelease-{stream}'
19 # stream: release stream (eg. stable-lithium or beryllium)
20 # branch: git branch (eg. stable/lithium or master)
27 disable_autorelease: False
33 disable_autorelease: True
35 branch: 'stable/lithium'
40 disable_autorelease: False
44 # For the Job templates below replace instances of:
45 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
46 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
47 # MAVEN_GOALS with your maven goals to build
48 # MAVEN_OPTS with your maven options to build
51 name: 'neutron-verify-{stream}'
53 # Job template for ODL verify jobs
55 # The purpose of this job template is to setup a ODL verify job
58 # stream: release stream (eg. stable-lithium or beryllium)
59 # branch: git branch (eg. stable/lithium or master)
76 daysToKeep: '{build-days-to-keep}'
77 numToKeep: '{build-num-to-keep}'
78 artifactDaysToKeep: '{build-artifact-days-to-keep}'
79 artifactNumToKeep: '{build-artifact-num-to-keep}'
86 - gerrit-refspec-parameter:
87 refspec: 'refs/heads/{branch}'
91 credentials-id: '{ssh-credentials}'
92 refspec: '$GERRIT_REFSPEC'
93 choosing-strategy: 'gerrit'
97 - ssh-agent-credentials:
102 - gerrit-trigger-patch-submitted:
107 - wipe-org-opendaylight-repo
108 - jacoco-nojava-workaround
109 - provide-maven-settings:
110 global-settings-file: '{odl-global-settings}'
111 settings-file: '{neutron-settings}'
113 maven-version: '{mvn33}'
115 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
117 - '-Xmx1024m -XX:MaxPermSize=256m'
118 settings: '{neutron-settings}'
119 global-settings: '{odl-global-settings}'
123 - email-notification:
124 email-prefix: '[neutron]'
128 name: 'neutron-merge-{stream}'
130 # Job template for ODL merge jobs
132 # The purpose of this job template is to setup a ODL merge job
133 # and deploy artifacts to Nexus.
135 # Required Variables:
136 # stream: release stream (eg. stable-lithium or beryllium)
137 # branch: git branch (eg. stable/lithium or master)
144 daysToKeep: '{build-days-to-keep}'
145 numToKeep: '{build-num-to-keep}'
146 artifactDaysToKeep: '{build-artifact-days-to-keep}'
147 artifactNumToKeep: '{build-artifact-num-to-keep}'
154 - gerrit-refspec-parameter:
155 refspec: 'refs/heads/{branch}'
158 - gerrit-trigger-scm:
159 credentials-id: '{ssh-credentials}'
161 choosing-strategy: 'default'
165 - ssh-agent-credentials:
167 - '{ssh-credentials}'
171 - gerrit-trigger-patch-merged:
176 - wipe-org-opendaylight-repo
177 - jacoco-nojava-workaround
178 - provide-maven-settings:
179 global-settings-file: '{odl-global-settings}'
180 settings-file: '{neutron-settings}'
183 maven-name: '{mvn33}'
185 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
186 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
187 settings: '{neutron-settings}'
188 global-settings: '{odl-global-settings}'
189 post-step-run-condition: UNSTABLE
193 condition-kind: file-exists
194 condition-filename: deploy-site.xml
195 condition-basedir: workspace
197 # The strategy here is intentional to run Maven site:deploy twice
198 # once using regular pom.xml to produce a staged-site which is
199 # then used by deploy-site.xml to push to Nexus. This is a
200 # workaround to Maven Site's default linking code which creates
201 # incorrect URLs for sites due to auto-detection assuming your
202 # project is configured in a certain way which ODL is not.
205 maven-version: '{mvn33}'
207 goals: 'site:deploy -Dstream={stream}'
210 settings: '{neutron-settings}'
211 global-settings: '{odl-global-settings}'
213 maven-version: '{mvn33}'
215 goals: 'site:deploy -Dstream={stream}'
218 settings: '{neutron-settings}'
219 global-settings: '{odl-global-settings}'
226 artifacts: '**/target/surefire-reports/*-output.txt, '
227 - email-notification:
228 email-prefix: '[neutron]'
232 deploy-unstable: false
236 name: 'neutron-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)
252 daysToKeep: '{build-days-to-keep}'
253 numToKeep: '{build-num-to-keep}'
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: '{neutron-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: '{neutron-settings}'
289 global-settings: '{odl-global-settings}'
295 - email-notification:
296 email-prefix: '[neutron]'
300 name: 'neutron-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: '{neutron-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
360 name: 'neutron-integration-{stream}'
363 # Job template for ODL integration verify jobs
365 # This is similar to a normal verify job, but it runs
366 # when a project that's a dependency of your project
367 # is successfully built.
369 # Required Variables:
370 # stream: release stream (eg. stable-lithium or beryllium)
371 # branch: git branch (eg. stable/lithium or master)
378 daysToKeep: '{build-days-to-keep}'
379 numToKeep: '{build-num-to-keep}'
380 artifactDaysToKeep: '{build-artifact-days-to-keep}'
381 artifactNumToKeep: '{build-artifact-num-to-keep}'
389 credentials-id: '{ssh-credentials}'
395 - ssh-agent-credentials:
397 - '{ssh-credentials}'
401 jobs: 'odlparent-merge-{stream},aaa-merge-{stream}'
405 - wipe-org-opendaylight-repo
406 - jacoco-nojava-workaround
407 - provide-maven-settings:
408 global-settings-file: '{odl-global-settings}'
409 settings-file: '{neutron-settings}'
412 maven-name: '{mvn33}'
414 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
415 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
416 settings: '{neutron-settings}'
417 global-settings: '{odl-global-settings}'
423 - email-notification:
424 email-prefix: '[neutron] [odlparent] [aaa]'
428 name: 'neutron-sonar'
437 artifactDaysToKeep: '1'
438 artifactNumToKeep: '1'
446 credentials-id: '{ssh-credentials}'
452 - ssh-agent-credentials:
454 - '{ssh-credentials}'
458 - gerrit-trigger-patch-sonar:
462 - wipe-org-opendaylight-repo
463 - jacoco-nojava-workaround
464 - provide-maven-settings:
465 global-settings-file: '{odl-global-settings}'
466 settings-file: '{neutron-settings}'
469 maven-name: '{mvn33}'
471 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
472 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
473 settings: '{neutron-settings}'
474 global-settings: '{odl-global-settings}'
482 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
483 - email-notification:
484 email-prefix: '[neutron]'
488 name: 'neutron-clm-{stream}'
495 daysToKeep: '{build-days-to-keep}'
496 numToKeep: '{build-num-to-keep}'
497 artifactDaysToKeep: '{build-artifact-days-to-keep}'
498 artifactNumToKeep: '{build-artifact-num-to-keep}'
506 credentials-id: '{ssh-credentials}'
512 - ssh-agent-credentials:
514 - '{ssh-credentials}'
520 - wipe-org-opendaylight-repo
521 - provide-maven-settings:
522 global-settings-file: '{odl-global-settings}'
523 settings-file: '{neutron-settings}'
526 maven-name: '{mvn33}'
528 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'
529 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
530 settings: '{neutron-settings}'
531 global-settings: '{odl-global-settings}'
534 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
536 application-name: neutron
539 - email-notification:
540 email-prefix: '[neutron]'
543 name: 'neutron-validate-autorelease-{stream}'
544 disabled: '{obj:disable_autorelease}'
552 daysToKeep: '{build-days-to-keep}'
553 numToKeep: '{build-num-to-keep}'
554 artifactDaysToKeep: '{build-artifact-days-to-keep}'
555 artifactNumToKeep: '{build-artifact-num-to-keep}'
562 - autorelease-release-tag:
563 release-tag: 'validate'
564 - autorelease-release-branch:
565 release-branch: '{branch}'
566 - autorelease-release-datestamp:
571 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
580 - autorelease-build-timeout
581 - ssh-agent-credentials:
583 - '{ssh-credentials}'
587 server-name: 'OpenDaylight'
589 - patchset-created-event:
590 exclude-drafts: 'false'
591 exclude-trivial-rebase: 'false'
592 exclude-no-code-change: 'false'
593 - draft-published-event
594 - comment-added-contains-event:
595 comment-contains-value: 'recheck'
596 - comment-added-contains-event:
597 comment-contains-value: 'reverify'
598 - comment-added-contains-event:
599 comment-contains-value: 'revalidate'
601 - project-compare-type: 'ANT'
602 project-pattern: 'neutron'
604 - branch-compare-type: 'ANT'
605 branch-pattern: '**/{branch}'
608 - wipe-org-opendaylight-repo
609 - jacoco-nojava-workaround
610 - autorelease-checkout-gerrit-patch
611 - autorelease-generate-taglist
612 - autorelease-generate-release-patches
614 maven-version: '{mvn33}'
615 pom: validate-pom.xml
616 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
619 settings: '{autorelease-settings}'
620 global-settings: '{odl-global-settings}'
623 maven-name: '{mvn33}'
625 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
626 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
627 settings: '{autorelease-settings}'
628 global-settings: '{odl-global-settings}'
629 automatic-archiving: false
630 post-step-run-condition: UNSTABLE
633 - shell: "./scripts/list-project-dependencies.sh"
634 - autorelease-sys-stats
639 - email-notification:
640 email-prefix: '[autorelease] [neutron]'