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 - 'snmp-verify-{stream}'
10 - 'snmp-merge-{stream}'
11 - 'snmp-periodic-{stream}'
12 - 'snmp-distribution-{stream}'
13 - 'snmp-integration-{stream}'
16 - 'snmp-validate-autorelease-{stream}'
19 # stream: release stream (eg. stable-lithium or beryllium)
20 # branch: git branch (eg. stable/lithium or master)
28 disable_autorelease: False
30 branch: 'stable/beryllium'
35 disable_autorelease: False
37 branch: 'stable/lithium'
42 disable_autorelease: True
46 # For the Job templates below replace instances of:
47 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
48 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
49 # MAVEN_GOALS with your maven goals to build
50 # MAVEN_OPTS with your maven options to build
53 name: 'snmp-verify-{stream}'
55 # Job template for ODL verify jobs
57 # The purpose of this job template is to setup a ODL verify job
60 # stream: release stream (eg. stable-lithium or beryllium)
61 # branch: git branch (eg. stable/lithium or master)
78 daysToKeep: '{build-days-to-keep}'
79 numToKeep: '{build-num-to-keep}'
80 artifactDaysToKeep: '{build-artifact-days-to-keep}'
81 artifactNumToKeep: '{build-artifact-num-to-keep}'
88 - gerrit-refspec-parameter:
89 refspec: 'refs/heads/{branch}'
93 credentials-id: '{ssh-credentials}'
94 refspec: '$GERRIT_REFSPEC'
95 choosing-strategy: 'gerrit'
99 - ssh-agent-credentials:
101 - '{ssh-credentials}'
104 - gerrit-trigger-patch-submitted:
109 - wipe-org-opendaylight-repo
110 - jacoco-nojava-workaround
111 - provide-maven-settings:
112 global-settings-file: '{odl-global-settings}'
113 settings-file: '{snmp-settings}'
115 maven-version: '{mvn33}'
117 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
119 - '-Xmx1024m -XX:MaxPermSize=256m'
120 settings: '{snmp-settings}'
121 global-settings: '{odl-global-settings}'
125 - email-notification:
126 email-prefix: '[snmp]'
130 name: 'snmp-merge-{stream}'
132 # Job template for ODL merge jobs
134 # The purpose of this job template is to setup a ODL merge job
135 # and deploy artifacts to Nexus.
137 # Required Variables:
138 # stream: release stream (eg. stable-lithium or beryllium)
139 # branch: git branch (eg. stable/lithium or master)
146 daysToKeep: '{build-days-to-keep}'
147 numToKeep: '{build-num-to-keep}'
148 artifactDaysToKeep: '{build-artifact-days-to-keep}'
149 artifactNumToKeep: '{build-artifact-num-to-keep}'
156 - gerrit-refspec-parameter:
157 refspec: 'refs/heads/{branch}'
160 - gerrit-trigger-scm:
161 credentials-id: '{ssh-credentials}'
163 choosing-strategy: 'default'
167 - ssh-agent-credentials:
169 - '{ssh-credentials}'
173 - gerrit-trigger-patch-merged:
178 - wipe-org-opendaylight-repo
179 - jacoco-nojava-workaround
180 - provide-maven-settings:
181 global-settings-file: '{odl-global-settings}'
182 settings-file: '{snmp-settings}'
185 maven-name: '{mvn33}'
187 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
188 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
189 settings: '{snmp-settings}'
190 global-settings: '{odl-global-settings}'
191 post-step-run-condition: UNSTABLE
195 condition-kind: file-exists
196 condition-filename: deploy-site.xml
197 condition-basedir: workspace
199 # The strategy here is intentional to run Maven site:deploy twice
200 # once using regular pom.xml to produce a staged-site which is
201 # then used by deploy-site.xml to push to Nexus. This is a
202 # workaround to Maven Site's default linking code which creates
203 # incorrect URLs for sites due to auto-detection assuming your
204 # project is configured in a certain way which ODL is not.
207 maven-version: '{mvn33}'
209 goals: 'site:deploy -Dstream={stream}'
212 settings: '{snmp-settings}'
213 global-settings: '{odl-global-settings}'
215 maven-version: '{mvn33}'
217 goals: 'site:deploy -Dstream={stream}'
220 settings: '{snmp-settings}'
221 global-settings: '{odl-global-settings}'
228 artifacts: '**/target/surefire-reports/*-output.txt, '
229 - email-notification:
230 email-prefix: '[snmp]'
234 deploy-unstable: false
238 name: 'snmp-periodic-{stream}'
240 # Job template for periodic builders
242 # The purpose of this job template is to setup a periodic
245 # Required Variables:
246 # stream: release stream (eg. stable-lithium or beryllium)
247 # branch: git branch (eg. stable/lithium or master)
254 daysToKeep: '{build-days-to-keep}'
255 numToKeep: '{build-num-to-keep}'
256 artifactDaysToKeep: '{build-artifact-days-to-keep}'
257 artifactNumToKeep: '{build-artifact-num-to-keep}'
265 credentials-id: '{ssh-credentials}'
271 - ssh-agent-credentials:
273 - '{ssh-credentials}'
279 - wipe-org-opendaylight-repo
280 - jacoco-nojava-workaround
281 - provide-maven-settings:
282 global-settings-file: '{odl-global-settings}'
283 settings-file: '{snmp-settings}'
286 maven-name: '{mvn33}'
288 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
289 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
290 settings: '{snmp-settings}'
291 global-settings: '{odl-global-settings}'
297 - email-notification:
298 email-prefix: '[snmp]'
302 name: 'snmp-distribution-{stream}'
304 # Required variables:
305 # stream: release stream (eg. stable-lithium or beryllium)
306 # branch: git branch (eg. stable/lithium or master)
313 daysToKeep: '{build-days-to-keep}'
314 numToKeep: '{build-num-to-keep}'
315 artifactDaysToKeep: '{build-artifact-days-to-keep}'
316 artifactNumToKeep: '{build-artifact-num-to-keep}'
320 project: 'integration/distribution'
324 credentials-id: '{ssh-credentials}'
330 - ssh-agent-credentials:
332 - '{ssh-credentials}'
336 jobs: '{project}-merge-{stream}'
340 - wipe-org-opendaylight-repo
341 - provide-maven-settings:
342 global-settings-file: '{odl-global-settings}'
343 settings-file: '{snmp-settings}'
346 maven-name: '{mvn33}'
348 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
349 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
350 settings: '{integration-settings}'
351 global-settings: '{odl-global-settings}'
354 - email-notification:
355 email-prefix: '[{project}]'
359 deploy-unstable: false
362 name: 'snmp-integration-{stream}'
363 # Temporarily disable this job until Rackspace networking issues are
368 # Job template for ODL integration verify jobs
370 # This is similar to a normal verify job, but it runs
371 # when a project that's a dependency of your project
372 # is successfully built.
374 # Required Variables:
375 # stream: release stream (eg. stable-lithium or beryllium)
376 # branch: git branch (eg. stable/lithium or master)
383 daysToKeep: '{build-days-to-keep}'
384 numToKeep: '{build-num-to-keep}'
385 artifactDaysToKeep: '{build-artifact-days-to-keep}'
386 artifactNumToKeep: '{build-artifact-num-to-keep}'
394 credentials-id: '{ssh-credentials}'
400 - ssh-agent-credentials:
402 - '{ssh-credentials}'
406 jobs: 'odlparent-merge-{stream}'
410 - wipe-org-opendaylight-repo
411 - jacoco-nojava-workaround
412 - provide-maven-settings:
413 global-settings-file: '{odl-global-settings}'
414 settings-file: '{snmp-settings}'
417 maven-name: '{mvn33}'
419 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
420 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
421 settings: '{snmp-settings}'
422 global-settings: '{odl-global-settings}'
428 - email-notification:
429 email-prefix: '[snmp] [odlparent]'
442 artifactDaysToKeep: '1'
443 artifactNumToKeep: '1'
451 credentials-id: '{ssh-credentials}'
457 - ssh-agent-credentials:
459 - '{ssh-credentials}'
463 - gerrit-trigger-patch-sonar:
467 - wipe-org-opendaylight-repo
468 - jacoco-nojava-workaround
469 - provide-maven-settings:
470 global-settings-file: '{odl-global-settings}'
471 settings-file: '{snmp-settings}'
474 maven-name: '{mvn33}'
476 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
477 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
478 settings: '{snmp-settings}'
479 global-settings: '{odl-global-settings}'
487 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
488 - email-notification:
489 email-prefix: '[snmp]'
493 name: 'snmp-clm-{stream}'
500 daysToKeep: '{build-days-to-keep}'
501 numToKeep: '{build-num-to-keep}'
502 artifactDaysToKeep: '{build-artifact-days-to-keep}'
503 artifactNumToKeep: '{build-artifact-num-to-keep}'
511 credentials-id: '{ssh-credentials}'
517 - ssh-agent-credentials:
519 - '{ssh-credentials}'
525 - wipe-org-opendaylight-repo
526 - provide-maven-settings:
527 global-settings-file: '{odl-global-settings}'
528 settings-file: '{snmp-settings}'
531 maven-name: '{mvn33}'
533 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'
534 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
535 settings: '{snmp-settings}'
536 global-settings: '{odl-global-settings}'
539 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
541 application-name: snmp
544 - email-notification:
545 email-prefix: '[snmp]'
548 name: 'snmp-validate-autorelease-{stream}'
549 disabled: '{obj:disable_autorelease}'
557 daysToKeep: '{build-days-to-keep}'
558 numToKeep: '{build-num-to-keep}'
559 artifactDaysToKeep: '{build-artifact-days-to-keep}'
560 artifactNumToKeep: '{build-artifact-num-to-keep}'
567 - autorelease-release-tag:
568 release-tag: 'validate'
569 - autorelease-release-branch:
570 release-branch: '{branch}'
571 - autorelease-release-datestamp:
576 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
585 - autorelease-build-timeout
586 - ssh-agent-credentials:
588 - '{ssh-credentials}'
592 server-name: 'OpenDaylight'
594 - patchset-created-event:
595 exclude-drafts: 'false'
596 exclude-trivial-rebase: 'false'
597 exclude-no-code-change: 'false'
598 - draft-published-event
599 - comment-added-contains-event:
600 comment-contains-value: 'recheck'
601 - comment-added-contains-event:
602 comment-contains-value: 'reverify'
603 - comment-added-contains-event:
604 comment-contains-value: 'revalidate'
606 - project-compare-type: 'ANT'
607 project-pattern: 'snmp'
609 - branch-compare-type: 'ANT'
610 branch-pattern: '**/{branch}'
613 - wipe-org-opendaylight-repo
614 - jacoco-nojava-workaround
615 - autorelease-checkout-gerrit-patch
616 - autorelease-generate-taglist
617 - autorelease-generate-release-patches
619 maven-version: '{mvn33}'
620 pom: validate-pom.xml
621 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
624 settings: '{autorelease-settings}'
625 global-settings: '{odl-global-settings}'
628 maven-name: '{mvn33}'
630 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
631 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
632 settings: '{autorelease-settings}'
633 global-settings: '{odl-global-settings}'
634 automatic-archiving: false
635 post-step-run-condition: UNSTABLE
638 - shell: "./scripts/list-project-dependencies.sh"
639 - autorelease-sys-stats
644 - email-notification:
645 email-prefix: '[autorelease] [snmp]'