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 - 'usc-verify-{stream}'
10 - 'usc-merge-{stream}'
11 - 'usc-daily-{stream}'
12 - 'usc-distribution-{stream}'
13 - 'usc-integration-{stream}'
18 # stream: release stream (eg. stable-lithium or beryllium)
19 # branch: git branch (eg. stable/lithium or master)
28 branch: 'stable/lithium'
36 # For the Job templates below replace instances of:
37 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
38 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
39 # MAVEN_GOALS with your maven goals to build
40 # MAVEN_OPTS with your maven options to build
43 name: 'usc-verify-{stream}'
45 # Job template for ODL verify jobs
47 # The purpose of this job template is to setup a ODL verify job
50 # stream: release stream (eg. stable-lithium or beryllium)
51 # branch: git branch (eg. stable/lithium or master)
68 daysToKeep: '{build-days-to-keep}'
69 numToKeep: '{build-num-to-keep}'
70 artifactDaysToKeep: '{build-artifact-days-to-keep}'
71 artifactNumToKeep: '{build-artifact-num-to-keep}'
81 credentials-id: '{ssh-credentials}'
82 refspec: '$GERRIT_REFSPEC'
83 choosing-strategy: 'gerrit'
87 - ssh-agent-credentials:
92 - gerrit-trigger-patch-submitted:
97 - wipe-org-opendaylight-repo
98 - jacoco-nojava-workaround
99 - provide-maven-settings:
100 global-settings-file: '{odl-global-settings}'
101 settings-file: '{usc-settings}'
103 maven-version: '{mvn33}'
105 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
107 - '-Xmx1024m -XX:MaxPermSize=256m'
108 settings: '{usc-settings}'
109 global-settings: '{odl-global-settings}'
113 - email-notification:
114 email-prefix: '[usc]'
118 name: 'usc-merge-{stream}'
120 # Job template for ODL merge jobs
122 # The purpose of this job template is to setup a ODL merge job
123 # and deploy artifacts to Nexus.
125 # Required Variables:
126 # stream: release stream (eg. stable-lithium or beryllium)
127 # branch: git branch (eg. stable/lithium or master)
134 daysToKeep: '{build-days-to-keep}'
135 numToKeep: '{build-num-to-keep}'
136 artifactDaysToKeep: '{build-artifact-days-to-keep}'
137 artifactNumToKeep: '{build-artifact-num-to-keep}'
144 - gerrit-trigger-scm:
145 credentials-id: '{ssh-credentials}'
147 choosing-strategy: 'default'
151 - ssh-agent-credentials:
153 - '{ssh-credentials}'
156 - gerrit-trigger-patch-merged:
161 - wipe-org-opendaylight-repo
162 - jacoco-nojava-workaround
163 - provide-maven-settings:
164 global-settings-file: '{odl-global-settings}'
165 settings-file: '{usc-settings}'
168 maven-name: '{mvn33}'
170 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dmerge -Dstream={stream}'
171 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
172 settings: '{usc-settings}'
173 global-settings: '{odl-global-settings}'
174 post-step-run-condition: UNSTABLE
178 condition-kind: file-exists
179 condition-filename: deploy-site.xml
180 condition-basedir: workspace
182 # The strategy here is intentional to run Maven site:deploy twice
183 # once using regular pom.xml to produce a staged-site which is
184 # then used by deploy-site.xml to push to Nexus. This is a
185 # workaround to Maven Site's default linking code which creates
186 # incorrect URLs for sites due to auto-detection assuming your
187 # project is configured in a certain way which ODL is not.
190 maven-version: '{mvn33}'
192 goals: 'site:deploy -Dstream={stream}'
195 settings: '{usc-settings}'
196 global-settings: '{odl-global-settings}'
198 maven-version: '{mvn33}'
200 goals: 'site:deploy -Dstream={stream}'
203 settings: '{usc-settings}'
204 global-settings: '{odl-global-settings}'
210 - email-notification:
211 email-prefix: '[usc]'
215 deploy-unstable: false
219 name: 'usc-daily-{stream}'
221 # Job template for daily builders
223 # The purpose of this job template is to setup a daily/nightly
224 # builder and pushes to Sonar analysis.
226 # Required Variables:
227 # stream: release stream (eg. stable-lithium or beryllium)
228 # branch: git branch (eg. stable/lithium or master)
235 daysToKeep: '{build-days-to-keep}'
236 numToKeep: '{build-num-to-keep}'
237 artifactDaysToKeep: '{build-artifact-days-to-keep}'
238 artifactNumToKeep: '{build-artifact-num-to-keep}'
246 credentials-id: '{ssh-credentials}'
252 - ssh-agent-credentials:
254 - '{ssh-credentials}'
260 - wipe-org-opendaylight-repo
261 - jacoco-nojava-workaround
262 - provide-maven-settings:
263 global-settings-file: '{odl-global-settings}'
264 settings-file: '{usc-settings}'
267 maven-name: '{mvn33}'
269 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
270 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
271 settings: '{usc-settings}'
272 global-settings: '{odl-global-settings}'
278 - email-notification:
279 email-prefix: '[usc]'
283 name: 'usc-distribution-{stream}'
285 # Required variables:
286 # stream: release stream (eg. stable-lithium or beryllium)
287 # branch: git branch (eg. stable/lithium or master)
294 daysToKeep: '{build-days-to-keep}'
295 numToKeep: '{build-num-to-keep}'
296 artifactDaysToKeep: '{build-artifact-days-to-keep}'
297 artifactNumToKeep: '{build-artifact-num-to-keep}'
301 project: 'integration/distribution'
305 credentials-id: '{ssh-credentials}'
311 - ssh-agent-credentials:
313 - '{ssh-credentials}'
317 jobs: '{project}-merge-{stream}'
321 - wipe-org-opendaylight-repo
322 - provide-maven-settings:
323 global-settings-file: '{odl-global-settings}'
324 settings-file: '{usc-settings}'
327 maven-name: '{mvn33}'
329 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install'
330 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
331 settings: '{integration-settings}'
332 global-settings: '{odl-global-settings}'
335 - email-notification:
336 email-prefix: '[{project}]'
340 deploy-unstable: false
343 name: 'usc-integration-{stream}'
346 # Job template for ODL integration verify jobs
348 # This is similar to a normal verify job, but it runs
349 # when a project that's a dependency of your project
350 # is successfully built.
352 # Required Variables:
353 # stream: release stream (eg. stable-lithium or beryllium)
354 # branch: git branch (eg. stable/lithium or master)
361 daysToKeep: '{build-days-to-keep}'
362 numToKeep: '{build-num-to-keep}'
363 artifactDaysToKeep: '{build-artifact-days-to-keep}'
364 artifactNumToKeep: '{build-artifact-num-to-keep}'
372 credentials-id: '{ssh-credentials}'
378 - ssh-agent-credentials:
380 - '{ssh-credentials}'
384 jobs: 'controller-merge-{stream},yangtools-merge-{stream},odlparent-merge-{stream}'
388 - wipe-org-opendaylight-repo
389 - jacoco-nojava-workaround
390 - provide-maven-settings:
391 global-settings-file: '{odl-global-settings}'
392 settings-file: '{usc-settings}'
395 maven-name: '{mvn33}'
397 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
398 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
399 settings: '{usc-settings}'
400 global-settings: '{odl-global-settings}'
406 - email-notification:
407 email-prefix: '[usc] [controller] [yangtools] [odlparent]'
420 artifactDaysToKeep: '1'
421 artifactNumToKeep: '1'
429 credentials-id: '{ssh-credentials}'
435 - ssh-agent-credentials:
437 - '{ssh-credentials}'
441 - gerrit-trigger-patch-sonar:
445 - wipe-org-opendaylight-repo
446 - jacoco-nojava-workaround
447 - provide-maven-settings:
448 global-settings-file: '{odl-global-settings}'
449 settings-file: '{usc-settings}'
452 maven-name: '{mvn33}'
454 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dsonar'
455 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
456 settings: '{usc-settings}'
457 global-settings: '{odl-global-settings}'
465 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
466 - email-notification:
467 email-prefix: '[usc]'
471 name: 'usc-clm-{stream}'
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}'
503 - wipe-org-opendaylight-repo
504 - provide-maven-settings:
505 global-settings-file: '{odl-global-settings}'
506 settings-file: '{usc-settings}'
509 maven-name: '{mvn33}'
511 goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
512 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
513 settings: '{usc-settings}'
514 global-settings: '{odl-global-settings}'
518 application-name: usc
521 - email-notification:
522 email-prefix: '[usc]'