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}-validate-autorelease-{stream}'
299 disabled: '{obj:disable_autorelease}'
307 daysToKeep: '{build-days-to-keep}'
308 numToKeep: '{build-num-to-keep}'
309 artifactDaysToKeep: '{build-artifact-days-to-keep}'
310 artifactNumToKeep: '{build-artifact-num-to-keep}'
318 refspec: 'refs/heads/{branch}'
319 - autorelease-release-tag:
320 release-tag: 'validate'
321 - autorelease-release-branch:
322 release-branch: '{branch}'
325 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
326 description: "Autorelease clone URL"
331 credentials-id: 'opendaylight-jenkins-ssh'
341 - opendaylight-infra-wrappers:
342 build-timeout: '{build-timeout}'
346 server-name: 'OpenDaylight'
348 - patchset-created-event:
349 exclude-drafts: 'true'
350 exclude-trivial-rebase: 'false'
351 exclude-no-code-change: 'true'
352 - draft-published-event
353 - comment-added-contains-event:
354 comment-contains-value: 'recheck'
355 - comment-added-contains-event:
356 comment-contains-value: 'reverify'
357 - comment-added-contains-event:
358 comment-contains-value: 'revalidate'
360 - project-compare-type: 'ANT'
361 project-pattern: 'PROJECT_PATH'
363 - branch-compare-type: 'ANT'
364 branch-pattern: '**/{branch}'
370 - jacoco-nojava-workaround
371 - autorelease-checkout-gerrit-patch
372 - autorelease-generate-release-patches
374 maven-version: '{mvn33}'
375 pom: validate-pom.xml
376 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'
379 settings: 'autorelease-settings'
381 global-settings: 'odl-global-settings'
382 global-settings-type: cfp
385 maven-name: '{mvn33}'
387 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
388 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
389 settings: 'autorelease-settings'
391 global-settings: 'odl-global-settings'
392 global-settings-type: cfp
393 automatic-archiving: false
394 post-step-run-condition: UNSTABLE
397 - autorelease-sys-stats
400 - email-notification:
401 email-prefix: '[autorelease] [{name}]'
403 maven-version: '{mvn33}'