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}-validate-autorelease-{stream}'
233 disabled: '{obj:disable_autorelease}'
241 daysToKeep: '{build-days-to-keep}'
242 numToKeep: '{build-num-to-keep}'
243 artifactDaysToKeep: '{build-artifact-days-to-keep}'
244 artifactNumToKeep: '{build-artifact-num-to-keep}'
252 refspec: 'refs/heads/{branch}'
253 - autorelease-release-tag:
254 release-tag: 'validate'
255 - autorelease-release-branch:
256 release-branch: '{branch}'
259 default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/releng/autorelease'
260 description: "Autorelease clone URL"
265 credentials-id: 'opendaylight-jenkins-ssh'
275 - opendaylight-infra-wrappers:
276 build-timeout: '{build-timeout}'
280 server-name: 'OpenDaylight'
282 - patchset-created-event:
283 exclude-drafts: 'true'
284 exclude-trivial-rebase: 'false'
285 exclude-no-code-change: 'true'
286 - draft-published-event
287 - comment-added-contains-event:
288 comment-contains-value: 'recheck'
289 - comment-added-contains-event:
290 comment-contains-value: 'reverify'
291 - comment-added-contains-event:
292 comment-contains-value: 'revalidate'
294 - project-compare-type: 'ANT'
295 project-pattern: 'PROJECT_PATH'
297 - branch-compare-type: 'ANT'
298 branch-pattern: '**/{branch}'
304 - jacoco-nojava-workaround
305 - autorelease-checkout-gerrit-patch
306 - autorelease-generate-release-patches
308 maven-version: '{mvn33}'
309 pom: validate-pom.xml
310 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'
313 settings: 'autorelease-settings'
315 global-settings: 'odl-global-settings'
316 global-settings-type: cfp
319 maven-name: '{mvn33}'
321 goals: 'clean validate -V -B -Djenkins -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r'
322 maven-opts: '-Xmx8g -XX:MaxPermSize=1024m -Dmaven.compile.fork=true'
323 settings: 'autorelease-settings'
325 global-settings: 'odl-global-settings'
326 global-settings-type: cfp
327 automatic-archiving: false
328 post-step-run-condition: UNSTABLE
331 - autorelease-sys-stats
334 - email-notification:
335 email-prefix: '[autorelease] [{name}]'
337 maven-version: '{mvn33}'