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