Merge "Rename job to match format used by other jobs"
[releng/builder.git] / jjb / tsdr / tsdr.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: tsdr
8     jobs:
9         - 'tsdr-verify-{stream}'
10         - 'tsdr-merge-{stream}'
11         - 'tsdr-daily-{stream}'
12         - 'tsdr-integration-{stream}'
13         - 'tsdr-sonar'
14
15     # stream:    branch with - in place of / (eg. stable-helium)
16     # branch:    branch (eg. stable/helium)
17     stream:
18         - master:
19             branch: 'master'
20
21     project: 'tsdr'
22     jdk: 'openjdk7'
23
24 # For the Job templates below replace instances of:
25 # PROJECT with your project name (eg. controller)
26 # MAVEN_GOALS with your maven goals to build
27 # MAVEN_OPTS with your maven options to build
28
29 - job-template:
30     name: 'tsdr-verify-{stream}'
31
32     # Job template for ODL verify jobs
33     #
34     # The purpose of this job template is to setup a ODL verify job
35     #
36     # Required Variables:
37     #     stream:    branch with - in place of / (eg. stable-helium)
38     #     branch:    branch (eg. stable/helium)
39
40     project-type: maven
41     node: dynamic_verify
42     concurrent: true
43     jdk: '{jdk}'
44
45     logrotate:
46         daysToKeep: '{build-days-to-keep}'
47         numToKeep: '{build-num-to-keep}'
48         artifactDaysToKeep: '{build-artifact-days-to-keep}'
49         artifactNumToKeep: '{build-artifact-num-to-keep}'
50
51     parameters:
52         - project-parameter:
53             project: '{project}'
54         - gerrit-parameter:
55             branch: '{branch}'
56
57     scm:
58         - gerrit-trigger-scm:
59             credentials-id: '{ssh-credentials}'
60             refspec: '$GERRIT_REFSPEC'
61             choosing-strategy: 'gerrit'
62
63     wrappers:
64         - build-timeout
65         - ssh-agent-credentials:
66             user: '{ssh-credentials}'
67
68     triggers:
69         - gerrit-trigger-patch-submitted:
70             name: 'tsdr'
71             branch: '{branch}'
72
73     maven:
74         maven-name: '{mvn32}'
75         root-pom: 'pom.xml'
76         goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo'
77         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
78         settings: '{tsdr-settings}'
79         global-settings: '{odl-global-settings}'
80         ignore-upstream-changes: true
81
82     publishers:
83         - email-notification:
84             email-prefix: '[tsdr]'
85
86 - job-template:
87     name: 'tsdr-merge-{stream}'
88
89     # Job template for ODL merge jobs
90     #
91     # The purpose of this job template is to setup a ODL merge job
92     # and deploy artifacts to Nexus.
93     #
94     # Required Variables:
95     #     stream:    branch with - in place of / (eg. stable-helium)
96     #     branch:    branch (eg. stable/helium)
97
98     project-type: maven
99     node: dynamic_merge
100     jdk: '{jdk}'
101
102     logrotate:
103         daysToKeep: '{build-days-to-keep}'
104         numToKeep: '{build-num-to-keep}'
105         artifactDaysToKeep: '{build-artifact-days-to-keep}'
106         artifactNumToKeep: '{build-artifact-num-to-keep}'
107
108     parameters:
109         - project-parameter:
110             project: '{project}'
111
112     scm:
113         - gerrit-trigger-scm:
114             credentials-id: '{ssh-credentials}'
115             refspec: ''
116             choosing-strategy: 'default'
117
118     wrappers:
119         - build-timeout
120         - ssh-agent-credentials:
121             user: '{ssh-credentials}'
122
123     triggers:
124         - gerrit-trigger-patch-merged:
125             name: 'tsdr'
126             branch: '{branch}'
127
128     maven:
129         maven-name: '{mvn32}'
130         root-pom: 'pom.xml'
131         goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo'
132         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
133         settings: '{tsdr-settings}'
134         global-settings: '{odl-global-settings}'
135
136     publishers:
137         - email-notification:
138             email-prefix: '[tsdr]'
139         - maven-deploy:
140             id: ''
141             unique-version: true
142             deploy-unstable: false
143
144 - job-template:
145     name: 'tsdr-daily-{stream}'
146
147     # Job template for daily builders
148     #
149     # The purpose of this job template is to setup a daily/nightly
150     # builder and pushes to Sonar analysis.
151     #
152     # Required Variables:
153     #     stream:    branch with - in place of / (eg. stable-helium)
154     #     branch:    branch (eg. stable/helium)
155
156     project-type: maven
157     node: dynamic_verify
158     jdk: '{jdk}'
159
160     logrotate:
161         daysToKeep: '{build-days-to-keep}'
162         numToKeep: '{build-num-to-keep}'
163         artifactDaysToKeep: '{build-artifact-days-to-keep}'
164         artifactNumToKeep: '{build-artifact-num-to-keep}'
165
166     parameters:
167         - project-parameter:
168             project: '{project}'
169
170     scm:
171         - git-scm:
172             credentials-id: '{ssh-credentials}'
173             refspec: ''
174             branch: '{branch}'
175
176     wrappers:
177         - build-timeout
178         - ssh-agent-credentials:
179             user: '{ssh-credentials}'
180
181     triggers:
182         - timed: 'H H * * *'
183
184     maven:
185         maven-name: '{mvn32}'
186         root-pom: 'pom.xml'
187         goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo'
188         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
189         settings: '{tsdr-settings}'
190         global-settings: '{odl-global-settings}'
191
192     publishers:
193         - email-notification:
194             email-prefix: '[tsdr]'
195
196 - job-template:
197     name: 'tsdr-integration-{stream}'
198     disabled: true
199
200     # Job template for ODL merge jobs
201     #
202     # The purpose of this job template is to setup a ODL merge job
203     # and deploy artifacts to Nexus.
204     #
205     # Required Variables:
206     #     stream:    branch with - in place of / (eg. stable-helium)
207     #     branch:    branch (eg. stable/helium)
208
209     project-type: maven
210     node: dynamic_merge
211     jdk: '{jdk}'
212
213     logrotate:
214         daysToKeep: '{build-days-to-keep}'
215         numToKeep: '{build-num-to-keep}'
216         artifactDaysToKeep: '{build-artifact-days-to-keep}'
217         artifactNumToKeep: '{build-artifact-num-to-keep}'
218
219     parameters:
220         - project-parameter:
221             project: '{project}'
222
223     scm:
224         - git-scm:
225             credentials-id: '{ssh-credentials}'
226             refspec: ''
227             branch: '{branch}'
228
229     wrappers:
230         - build-timeout
231         - ssh-agent-credentials:
232             user: '{ssh-credentials}'
233
234     triggers:
235         - reverse:
236             jobs: ''
237             result: 'success'
238
239     maven:
240         maven-name: '{mvn32}'
241         root-pom: 'pom.xml'
242         goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo'
243         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
244         settings: '{tsdr-settings}'
245         global-settings: '{odl-global-settings}'
246
247     publishers:
248         - email-notification:
249             email-prefix: '[tsdr]'
250         - maven-deploy:
251             id: ''
252             unique-version: true
253             deploy-unstable: false
254
255 - job-template:
256     name: 'tsdr-sonar'
257
258     project-type: maven
259     node: dynamic_verify
260     jdk: '{jdk}'
261
262     logrotate:
263         daysToKeep: '7'
264         numToKeep: '10'
265         artifactDaysToKeep: '1'
266         artifactNumToKeep: '1'
267
268     parameters:
269         - project-parameter:
270             project: '{project}'
271
272     scm:
273         - git-scm:
274             credentials-id: '{ssh-credentials}'
275             refspec: ''
276             branch: 'master'
277
278     wrappers:
279         - build-timeout
280         - ssh-agent-credentials:
281             user: '{ssh-credentials}'
282
283     triggers:
284         - timed: 'H H * * *'
285
286     maven:
287         maven-name: '{mvn32}'
288         root-pom: 'pom.xml'
289         goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo'
290         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
291         settings: '{tsdr-settings}'
292         global-settings: '{odl-global-settings}'
293
294     publishers:
295         - sonar:
296             language: 'java'
297             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
298         - email-notification:
299             email-prefix: '[tsdr]'