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 - 'iotdm-verify-{stream}'
10 - 'iotdm-merge-{stream}'
11 - 'iotdm-daily-{stream}'
12 - 'iotdm-distribution-{stream}'
13 - 'iotdm-integration-{stream}'
15 - 'iotdm-clm-{stream}'
16 - 'iotdm-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: 'iotdm-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: '{iotdm-settings}'
115 maven-version: '{mvn33}'
117 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
119 - '-Xmx1024m -XX:MaxPermSize=256m'
120 settings: '{iotdm-settings}'
121 global-settings: '{odl-global-settings}'
125 - email-notification:
126 email-prefix: '[iotdm]'
130 name: 'iotdm-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}'
172 - gerrit-trigger-patch-merged:
177 - wipe-org-opendaylight-repo
178 - jacoco-nojava-workaround
179 - provide-maven-settings:
180 global-settings-file: '{odl-global-settings}'
181 settings-file: '{iotdm-settings}'
184 maven-name: '{mvn33}'
186 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dmerge -Dstream={stream}'
187 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
188 settings: '{iotdm-settings}'
189 global-settings: '{odl-global-settings}'
190 post-step-run-condition: UNSTABLE
194 condition-kind: file-exists
195 condition-filename: deploy-site.xml
196 condition-basedir: workspace
198 # The strategy here is intentional to run Maven site:deploy twice
199 # once using regular pom.xml to produce a staged-site which is
200 # then used by deploy-site.xml to push to Nexus. This is a
201 # workaround to Maven Site's default linking code which creates
202 # incorrect URLs for sites due to auto-detection assuming your
203 # project is configured in a certain way which ODL is not.
206 maven-version: '{mvn33}'
208 goals: 'site:deploy -Dstream={stream}'
211 settings: '{iotdm-settings}'
212 global-settings: '{odl-global-settings}'
214 maven-version: '{mvn33}'
216 goals: 'site:deploy -Dstream={stream}'
219 settings: '{iotdm-settings}'
220 global-settings: '{odl-global-settings}'
226 - email-notification:
227 email-prefix: '[iotdm]'
231 deploy-unstable: false
235 name: 'iotdm-daily-{stream}'
237 # Job template for daily builders
239 # The purpose of this job template is to setup a daily/nightly
240 # builder and pushes to Sonar analysis.
242 # Required Variables:
243 # stream: release stream (eg. stable-lithium or beryllium)
244 # branch: git branch (eg. stable/lithium or master)
251 daysToKeep: '{build-days-to-keep}'
252 numToKeep: '{build-num-to-keep}'
253 artifactDaysToKeep: '{build-artifact-days-to-keep}'
254 artifactNumToKeep: '{build-artifact-num-to-keep}'
262 credentials-id: '{ssh-credentials}'
268 - ssh-agent-credentials:
270 - '{ssh-credentials}'
276 - wipe-org-opendaylight-repo
277 - jacoco-nojava-workaround
278 - provide-maven-settings:
279 global-settings-file: '{odl-global-settings}'
280 settings-file: '{iotdm-settings}'
283 maven-name: '{mvn33}'
285 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
286 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
287 settings: '{iotdm-settings}'
288 global-settings: '{odl-global-settings}'
294 - email-notification:
295 email-prefix: '[iotdm]'
299 name: 'iotdm-distribution-{stream}'
301 # Required variables:
302 # stream: release stream (eg. stable-lithium or beryllium)
303 # branch: git branch (eg. stable/lithium or master)
310 daysToKeep: '{build-days-to-keep}'
311 numToKeep: '{build-num-to-keep}'
312 artifactDaysToKeep: '{build-artifact-days-to-keep}'
313 artifactNumToKeep: '{build-artifact-num-to-keep}'
317 project: 'integration/distribution'
321 credentials-id: '{ssh-credentials}'
327 - ssh-agent-credentials:
329 - '{ssh-credentials}'
333 jobs: '{project}-merge-{stream}'
337 - wipe-org-opendaylight-repo
338 - provide-maven-settings:
339 global-settings-file: '{odl-global-settings}'
340 settings-file: '{iotdm-settings}'
343 maven-name: '{mvn33}'
345 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install'
346 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
347 settings: '{integration-settings}'
348 global-settings: '{odl-global-settings}'
351 - email-notification:
352 email-prefix: '[{project}]'
356 deploy-unstable: false
359 name: 'iotdm-integration-{stream}'
362 # Job template for ODL integration verify jobs
364 # This is similar to a normal verify job, but it runs
365 # when a project that's a dependency of your project
366 # is successfully built.
368 # Required Variables:
369 # stream: release stream (eg. stable-lithium or beryllium)
370 # branch: git branch (eg. stable/lithium or master)
377 daysToKeep: '{build-days-to-keep}'
378 numToKeep: '{build-num-to-keep}'
379 artifactDaysToKeep: '{build-artifact-days-to-keep}'
380 artifactNumToKeep: '{build-artifact-num-to-keep}'
388 credentials-id: '{ssh-credentials}'
394 - ssh-agent-credentials:
396 - '{ssh-credentials}'
400 jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream},aaa-merge-{stream}'
404 - wipe-org-opendaylight-repo
405 - jacoco-nojava-workaround
406 - provide-maven-settings:
407 global-settings-file: '{odl-global-settings}'
408 settings-file: '{iotdm-settings}'
411 maven-name: '{mvn33}'
413 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
414 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
415 settings: '{iotdm-settings}'
416 global-settings: '{odl-global-settings}'
422 - email-notification:
423 email-prefix: '[iotdm] [controller] [yangtools] [odlparent] [aaa]'
436 artifactDaysToKeep: '1'
437 artifactNumToKeep: '1'
445 credentials-id: '{ssh-credentials}'
451 - ssh-agent-credentials:
453 - '{ssh-credentials}'
457 - gerrit-trigger-patch-sonar:
461 - wipe-org-opendaylight-repo
462 - jacoco-nojava-workaround
463 - provide-maven-settings:
464 global-settings-file: '{odl-global-settings}'
465 settings-file: '{iotdm-settings}'
468 maven-name: '{mvn33}'
470 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dsonar'
471 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
472 settings: '{iotdm-settings}'
473 global-settings: '{odl-global-settings}'
481 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
482 - email-notification:
483 email-prefix: '[iotdm]'
487 name: 'iotdm-clm-{stream}'
494 daysToKeep: '{build-days-to-keep}'
495 numToKeep: '{build-num-to-keep}'
496 artifactDaysToKeep: '{build-artifact-days-to-keep}'
497 artifactNumToKeep: '{build-artifact-num-to-keep}'
505 credentials-id: '{ssh-credentials}'
511 - ssh-agent-credentials:
513 - '{ssh-credentials}'
519 - wipe-org-opendaylight-repo
520 - provide-maven-settings:
521 global-settings-file: '{odl-global-settings}'
522 settings-file: '{iotdm-settings}'
525 maven-name: '{mvn33}'
527 goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
528 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
529 settings: '{iotdm-settings}'
530 global-settings: '{odl-global-settings}'
534 application-name: iotdm
537 - email-notification:
538 email-prefix: '[iotdm]'
541 name: 'iotdm-validate-autorelease-{stream}'
542 disabled: '{obj:disable_autorelease}'
550 daysToKeep: '{build-days-to-keep}'
551 numToKeep: '{build-num-to-keep}'
552 artifactDaysToKeep: '{build-artifact-days-to-keep}'
553 artifactNumToKeep: '{build-artifact-num-to-keep}'
560 - autorelease-release-tag:
561 release-tag: 'validate'
562 - autorelease-release-branch:
563 release-branch: '{branch}'
564 - autorelease-release-datestamp:
569 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
578 - autorelease-build-timeout
579 - ssh-agent-credentials:
581 - '{ssh-credentials}'
585 server-name: 'OpenDaylight'
587 - patchset-created-event:
588 exclude-drafts: 'false'
589 exclude-trivial-rebase: 'false'
590 exclude-no-code-change: 'false'
591 - draft-published-event
592 - comment-added-contains-event:
593 comment-contains-value: 'recheck'
594 - comment-added-contains-event:
595 comment-contains-value: 'reverify'
596 - comment-added-contains-event:
597 comment-contains-value: 'revalidate'
599 - project-compare-type: 'ANT'
600 project-pattern: 'iotdm'
602 - branch-compare-type: 'ANT'
603 branch-pattern: '**/{branch}'
606 - wipe-org-opendaylight-repo
607 - jacoco-nojava-workaround
608 - autorelease-checkout-gerrit-patch
609 - autorelease-generate-taglist
610 - autorelease-generate-release-patches
612 maven-version: '{mvn33}'
613 pom: validate-pom.xml
614 goals: 'clean install -T1.5C -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
617 settings: '{autorelease-settings}'
618 global-settings: '{odl-global-settings}'
621 maven-name: '{mvn33}'
623 goals: 'clean validate -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
624 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
625 settings: '{autorelease-settings}'
626 global-settings: '{odl-global-settings}'
627 automatic-archiving: false
628 post-step-run-condition: UNSTABLE
631 - shell: "./scripts/list-project-dependencies.sh"
632 - autorelease-sys-stats
637 - email-notification:
638 email-prefix: '[autorelease] [iotdm]'