Update automated project templates
[releng/builder.git] / jjb / dlux / dlux.yaml
1 # REMOVE THIS LINE IF YOU WANT TO CUSTOMIZE ANYTHING BELOW
2 # Otherwise this file will be automatically overwritten by the template
3 # autobuilder.
4
5 # ODL Releng build templates
6 - project:
7     name: dlux
8     jobs:
9         - '{name}-clm-{stream}'
10         - '{name}-distribution-{stream}'
11         - '{name}-distribution-check-{stream}'
12         - '{name}-integration-{stream}'
13         - '{name}-periodic-{stream}'
14         - '{name}-validate-autorelease-{stream}'
15         - 'dlux-verify-{stream}'
16         - 'dlux-merge-{stream}'
17         - 'dlux-sonar'
18
19
20     # stream:    release stream (eg. stable-lithium or beryllium)
21     # branch:    git branch (eg. stable/lithium or master)
22     stream:
23         - boron:
24             branch: 'master'
25             jdk: openjdk8
26             jdks:
27                 - openjdk8
28             disable_autorelease: False
29             disable_distribution_check: False
30         - beryllium:
31             branch: 'stable/beryllium'
32             jdk: openjdk7
33             jdks:
34                 - openjdk7
35                 - openjdk8
36             disable_autorelease: False
37             disable_distribution_check: False
38         - stable-lithium:
39             branch: 'stable/lithium'
40             jdk: openjdk7
41             jdks:
42                 - openjdk7
43             disable_autorelease: True
44             disable_distribution_check: True
45
46     project: 'dlux'
47     mvn-settings: 'dlux-settings'
48     mvn-goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r '
49     mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m'
50     dependencies: 'odlparent-merge-{stream}'
51     email-upstream: '[dlux] [odlparent]'
52
53 # For the Job templates below replace instances of:
54 # PROJECT_SHORTNAME with your project name (eg. circuitsw)
55 # PROJECT_PATH with your project name (eg. ofextensions/circuitsw)
56 # MAVEN_GOALS with your maven goals to build
57 # MAVEN_OPTS with your maven options to build
58
59 - job-template:
60     name: 'dlux-verify-{stream}'
61
62     # Job template for ODL verify jobs
63     #
64     # The purpose of this job template is to setup a ODL verify job
65     #
66     # Required Variables:
67     #     stream:    release stream (eg. stable-lithium or beryllium)
68     #     branch:    git branch (eg. stable/lithium or master)
69
70     project-type: matrix
71     node: matrix_master
72     concurrent: true
73
74     axes:
75         - axis:
76             type: slave
77             name: nodes
78             values:
79                 - dynamic_verify
80         - axis:
81             type: jdk
82             values: '{obj:jdks}'
83
84     logrotate:
85         daysToKeep: '14'
86
87     parameters:
88         - project-parameter:
89             project: '{project}'
90         - gerrit-parameters:
91             project: '{project}'
92             branch: '{branch}'
93             refspec: 'refs/heads/{branch}'
94
95     scm:
96         - gerrit-trigger-scm:
97             refspec: '$GERRIT_REFSPEC'
98             choosing-strategy: 'gerrit'
99
100     wrappers:
101         - opendaylight-infra-wrappers:
102             build-timeout: '{build-timeout}'
103
104     triggers:
105         - gerrit-trigger-patch-submitted:
106             name: 'dlux'
107             branch: '{branch}'
108
109     builders:
110         - jacoco-nojava-workaround
111         - provide-maven-settings:
112             global-settings-file: 'odl-global-settings'
113             settings-file: 'dlux-settings'
114         - maven-target:
115             maven-version: '{mvn33}'
116             pom: 'pom.xml'
117             goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -V -B -Djenkins -Dstream={stream}'
118             java-opts:
119                 - '-Xmx1024m -XX:MaxPermSize=256m'
120             settings: 'dlux-settings'
121             settings-type: cfp
122             global-settings: 'odl-global-settings'
123             global-settings-type: cfp
124
125     publishers:
126         - archive-artifacts:
127             artifacts: '**/target/surefire-reports/*-output.txt, '
128         - findbugs
129         - email-notification:
130             email-prefix: '[dlux]'
131         - jacoco-report
132         - archive-build:
133             maven-version: '{mvn33}'
134
135 - job-template:
136     name: 'dlux-merge-{stream}'
137
138     # Job template for ODL merge jobs
139     #
140     # The purpose of this job template is to setup a ODL merge job
141     # and deploy artifacts to Nexus.
142     #
143     # Required Variables:
144     #     stream:    release stream (eg. stable-lithium or beryllium)
145     #     branch:    git branch (eg. stable/lithium or master)
146
147     project-type: maven
148     node: dynamic_merge
149     jdk: '{jdk}'
150
151     logrotate:
152         daysToKeep: '14'
153         numToKeep: '10'
154         artifactDaysToKeep: '{build-artifact-days-to-keep}'
155         artifactNumToKeep: '{build-artifact-num-to-keep}'
156
157     parameters:
158         - project-parameter:
159             project: '{project}'
160         - gerrit-parameters:
161             project: '{project}'
162             branch: '{branch}'
163             refspec: 'refs/heads/{branch}'
164
165     scm:
166         - gerrit-trigger-scm:
167             refspec: ''
168             choosing-strategy: 'default'
169
170     wrappers:
171         - opendaylight-infra-wrappers:
172             build-timeout: '{build-timeout}'
173
174     triggers:
175         - timed: 'H H * * 0'
176         - gerrit-trigger-patch-merged:
177             name: 'dlux'
178             branch: '{branch}'
179
180     prebuilders:
181         - jacoco-nojava-workaround
182         - provide-maven-settings:
183             global-settings-file: 'odl-global-settings'
184             settings-file: 'dlux-settings'
185
186     maven:
187         maven-name: '{mvn33}'
188         root-pom: 'pom.xml'
189         goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -V -B -Djenkins -Dmerge -Dstream={stream}'
190         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
191         settings: 'dlux-settings'
192         settings-type: cfp
193         global-settings: 'odl-global-settings'
194         global-settings-type: cfp
195         post-step-run-condition: UNSTABLE
196
197     postbuilders:
198         - conditional-step:
199             condition-kind: file-exists
200             condition-filename: deploy-site.xml
201             condition-basedir: workspace
202
203             # The strategy here is intentional to run Maven site:deploy twice
204             # once using regular pom.xml to produce a staged-site which is
205             # then used by deploy-site.xml to push to Nexus. This is a
206             # workaround to Maven Site's default linking code which creates
207             # incorrect URLs for sites due to auto-detection assuming your
208             # project is configured in a certain way which ODL is not.
209             steps:
210             - maven-target:
211                 maven-version: '{mvn33}'
212                 pom: pom.xml
213                 goals: 'site:deploy -V -B -Dstream={stream}'
214                 java-opts:
215                     - '-Xmx2g'
216                 settings: 'dlux-settings'
217                 settings-type: cfp
218                 global-settings: 'odl-global-settings'
219                 global-settings-type: cfp
220             - maven-target:
221                 maven-version: '{mvn33}'
222                 pom: deploy-site.xml
223                 goals: 'site:deploy -V -B -Dstream={stream}'
224                 java-opts:
225                     - '-Xmx2g'
226                 settings: 'dlux-settings'
227                 settings-type: cfp
228                 global-settings: 'odl-global-settings'
229                 global-settings-type: cfp
230
231     reporters:
232         - findbugs
233
234     publishers:
235         - archive-artifacts:
236             artifacts: '**/target/surefire-reports/*-output.txt, '
237         - email-notification:
238             email-prefix: '[dlux]'
239         - maven-deploy:
240             id: ''
241             unique-version: true
242             deploy-unstable: false
243         - jacoco-report
244         - archive-build:
245             maven-version: '{mvn33}'
246
247 - job-template:
248     name: 'dlux-sonar'
249     disabled: false
250
251     project-type: maven
252     node: dynamic_verify
253     jdk: 'openjdk8'
254
255     logrotate:
256         daysToKeep: '7'
257         numToKeep: '10'
258         artifactDaysToKeep: '1'
259         artifactNumToKeep: '1'
260
261     parameters:
262         - project-parameter:
263             project: '{project}'
264
265     scm:
266         - git-scm:
267             refspec: ''
268             branch: 'master'
269
270     wrappers:
271         - opendaylight-infra-wrappers:
272             build-timeout: '{build-timeout}'
273
274     triggers:
275         - timed: 'H H * * 6'
276         - gerrit-trigger-patch-sonar:
277             name: 'dlux'
278
279     prebuilders:
280         - jacoco-nojava-workaround
281         - provide-maven-settings:
282             global-settings-file: 'odl-global-settings'
283             settings-file: 'dlux-settings'
284
285     maven:
286         maven-name: '{mvn33}'
287         root-pom: 'pom.xml'
288         goals: 'clean install -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r  -V -B -Djenkins -Dsonar'
289         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
290         settings: 'dlux-settings'
291         settings-type: cfp
292         global-settings: 'odl-global-settings'
293         global-settings-type: cfp
294
295     reporters:
296         - findbugs
297
298     publishers:
299         - sonar:
300             language: 'java'
301             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
302         - email-notification:
303             email-prefix: '[dlux]'
304         - jacoco-report
305         - archive-build:
306             maven-version: '{mvn33}'
307