3 # Template used for running CLM scans
5 # {name} - Project Shortname
6 # {project} - Fully qualified project name
7 # {mvn-settings} - Project maven settings file
10 name: '{project-name}-clm-{stream}'
12 project-type: freestyle
17 - opendaylight-infra-properties:
18 build-days-to-keep: '{build-days-to-keep}'
21 - opendaylight-infra-parameters:
22 os-cloud: '{os-cloud}'
25 refspec: 'refs/heads/{branch}'
26 artifacts: '{archive-artifacts}'
34 - opendaylight-infra-wrappers:
35 build-timeout: '{build-timeout}'
41 - provide-maven-settings:
42 global-settings-file: 'global-settings'
43 settings-file: '{mvn-settings}'
45 maven-version: 'mvn33'
48 clean install dependency:tree com.sonatype.clm:clm-maven-plugin:index
50 {opendaylight-infra-mvn-opts}
52 - '-Xmx4096m -XX:MaxPermSize=512m'
53 settings: '{mvn-settings}'
55 global-settings: 'global-settings'
56 global-settings-type: cfp
57 - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
59 application-name: '{project-name}'
63 email-recipients: '{email-recipients}'
64 email-prefix: '[{project-name}]'
68 name: '{project-name}-integration-{stream}'
70 # Job template for ODL integration verify jobs
72 # This is similar to a normal verify job, but it runs
73 # when a project that's a dependency of your project
74 # is successfully built.
77 # stream: release stream (eg. boron or carbon)
78 # branch: git branch (eg. stable/boron or master)
80 project-type: freestyle
85 - opendaylight-infra-properties:
86 build-days-to-keep: '{build-days-to-keep}'
89 - opendaylight-infra-parameters:
90 os-cloud: '{os-cloud}'
93 refspec: 'refs/heads/{branch}'
94 artifacts: '{archive-artifacts}'
102 - opendaylight-infra-wrappers:
103 build-timeout: '{build-timeout}'
107 jobs: '{dependencies}'
111 - jacoco-nojava-workaround
112 - provide-maven-settings:
113 global-settings-file: 'global-settings'
114 settings-file: '{mvn-settings}'
116 maven-version: 'mvn33'
119 {opendaylight-infra-mvn-opts}
122 settings: '{mvn-settings}'
124 global-settings: 'global-settings'
125 global-settings-type: cfp
128 - email-notification:
129 email-recipients: '{email-recipients}'
130 email-prefix: '{email-upstream}'
136 name: '{project-name}-merge-{stream}'
138 # Job template for ODL merge jobs
140 # The purpose of this job template is to setup a ODL merge job
141 # and deploy artifacts to Nexus.
143 # Required Variables:
144 # stream: release stream (eg. boron or carbon)
145 # branch: git branch (eg. stable/boron or master)
147 # Need to keep jobs that deploy to Nexus at end of build as Maven
148 # projects. Maybe reconsider this once upstream moves deploy to a
149 # separate lifecycle:
150 # https://issues.apache.org/jira/browse/MNG-5666
156 - opendaylight-infra-properties:
157 build-days-to-keep: 14
160 - opendaylight-infra-parameters:
161 os-cloud: '{os-cloud}'
164 refspec: 'refs/heads/{branch}'
165 artifacts: '{archive-artifacts}'
169 description: "String representing release name"
172 - gerrit-trigger-scm:
174 choosing-strategy: 'default'
177 - opendaylight-infra-wrappers:
178 build-timeout: '{build-timeout}'
182 - gerrit-trigger-patch-merged:
183 server-name: '{server-name}'
188 - jacoco-nojava-workaround
189 - provide-maven-settings:
190 global-settings-file: 'global-settings'
191 settings-file: '{mvn-settings}'
193 # TODO: Do we want to apply sophisticated checks as in *-distribution-check-*?
200 {opendaylight-infra-mvn-opts}
201 maven-opts: '{mvn-opts}'
202 settings: '{mvn-settings}'
204 global-settings: 'global-settings'
205 global-settings-type: cfp
206 post-step-run-condition: UNSTABLE
210 condition-kind: file-exists
211 condition-filename: deploy-site.xml
212 condition-basedir: workspace
214 # The strategy here is intentional to run Maven site:deploy twice
215 # once using regular pom.xml to produce a staged-site which is
216 # then used by deploy-site.xml to push to Nexus. This is a
217 # workaround to Maven Site's default linking code which creates
218 # incorrect URLs for sites due to auto-detection assuming your
219 # project is configured in a certain way which ODL is not.
222 maven-version: 'mvn33'
224 goals: 'site:deploy -V -B -Dstream={stream}'
227 settings: '{mvn-settings}'
229 global-settings: 'global-settings'
230 global-settings-type: cfp
231 - opendaylight-infra-deploy-maven-site:
232 settings-file: '{mvn-settings}'
238 - email-notification:
239 email-recipients: '{email-recipients}'
240 email-prefix: '[{project-name}]'
244 deploy-unstable: false
248 project: 'distribution-merge-{stream}'
252 name: '{project-name}-sonar'
255 project-type: freestyle
260 - opendaylight-infra-properties:
261 build-days-to-keep: 7
264 - opendaylight-infra-parameters:
265 os-cloud: '{os-cloud}'
268 refspec: 'refs/heads/{branch}'
269 artifacts: '{archive-artifacts}'
277 - opendaylight-infra-wrappers:
278 build-timeout: '{build-timeout}'
282 - gerrit-trigger-patch-sonar:
283 server-name: '{server-name}'
285 # FIXME: Make sure this does not alter Gerrit votes, then update docs.
288 - jacoco-nojava-workaround
289 - provide-maven-settings:
290 global-settings-file: 'global-settings'
291 settings-file: '{mvn-settings}'
293 maven-version: 'mvn33'
297 {opendaylight-infra-mvn-opts}
300 settings: '{mvn-settings}'
302 global-settings: 'global-settings'
303 global-settings-type: cfp
305 maven-version: 'mvn33'
306 # We should switch to the recommended configuration of sonar once
307 # JJB adds support for configurating the Sonar wrapper:
308 # http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
312 -Dsonar.host.url=https://sonar.opendaylight.org
313 {opendaylight-infra-mvn-opts}
316 settings: '{mvn-settings}'
318 global-settings: 'global-settings'
319 global-settings-type: cfp
322 - email-notification:
323 email-recipients: '{email-recipients}'
324 email-prefix: '[{project-name}]'
330 name: '{project-name}-verify-{stream}-{maven}-{jdks}'
332 # Job template for ODL verify jobs
334 # The purpose of this job template is to setup a ODL verify job
336 # Required Variables:
337 # stream: release stream (eg. boron or carbon)
338 # branch: git branch (eg. stable/boron or master)
340 project-type: freestyle
346 - opendaylight-infra-properties:
347 build-days-to-keep: 7
350 - opendaylight-infra-parameters:
351 os-cloud: '{os-cloud}'
354 refspec: 'refs/heads/{branch}'
355 artifacts: '{archive-artifacts}'
358 - gerrit-trigger-scm:
359 refspec: '$GERRIT_REFSPEC'
360 choosing-strategy: 'gerrit'
363 - opendaylight-infra-wrappers:
364 build-timeout: '{build-timeout}'
367 - gerrit-trigger-patch-submitted:
368 server: '{server-name}'
374 - jacoco-nojava-workaround
375 - provide-maven-settings:
376 global-settings-file: 'global-settings'
377 settings-file: '{mvn-settings}'
379 maven-version: '{mvn-version}'
383 {opendaylight-infra-mvn-opts}
386 settings: '{mvn-settings}'
388 global-settings: 'global-settings'
389 global-settings-type: cfp
393 - email-notification:
394 email-recipients: '{email-recipients}'
395 email-prefix: '[{project-name}]'