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 - 'usecplugin-verify-{stream}'
10 - 'usecplugin-merge-{stream}'
11 - 'usecplugin-periodic-{stream}'
12 - 'usecplugin-distribution-{stream}'
13 - 'usecplugin-integration-{stream}'
15 - 'usecplugin-clm-{stream}'
16 - 'usecplugin-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
39 # For the Job templates below replace instances of:
40 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
41 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
42 # MAVEN_GOALS with your maven goals to build
43 # MAVEN_OPTS with your maven options to build
46 name: 'usecplugin-verify-{stream}'
48 # Job template for ODL verify jobs
50 # The purpose of this job template is to setup a ODL verify job
53 # stream: release stream (eg. stable-lithium or beryllium)
54 # branch: git branch (eg. stable/lithium or master)
71 daysToKeep: '{build-days-to-keep}'
72 numToKeep: '{build-num-to-keep}'
73 artifactDaysToKeep: '{build-artifact-days-to-keep}'
74 artifactNumToKeep: '{build-artifact-num-to-keep}'
81 - gerrit-refspec-parameter:
82 refspec: 'refs/heads/{branch}'
86 credentials-id: '{ssh-credentials}'
87 refspec: '$GERRIT_REFSPEC'
88 choosing-strategy: 'gerrit'
92 - ssh-agent-credentials:
97 - gerrit-trigger-patch-submitted:
102 - wipe-org-opendaylight-repo
103 - jacoco-nojava-workaround
104 - provide-maven-settings:
105 global-settings-file: '{odl-global-settings}'
106 settings-file: '{usecplugin-settings}'
108 maven-version: '{mvn33}'
110 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dstream={stream}'
112 - '-Xmx1024m -XX:MaxPermSize=256m'
113 settings: '{usecplugin-settings}'
114 global-settings: '{odl-global-settings}'
118 - email-notification:
119 email-prefix: '[usecplugin]'
123 name: 'usecplugin-merge-{stream}'
125 # Job template for ODL merge jobs
127 # The purpose of this job template is to setup a ODL merge job
128 # and deploy artifacts to Nexus.
130 # Required Variables:
131 # stream: release stream (eg. stable-lithium or beryllium)
132 # branch: git branch (eg. stable/lithium or master)
139 daysToKeep: '{build-days-to-keep}'
140 numToKeep: '{build-num-to-keep}'
141 artifactDaysToKeep: '{build-artifact-days-to-keep}'
142 artifactNumToKeep: '{build-artifact-num-to-keep}'
149 - gerrit-refspec-parameter:
150 refspec: 'refs/heads/{branch}'
153 - gerrit-trigger-scm:
154 credentials-id: '{ssh-credentials}'
156 choosing-strategy: 'default'
160 - ssh-agent-credentials:
162 - '{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: '{usecplugin-settings}'
178 maven-name: '{mvn33}'
180 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dmerge -Dstream={stream}'
181 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
182 settings: '{usecplugin-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: '{usecplugin-settings}'
206 global-settings: '{odl-global-settings}'
208 maven-version: '{mvn33}'
210 goals: 'site:deploy -Dstream={stream}'
213 settings: '{usecplugin-settings}'
214 global-settings: '{odl-global-settings}'
221 artifacts: '**/target/surefire-reports/*-output.txt, '
222 - email-notification:
223 email-prefix: '[usecplugin]'
227 deploy-unstable: false
231 name: 'usecplugin-periodic-{stream}'
232 # Temporarily disable until Rackspace networking issues are resolved
235 # Job template for periodic builders
237 # The purpose of this job template is to setup a periodic
240 # Required Variables:
241 # stream: release stream (eg. stable-lithium or beryllium)
242 # branch: git branch (eg. stable/lithium or master)
249 daysToKeep: '{build-days-to-keep}'
250 numToKeep: '{build-num-to-keep}'
251 artifactDaysToKeep: '{build-artifact-days-to-keep}'
252 artifactNumToKeep: '{build-artifact-num-to-keep}'
260 credentials-id: '{ssh-credentials}'
266 - ssh-agent-credentials:
268 - '{ssh-credentials}'
274 - wipe-org-opendaylight-repo
275 - jacoco-nojava-workaround
276 - provide-maven-settings:
277 global-settings-file: '{odl-global-settings}'
278 settings-file: '{usecplugin-settings}'
281 maven-name: '{mvn33}'
283 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
284 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
285 settings: '{usecplugin-settings}'
286 global-settings: '{odl-global-settings}'
292 - email-notification:
293 email-prefix: '[usecplugin]'
297 name: 'usecplugin-distribution-{stream}'
299 # Required variables:
300 # stream: release stream (eg. stable-lithium or beryllium)
301 # branch: git branch (eg. stable/lithium or master)
308 daysToKeep: '{build-days-to-keep}'
309 numToKeep: '{build-num-to-keep}'
310 artifactDaysToKeep: '{build-artifact-days-to-keep}'
311 artifactNumToKeep: '{build-artifact-num-to-keep}'
315 project: 'integration/distribution'
319 credentials-id: '{ssh-credentials}'
325 - ssh-agent-credentials:
327 - '{ssh-credentials}'
331 jobs: '{project}-merge-{stream}'
335 - wipe-org-opendaylight-repo
336 - provide-maven-settings:
337 global-settings-file: '{odl-global-settings}'
338 settings-file: '{usecplugin-settings}'
341 maven-name: '{mvn33}'
343 goals: 'clean install -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
344 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
345 settings: '{integration-settings}'
346 global-settings: '{odl-global-settings}'
349 - email-notification:
350 email-prefix: '[{project}]'
354 deploy-unstable: false
357 name: 'usecplugin-integration-{stream}'
358 # Temporarily disable this job until Rackspace networking issues are
363 # Job template for ODL integration verify jobs
365 # This is similar to a normal verify job, but it runs
366 # when a project that's a dependency of your project
367 # is successfully built.
369 # Required Variables:
370 # stream: release stream (eg. stable-lithium or beryllium)
371 # branch: git branch (eg. stable/lithium or master)
378 daysToKeep: '{build-days-to-keep}'
379 numToKeep: '{build-num-to-keep}'
380 artifactDaysToKeep: '{build-artifact-days-to-keep}'
381 artifactNumToKeep: '{build-artifact-num-to-keep}'
389 credentials-id: '{ssh-credentials}'
395 - ssh-agent-credentials:
397 - '{ssh-credentials}'
401 jobs: 'openflowplugin-merge-{stream},odlparent-merge-{stream},controller-merge-{stream},yangtools-merge-{stream}'
405 - wipe-org-opendaylight-repo
406 - jacoco-nojava-workaround
407 - provide-maven-settings:
408 global-settings-file: '{odl-global-settings}'
409 settings-file: '{usecplugin-settings}'
412 maven-name: '{mvn33}'
414 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins'
415 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
416 settings: '{usecplugin-settings}'
417 global-settings: '{odl-global-settings}'
423 - email-notification:
424 email-prefix: '[usecplugin] [openflowplugin] [odlparent] [controller] [yangtools]'
428 name: 'usecplugin-sonar'
429 # Temporarily disable until Rackspace networking issues are resolved
439 artifactDaysToKeep: '1'
440 artifactNumToKeep: '1'
448 credentials-id: '{ssh-credentials}'
454 - ssh-agent-credentials:
456 - '{ssh-credentials}'
460 - gerrit-trigger-patch-sonar:
464 - wipe-org-opendaylight-repo
465 - jacoco-nojava-workaround
466 - provide-maven-settings:
467 global-settings-file: '{odl-global-settings}'
468 settings-file: '{usecplugin-settings}'
471 maven-name: '{mvn33}'
473 goals: 'clean install -V -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Djenkins -Dsonar'
474 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
475 settings: '{usecplugin-settings}'
476 global-settings: '{odl-global-settings}'
484 maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
485 - email-notification:
486 email-prefix: '[usecplugin]'
490 name: 'usecplugin-clm-{stream}'
491 # Temporarily disable until Rackspace networking issues are resolved
499 daysToKeep: '{build-days-to-keep}'
500 numToKeep: '{build-num-to-keep}'
501 artifactDaysToKeep: '{build-artifact-days-to-keep}'
502 artifactNumToKeep: '{build-artifact-num-to-keep}'
510 credentials-id: '{ssh-credentials}'
516 - ssh-agent-credentials:
518 - '{ssh-credentials}'
524 - wipe-org-opendaylight-repo
525 - provide-maven-settings:
526 global-settings-file: '{odl-global-settings}'
527 settings-file: '{usecplugin-settings}'
530 maven-name: '{mvn33}'
532 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'
533 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
534 settings: '{usecplugin-settings}'
535 global-settings: '{odl-global-settings}'
538 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
540 application-name: usecplugin
543 - email-notification:
544 email-prefix: '[usecplugin]'
547 name: 'usecplugin-validate-autorelease-{stream}'
548 disabled: '{obj:disable_autorelease}'
556 daysToKeep: '{build-days-to-keep}'
557 numToKeep: '{build-num-to-keep}'
558 artifactDaysToKeep: '{build-artifact-days-to-keep}'
559 artifactNumToKeep: '{build-artifact-num-to-keep}'
566 - autorelease-release-tag:
567 release-tag: 'validate'
568 - autorelease-release-branch:
569 release-branch: '{branch}'
570 - autorelease-release-datestamp:
575 url: 'https://git.opendaylight.org/gerrit/releng/autorelease'
584 - autorelease-build-timeout
585 - ssh-agent-credentials:
587 - '{ssh-credentials}'
591 server-name: 'OpenDaylight'
593 - patchset-created-event:
594 exclude-drafts: 'false'
595 exclude-trivial-rebase: 'false'
596 exclude-no-code-change: 'false'
597 - draft-published-event
598 - comment-added-contains-event:
599 comment-contains-value: 'recheck'
600 - comment-added-contains-event:
601 comment-contains-value: 'reverify'
602 - comment-added-contains-event:
603 comment-contains-value: 'revalidate'
605 - project-compare-type: 'ANT'
606 project-pattern: 'usecplugin'
608 - branch-compare-type: 'ANT'
609 branch-pattern: '**/{branch}'
612 - wipe-org-opendaylight-repo
613 - jacoco-nojava-workaround
614 - autorelease-checkout-gerrit-patch
615 - autorelease-generate-taglist
616 - autorelease-generate-release-patches
618 maven-version: '{mvn33}'
619 pom: validate-pom.xml
620 goals: 'clean install -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
623 settings: '{autorelease-settings}'
624 global-settings: '{odl-global-settings}'
627 maven-name: '{mvn33}'
629 goals: 'clean validate -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
630 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
631 settings: '{autorelease-settings}'
632 global-settings: '{odl-global-settings}'
633 automatic-archiving: false
634 post-step-run-condition: UNSTABLE
637 - shell: "./scripts/list-project-dependencies.sh"
638 - autorelease-sys-stats
643 - email-notification:
644 email-prefix: '[autorelease] [usecplugin]'