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 - 'openflowplugin-verify-{stream}'
10 - 'openflowplugin-merge-{stream}'
11 - 'openflowplugin-daily-{stream}'
12 - 'openflowplugin-distribution-{stream}'
13 - 'openflowplugin-integration-{stream}'
14 - 'openflowplugin-sonar'
15 - 'openflowplugin-clm-{stream}'
16 - 'openflowplugin-validate-autorelease-{stream}'
19 # stream: release stream (eg. stable-lithium or beryllium)
20 # branch: git branch (eg. stable/lithium or master)
30 branch: 'stable/lithium'
37 branch: 'stable/helium'
43 project: 'openflowplugin'
45 # For the Job templates below replace instances of:
46 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
47 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
48 # MAVEN_GOALS with your maven goals to build
49 # MAVEN_OPTS with your maven options to build
52 name: 'openflowplugin-verify-{stream}'
54 # Job template for ODL verify jobs
56 # The purpose of this job template is to setup a ODL verify job
59 # stream: release stream (eg. stable-lithium or beryllium)
60 # branch: git branch (eg. stable/lithium or master)
77 daysToKeep: '{build-days-to-keep}'
78 numToKeep: '{build-num-to-keep}'
79 artifactDaysToKeep: '{build-artifact-days-to-keep}'
80 artifactNumToKeep: '{build-artifact-num-to-keep}'
90 credentials-id: '{ssh-credentials}'
91 refspec: '$GERRIT_REFSPEC'
92 choosing-strategy: 'gerrit'
96 - ssh-agent-credentials:
101 - gerrit-trigger-patch-submitted:
102 name: 'openflowplugin'
106 - wipe-org-opendaylight-repo
107 - jacoco-nojava-workaround
108 - provide-maven-settings:
109 global-settings-file: '{odl-global-settings}'
110 settings-file: '{openflowplugin-settings}'
112 maven-version: '{mvn33}'
114 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -Dstream={stream}'
116 - '-Xmx1024m -XX:MaxPermSize=256m'
117 settings: '{openflowplugin-settings}'
118 global-settings: '{odl-global-settings}'
122 - email-notification:
123 email-prefix: '[openflowplugin]'
127 name: 'openflowplugin-merge-{stream}'
129 # Job template for ODL merge jobs
131 # The purpose of this job template is to setup a ODL merge job
132 # and deploy artifacts to Nexus.
134 # Required Variables:
135 # stream: release stream (eg. stable-lithium or beryllium)
136 # branch: git branch (eg. stable/lithium or master)
143 daysToKeep: '{build-days-to-keep}'
144 numToKeep: '{build-num-to-keep}'
145 artifactDaysToKeep: '{build-artifact-days-to-keep}'
146 artifactNumToKeep: '{build-artifact-num-to-keep}'
153 - gerrit-trigger-scm:
154 credentials-id: '{ssh-credentials}'
156 choosing-strategy: 'default'
160 - ssh-agent-credentials:
162 - '{ssh-credentials}'
165 - gerrit-trigger-patch-merged:
166 name: 'openflowplugin'
170 - wipe-org-opendaylight-repo
171 - jacoco-nojava-workaround
172 - provide-maven-settings:
173 global-settings-file: '{odl-global-settings}'
174 settings-file: '{openflowplugin-settings}'
177 maven-name: '{mvn33}'
179 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -Dmerge -Dstream={stream}'
180 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
181 settings: '{openflowplugin-settings}'
182 global-settings: '{odl-global-settings}'
183 post-step-run-condition: UNSTABLE
187 condition-kind: file-exists
188 condition-filename: deploy-site.xml
189 condition-basedir: workspace
191 # The strategy here is intentional to run Maven site:deploy twice
192 # once using regular pom.xml to produce a staged-site which is
193 # then used by deploy-site.xml to push to Nexus. This is a
194 # workaround to Maven Site's default linking code which creates
195 # incorrect URLs for sites due to auto-detection assuming your
196 # project is configured in a certain way which ODL is not.
199 maven-version: '{mvn33}'
201 goals: 'site:deploy -Dstream={stream}'
204 settings: '{openflowplugin-settings}'
205 global-settings: '{odl-global-settings}'
207 maven-version: '{mvn33}'
209 goals: 'site:deploy -Dstream={stream}'
212 settings: '{openflowplugin-settings}'
213 global-settings: '{odl-global-settings}'
220 artifacts: 'model/*/target/site/**'
221 - email-notification:
222 email-prefix: '[openflowplugin]'
226 deploy-unstable: false
230 name: 'openflowplugin-daily-{stream}'
232 # Job template for daily builders
234 # The purpose of this job template is to setup a daily/nightly
235 # builder and pushes to Sonar analysis.
237 # Required Variables:
238 # stream: release stream (eg. stable-lithium or beryllium)
239 # branch: git branch (eg. stable/lithium or master)
246 daysToKeep: '{build-days-to-keep}'
247 numToKeep: '{build-num-to-keep}'
248 artifactDaysToKeep: '{build-artifact-days-to-keep}'
249 artifactNumToKeep: '{build-artifact-num-to-keep}'
257 credentials-id: '{ssh-credentials}'
263 - ssh-agent-credentials:
265 - '{ssh-credentials}'
271 - wipe-org-opendaylight-repo
272 - jacoco-nojava-workaround
273 - provide-maven-settings:
274 global-settings-file: '{odl-global-settings}'
275 settings-file: '{openflowplugin-settings}'
278 maven-name: '{mvn33}'
280 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate'
281 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
282 settings: '{openflowplugin-settings}'
283 global-settings: '{odl-global-settings}'
289 - email-notification:
290 email-prefix: '[openflowplugin]'
294 name: 'openflowplugin-distribution-{stream}'
296 # Required variables:
297 # stream: release stream (eg. stable-lithium or beryllium)
298 # branch: git branch (eg. stable/lithium or master)
305 daysToKeep: '{build-days-to-keep}'
306 numToKeep: '{build-num-to-keep}'
307 artifactDaysToKeep: '{build-artifact-days-to-keep}'
308 artifactNumToKeep: '{build-artifact-num-to-keep}'
312 project: 'integration/distribution'
316 credentials-id: '{ssh-credentials}'
322 - ssh-agent-credentials:
324 - '{ssh-credentials}'
328 jobs: '{project}-merge-{stream}'
332 - wipe-org-opendaylight-repo
333 - provide-maven-settings:
334 global-settings-file: '{odl-global-settings}'
335 settings-file: '{openflowplugin-settings}'
338 maven-name: '{mvn33}'
340 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install'
341 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
342 settings: '{integration-settings}'
343 global-settings: '{odl-global-settings}'
346 - email-notification:
347 email-prefix: '[{project}]'
351 deploy-unstable: false
354 name: 'openflowplugin-integration-{stream}'
357 # Job template for ODL integration verify jobs
359 # This is similar to a normal verify job, but it runs
360 # when a project that's a dependency of your project
361 # is successfully built.
363 # Required Variables:
364 # stream: release stream (eg. stable-lithium or beryllium)
365 # branch: git branch (eg. stable/lithium or master)
372 daysToKeep: '{build-days-to-keep}'
373 numToKeep: '{build-num-to-keep}'
374 artifactDaysToKeep: '{build-artifact-days-to-keep}'
375 artifactNumToKeep: '{build-artifact-num-to-keep}'
383 credentials-id: '{ssh-credentials}'
389 - ssh-agent-credentials:
391 - '{ssh-credentials}'
395 jobs: 'odlparent-merge-{stream},yangtools-merge-{stream},controller-merge-{stream},openflowjava-merge-{stream}'
399 - wipe-org-opendaylight-repo
400 - jacoco-nojava-workaround
401 - provide-maven-settings:
402 global-settings-file: '{odl-global-settings}'
403 settings-file: '{openflowplugin-settings}'
406 maven-name: '{mvn33}'
408 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate'
409 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
410 settings: '{openflowplugin-settings}'
411 global-settings: '{odl-global-settings}'
417 - email-notification:
418 email-prefix: '[openflowplugin] [odlparent] [yangtools] [controller] [openflowjava]'
422 name: 'openflowplugin-sonar'
431 artifactDaysToKeep: '1'
432 artifactNumToKeep: '1'
440 credentials-id: '{ssh-credentials}'
446 - ssh-agent-credentials:
448 - '{ssh-credentials}'
452 - gerrit-trigger-patch-sonar:
453 name: 'openflowplugin'
456 - wipe-org-opendaylight-repo
457 - jacoco-nojava-workaround
458 - provide-maven-settings:
459 global-settings-file: '{odl-global-settings}'
460 settings-file: '{openflowplugin-settings}'
463 maven-name: '{mvn33}'
465 goals: '-Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r clean install javadoc:aggregate -Dsonar'
466 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
467 settings: '{openflowplugin-settings}'
468 global-settings: '{odl-global-settings}'
476 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
477 - email-notification:
478 email-prefix: '[openflowplugin]'
482 name: 'openflowplugin-clm-{stream}'
489 daysToKeep: '{build-days-to-keep}'
490 numToKeep: '{build-num-to-keep}'
491 artifactDaysToKeep: '{build-artifact-days-to-keep}'
492 artifactNumToKeep: '{build-artifact-num-to-keep}'
500 credentials-id: '{ssh-credentials}'
506 - ssh-agent-credentials:
508 - '{ssh-credentials}'
514 - wipe-org-opendaylight-repo
515 - provide-maven-settings:
516 global-settings-file: '{odl-global-settings}'
517 settings-file: '{openflowplugin-settings}'
520 maven-name: '{mvn33}'
522 goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
523 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
524 settings: '{openflowplugin-settings}'
525 global-settings: '{odl-global-settings}'
529 application-name: openflowplugin
532 - email-notification:
533 email-prefix: '[openflowplugin]'
536 name: 'openflowplugin-validate-autorelease-{stream}'
537 disabled: '{autorelease}'
545 daysToKeep: '{build-days-to-keep}'
546 numToKeep: '{build-num-to-keep}'
547 artifactDaysToKeep: '{build-artifact-days-to-keep}'
548 artifactNumToKeep: '{build-artifact-num-to-keep}'
555 - autorelease-release-tag:
556 release-tag: 'validate'
557 - autorelease-release-branch:
558 release-branch: '{branch}'
559 - autorelease-release-datestamp:
564 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
573 - autorelease-build-timeout
574 - ssh-agent-credentials:
576 - '{ssh-credentials}'
579 - gerrit-trigger-patch-submitted:
580 name: 'openflowplugin'
584 - wipe-org-opendaylight-repo
585 - jacoco-nojava-workaround
586 - autorelease-checkout-gerrit-patch
587 - autorelease-generate-taglist
588 - autorelease-generate-release-patches
590 maven-version: '{mvn33}'
591 pom: validate-pom.xml
592 goals: 'clean install -T1.5C -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
595 settings: '{autorelease-settings}'
596 global-settings: '{odl-global-settings}'
599 maven-name: '{mvn33}'
601 goals: 'clean validate -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
602 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
603 settings: '{autorelease-settings}'
604 global-settings: '{odl-global-settings}'
605 automatic-archiving: false
606 post-step-run-condition: UNSTABLE
609 - shell: "./scripts/list-project-dependencies.sh"
610 - autorelease-sys-stats
615 - email-notification:
616 email-prefix: '[autorelease] [openflowplugin]'