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-daily-{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: True
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}'
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: '{snmp-settings}'
113 maven-version: '{mvn33}'
115 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
117 - '-Xmx1024m -XX:MaxPermSize=256m'
118 settings: '{snmp-settings}'
119 global-settings: '{odl-global-settings}'
123 - email-notification:
124 email-prefix: '[snmp]'
128 name: 'snmp-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-trigger-scm:
155 credentials-id: '{ssh-credentials}'
157 choosing-strategy: 'default'
161 - ssh-agent-credentials:
163 - '{ssh-credentials}'
166 - gerrit-trigger-patch-merged:
171 - wipe-org-opendaylight-repo
172 - jacoco-nojava-workaround
173 - provide-maven-settings:
174 global-settings-file: '{odl-global-settings}'
175 settings-file: '{snmp-settings}'
178 maven-name: '{mvn33}'
180 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dmerge -Dstream={stream}'
181 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
182 settings: '{snmp-settings}'
183 global-settings: '{odl-global-settings}'
184 post-step-run-condition: UNSTABLE
188 condition-kind: file-exists
189 condition-filename: deploy-site.xml
190 condition-basedir: workspace
192 # The strategy here is intentional to run Maven site:deploy twice
193 # once using regular pom.xml to produce a staged-site which is
194 # then used by deploy-site.xml to push to Nexus. This is a
195 # workaround to Maven Site's default linking code which creates
196 # incorrect URLs for sites due to auto-detection assuming your
197 # project is configured in a certain way which ODL is not.
200 maven-version: '{mvn33}'
202 goals: 'site:deploy -Dstream={stream}'
205 settings: '{snmp-settings}'
206 global-settings: '{odl-global-settings}'
208 maven-version: '{mvn33}'
210 goals: 'site:deploy -Dstream={stream}'
213 settings: '{snmp-settings}'
214 global-settings: '{odl-global-settings}'
220 - email-notification:
221 email-prefix: '[snmp]'
225 deploy-unstable: false
229 name: 'snmp-daily-{stream}'
231 # Job template for daily builders
233 # The purpose of this job template is to setup a daily/nightly
234 # builder and pushes to Sonar analysis.
236 # Required Variables:
237 # stream: release stream (eg. stable-lithium or beryllium)
238 # branch: git branch (eg. stable/lithium or master)
245 daysToKeep: '{build-days-to-keep}'
246 numToKeep: '{build-num-to-keep}'
247 artifactDaysToKeep: '{build-artifact-days-to-keep}'
248 artifactNumToKeep: '{build-artifact-num-to-keep}'
256 credentials-id: '{ssh-credentials}'
262 - ssh-agent-credentials:
264 - '{ssh-credentials}'
270 - wipe-org-opendaylight-repo
271 - jacoco-nojava-workaround
272 - provide-maven-settings:
273 global-settings-file: '{odl-global-settings}'
274 settings-file: '{snmp-settings}'
277 maven-name: '{mvn33}'
279 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
280 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
281 settings: '{snmp-settings}'
282 global-settings: '{odl-global-settings}'
288 - email-notification:
289 email-prefix: '[snmp]'
293 name: 'snmp-distribution-{stream}'
295 # Required variables:
296 # stream: release stream (eg. stable-lithium or beryllium)
297 # branch: git branch (eg. stable/lithium or master)
304 daysToKeep: '{build-days-to-keep}'
305 numToKeep: '{build-num-to-keep}'
306 artifactDaysToKeep: '{build-artifact-days-to-keep}'
307 artifactNumToKeep: '{build-artifact-num-to-keep}'
311 project: 'integration/distribution'
315 credentials-id: '{ssh-credentials}'
321 - ssh-agent-credentials:
323 - '{ssh-credentials}'
327 jobs: '{project}-merge-{stream}'
331 - wipe-org-opendaylight-repo
332 - provide-maven-settings:
333 global-settings-file: '{odl-global-settings}'
334 settings-file: '{snmp-settings}'
337 maven-name: '{mvn33}'
339 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install'
340 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
341 settings: '{integration-settings}'
342 global-settings: '{odl-global-settings}'
345 - email-notification:
346 email-prefix: '[{project}]'
350 deploy-unstable: false
353 name: 'snmp-integration-{stream}'
356 # Job template for ODL integration verify jobs
358 # This is similar to a normal verify job, but it runs
359 # when a project that's a dependency of your project
360 # is successfully built.
362 # Required Variables:
363 # stream: release stream (eg. stable-lithium or beryllium)
364 # branch: git branch (eg. stable/lithium or master)
371 daysToKeep: '{build-days-to-keep}'
372 numToKeep: '{build-num-to-keep}'
373 artifactDaysToKeep: '{build-artifact-days-to-keep}'
374 artifactNumToKeep: '{build-artifact-num-to-keep}'
382 credentials-id: '{ssh-credentials}'
388 - ssh-agent-credentials:
390 - '{ssh-credentials}'
394 jobs: 'odlparent-merge-{stream}'
398 - wipe-org-opendaylight-repo
399 - jacoco-nojava-workaround
400 - provide-maven-settings:
401 global-settings-file: '{odl-global-settings}'
402 settings-file: '{snmp-settings}'
405 maven-name: '{mvn33}'
407 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
408 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
409 settings: '{snmp-settings}'
410 global-settings: '{odl-global-settings}'
416 - email-notification:
417 email-prefix: '[snmp] [odlparent]'
430 artifactDaysToKeep: '1'
431 artifactNumToKeep: '1'
439 credentials-id: '{ssh-credentials}'
445 - ssh-agent-credentials:
447 - '{ssh-credentials}'
451 - gerrit-trigger-patch-sonar:
455 - wipe-org-opendaylight-repo
456 - jacoco-nojava-workaround
457 - provide-maven-settings:
458 global-settings-file: '{odl-global-settings}'
459 settings-file: '{snmp-settings}'
462 maven-name: '{mvn33}'
464 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dsonar'
465 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
466 settings: '{snmp-settings}'
467 global-settings: '{odl-global-settings}'
475 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
476 - email-notification:
477 email-prefix: '[snmp]'
481 name: 'snmp-clm-{stream}'
488 daysToKeep: '{build-days-to-keep}'
489 numToKeep: '{build-num-to-keep}'
490 artifactDaysToKeep: '{build-artifact-days-to-keep}'
491 artifactNumToKeep: '{build-artifact-num-to-keep}'
499 credentials-id: '{ssh-credentials}'
505 - ssh-agent-credentials:
507 - '{ssh-credentials}'
513 - wipe-org-opendaylight-repo
514 - provide-maven-settings:
515 global-settings-file: '{odl-global-settings}'
516 settings-file: '{snmp-settings}'
519 maven-name: '{mvn33}'
521 goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
522 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
523 settings: '{snmp-settings}'
524 global-settings: '{odl-global-settings}'
528 application-name: snmp
531 - email-notification:
532 email-prefix: '[snmp]'
535 name: 'snmp-validate-autorelease-{stream}'
536 disabled: '{obj:disable_autorelease}'
544 daysToKeep: '{build-days-to-keep}'
545 numToKeep: '{build-num-to-keep}'
546 artifactDaysToKeep: '{build-artifact-days-to-keep}'
547 artifactNumToKeep: '{build-artifact-num-to-keep}'
554 - autorelease-release-tag:
555 release-tag: 'validate'
556 - autorelease-release-branch:
557 release-branch: '{branch}'
558 - autorelease-release-datestamp:
563 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
572 - autorelease-build-timeout
573 - ssh-agent-credentials:
575 - '{ssh-credentials}'
579 server-name: 'OpenDaylight'
581 - patchset-created-event:
582 exclude-drafts: 'false'
583 exclude-trivial-rebase: 'false'
584 exclude-no-code-change: 'false'
585 - draft-published-event
586 - comment-added-contains-event:
587 comment-contains-value: 'recheck'
588 - comment-added-contains-event:
589 comment-contains-value: 'reverify'
590 - comment-added-contains-event:
591 comment-contains-value: 'revalidate'
593 - project-compare-type: 'ANT'
594 project-pattern: 'snmp'
596 - branch-compare-type: 'ANT'
597 branch-pattern: '**/{branch}'
600 - wipe-org-opendaylight-repo
601 - jacoco-nojava-workaround
602 - autorelease-checkout-gerrit-patch
603 - autorelease-generate-taglist
604 - autorelease-generate-release-patches
606 maven-version: '{mvn33}'
607 pom: validate-pom.xml
608 goals: 'clean install -T1.5C -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
611 settings: '{autorelease-settings}'
612 global-settings: '{odl-global-settings}'
615 maven-name: '{mvn33}'
617 goals: 'clean validate -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
618 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
619 settings: '{autorelease-settings}'
620 global-settings: '{odl-global-settings}'
621 automatic-archiving: false
622 post-step-run-condition: UNSTABLE
625 - shell: "./scripts/list-project-dependencies.sh"
626 - autorelease-sys-stats
631 - email-notification:
632 email-prefix: '[autorelease] [snmp]'