2 # Template used for running CLM scans
4 # {name} - Project Shortname
5 # {project} - Fully qualified project name
6 # {mvn-settings} - Project maven settings file
9 name: '{name}-clm-{stream}'
16 daysToKeep: '{build-days-to-keep}'
17 numToKeep: '{build-num-to-keep}'
29 - opendaylight-infra-wrappers:
30 build-timeout: '{build-timeout}'
36 - provide-maven-settings:
37 global-settings-file: 'odl-global-settings'
38 settings-file: '{mvn-settings}'
43 goals: 'clean install com.sonatype.clm:clm-maven-plugin:index -V -B -Djenkins -DskipTests=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
44 maven-opts: '-Xmx4096m -XX:MaxPermSize=512m'
45 settings: '{mvn-settings}'
47 global-settings: 'odl-global-settings'
48 global-settings-type: cfp
51 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
53 application-name: '{name}'
57 email-prefix: '[{name}]'
59 maven-version: '{mvn33}'
62 name: '{name}-distribution-{stream}'
65 # stream: release stream (eg. stable-lithium or beryllium)
66 # branch: git branch (eg. stable/lithium or master)
73 daysToKeep: '{build-days-to-keep}'
74 numToKeep: '{build-num-to-keep}'
75 artifactDaysToKeep: '{build-artifact-days-to-keep}'
76 artifactNumToKeep: '{build-artifact-num-to-keep}'
80 project: 'integration/distribution'
88 - opendaylight-infra-wrappers:
89 build-timeout: '{build-timeout}'
93 jobs: '{project}-merge-{stream}'
97 - provide-maven-settings:
98 global-settings-file: 'odl-global-settings'
99 settings-file: '{mvn-settings}'
102 maven-name: '{mvn33}'
104 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
105 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
106 settings: 'integration-distribution-settings'
108 global-settings: 'odl-global-settings'
109 global-settings-type: cfp
112 - email-notification:
113 email-prefix: '[{project}]'
117 deploy-unstable: false
119 maven-version: '{mvn33}'
122 # Template: integration-patch-distribution-{stream}
123 # Goal: Build a patch and make sure the distribution can deploy with this change
124 # Operation: This job template builds a patch, creates a distribution containing
125 # the patch, and triggers the distribution deploy test
127 name: '{name}-distribution-check-{stream}'
128 disabled: '{obj:disable_distribution_check}'
136 daysToKeep: '{build-days-to-keep}'
137 numToKeep: '{build-num-to-keep}'
138 artifactDaysToKeep: '{build-artifact-days-to-keep}'
139 artifactNumToKeep: '{build-artifact-num-to-keep}'
145 refspec: 'refs/heads/{branch}'
148 - integration-distribution-git-url
151 - integration-gerrit-scm:
152 basedir: '$GERRIT_PROJECT'
153 refspec: '$GERRIT_REFSPEC'
155 - integration-distribution-scm:
159 - opendaylight-infra-wrappers:
160 build-timeout: '{build-timeout}'
164 server-name: 'OpenDaylight'
166 - patchset-created-event:
167 exclude-drafts: 'true'
168 exclude-trivial-rebase: 'false'
169 exclude-no-code-change: 'true'
170 - draft-published-event
171 - comment-added-contains-event:
172 comment-contains-value: 'test-distribution'
173 - comment-added-contains-event:
174 comment-contains-value: 'reverify'
175 - comment-added-contains-event:
176 comment-contains-value: 'recheck'
178 - project-compare-type: 'ANT'
179 project-pattern: '{name}'
181 - branch-compare-type: 'ANT'
182 branch-pattern: '**/{branch}'
191 maven-version: '{mvn33}'
192 pom: '$GERRIT_PROJECT/pom.xml'
193 goals: 'clean install -V -B -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -DgenerateReports=false -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -Dstream={stream}'
195 - '-Xmx4096m -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
196 settings: '{mvn-settings}'
198 global-settings: 'odl-global-settings'
199 global-settings-type: cfp
202 maven-name: '{mvn33}'
203 root-pom: 'distribution/pom.xml'
204 goals: 'clean install -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
205 maven-opts: '-Xmx1024m -XX:MaxPermSize=256m -Dmaven.compile.fork=true'
206 settings: '{mvn-settings}'
208 global-settings: 'odl-global-settings'
209 global-settings-type: cfp
210 ignore-upstream-changes: true
211 post-step-run-condition: 'SUCCESS'
214 - integration-distribution-check
217 - email-notification:
218 email-prefix: '[{name}]'
223 mkdir -p $WORKSPACE/archives
224 cp karaf*.log $WORKSPACE/archives
225 script-only-if-succeeded: False
226 script-only-if-failed: False
227 mark-unstable-if-failed: True
229 maven-version: '{mvn33}'
232 name: '{name}-integration-{stream}'
234 # Job template for ODL integration verify jobs
236 # This is similar to a normal verify job, but it runs
237 # when a project that's a dependency of your project
238 # is successfully built.
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}'
264 - opendaylight-infra-wrappers:
265 build-timeout: '{build-timeout}'
269 jobs: '{dependencies}'
273 - jacoco-nojava-workaround
274 - provide-maven-settings:
275 global-settings-file: 'odl-global-settings'
276 settings-file: '{mvn-settings}'
279 maven-name: '{mvn33}'
280 goals: '{mvn-goals} -V -B -Djenkins'
281 maven-opts: '{mvn-opts}'
282 settings: '{mvn-settings}'
284 global-settings: 'odl-global-settings'
285 global-settings-type: cfp
291 - email-notification:
292 email-prefix: '{email-upstream}'
295 maven-version: '{mvn33}'
298 name: '{name}-periodic-{stream}'
300 # Job template for periodic builders
302 # The purpose of this job template is to setup a periodic
305 # Required Variables:
306 # stream: release stream (eg. stable-lithium or beryllium)
307 # branch: git branch (eg. stable/lithium or master)
326 - opendaylight-infra-wrappers:
327 build-timeout: '{build-timeout}'
333 - jacoco-nojava-workaround
334 - provide-maven-settings:
335 global-settings-file: 'odl-global-settings'
336 settings-file: '{mvn-settings}'
339 maven-name: '{mvn33}'
340 goals: '{mvn-goals} -V -B -Djenkins'
341 maven-opts: '{mvn-opts}'
342 settings: '{mvn-settings}'
344 global-settings: 'odl-global-settings'
345 global-settings-type: cfp
351 - email-notification:
352 email-prefix: '[{name}]'
355 maven-version: '{mvn33}'
358 name: '{name}-validate-autorelease-{stream}'
359 disabled: '{obj:disable_autorelease}'
367 daysToKeep: '{build-days-to-keep}'
368 numToKeep: '{build-num-to-keep}'
369 artifactDaysToKeep: '{build-artifact-days-to-keep}'
370 artifactNumToKeep: '{build-artifact-num-to-keep}'
378 refspec: 'refs/heads/{branch}'
379 - autorelease-release-tag:
380 release-tag: 'validate'
381 - autorelease-release-branch:
382 release-branch: '{branch}'
385 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
386 description: "Autorelease clone URL"
391 credentials-id: 'opendaylight-jenkins-ssh'
401 - opendaylight-infra-wrappers:
402 build-timeout: '{build-timeout}'
406 server-name: 'OpenDaylight'
408 - patchset-created-event:
409 exclude-drafts: 'true'
410 exclude-trivial-rebase: 'false'
411 exclude-no-code-change: 'true'
412 - draft-published-event
413 - comment-added-contains-event:
414 comment-contains-value: 'recheck'
415 - comment-added-contains-event:
416 comment-contains-value: 'reverify'
417 - comment-added-contains-event:
418 comment-contains-value: 'revalidate'
420 - project-compare-type: 'ANT'
421 project-pattern: 'PROJECT_PATH'
423 - branch-compare-type: 'ANT'
424 branch-pattern: '**/{branch}'
430 - jacoco-nojava-workaround
431 - autorelease-checkout-gerrit-patch
432 - autorelease-generate-release-patches
434 maven-version: '{mvn33}'
435 pom: validate-pom.xml
436 goals: 'clean install -V -B -T1.5C -Djenkins -DskipTests -Dcheckstyle.skip=true -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
439 settings: 'autorelease-settings'
441 global-settings: 'odl-global-settings'
442 global-settings-type: cfp
445 maven-name: '{mvn33}'
447 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
448 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
449 settings: 'autorelease-settings'
451 global-settings: 'odl-global-settings'
452 global-settings-type: cfp
453 automatic-archiving: false
454 post-step-run-condition: UNSTABLE
457 - autorelease-sys-stats
460 - email-notification:
461 email-prefix: '[autorelease] [{name}]'
463 maven-version: '{mvn33}'