Merge "Add source:jar and javadoc:jar to integration job"
[releng/builder.git] / jjb / snmp / snmp.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: snmp
8     jobs:
9         - 'snmp-verify-{stream}'
10         - 'snmp-merge-{stream}'
11         - 'snmp-daily-{stream}'
12         - 'snmp-integration-{stream}'
13         - 'snmp-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: 'snmp'
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: 'snmp-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: 'snmp'
71             branch: '{branch}'
72
73     maven:
74         maven-name: '{mvn32}'
75         root-pom: 'pom.xml'
76         goals: 'clean install -V -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo '
77         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
78         settings: '{snmp-settings}'
79         global-settings: '{odl-global-settings}'
80         ignore-upstream-changes: true
81
82     publishers:
83         - email-notification:
84             email-prefix: '[snmp]'
85
86 - job-template:
87     name: 'snmp-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: 'snmp'
126             branch: '{branch}'
127
128     maven:
129         maven-name: '{mvn32}'
130         root-pom: 'pom.xml'
131         goals: 'clean install -V -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo  source:jar javadoc:jar'
132         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
133         settings: '{snmp-settings}'
134         global-settings: '{odl-global-settings}'
135
136     publishers:
137         - email-notification:
138             email-prefix: '[snmp]'
139         - maven-deploy:
140             id: ''
141             unique-version: true
142             deploy-unstable: false
143
144 - job-template:
145     name: 'snmp-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 -V -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo '
188         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
189         settings: '{snmp-settings}'
190         global-settings: '{odl-global-settings}'
191
192     publishers:
193         - email-notification:
194             email-prefix: '[snmp]'
195         - jacoco-report
196
197 - job-template:
198     name: 'snmp-integration-{stream}'
199     disabled: true
200
201     # Job template for ODL merge jobs
202     #
203     # The purpose of this job template is to setup a ODL merge job
204     # and deploy artifacts to Nexus.
205     #
206     # Required Variables:
207     #     stream:    branch with - in place of / (eg. stable-helium)
208     #     branch:    branch (eg. stable/helium)
209
210     project-type: maven
211     node: dynamic_merge
212     jdk: '{jdk}'
213
214     logrotate:
215         daysToKeep: '{build-days-to-keep}'
216         numToKeep: '{build-num-to-keep}'
217         artifactDaysToKeep: '{build-artifact-days-to-keep}'
218         artifactNumToKeep: '{build-artifact-num-to-keep}'
219
220     parameters:
221         - project-parameter:
222             project: '{project}'
223
224     scm:
225         - git-scm:
226             credentials-id: '{ssh-credentials}'
227             refspec: ''
228             branch: '{branch}'
229
230     wrappers:
231         - build-timeout
232         - ssh-agent-credentials:
233             user: '{ssh-credentials}'
234
235     triggers:
236         - reverse:
237             jobs: ''
238             result: 'success'
239
240     maven:
241         maven-name: '{mvn32}'
242         root-pom: 'pom.xml'
243         goals: 'clean install -V -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo '
244         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
245         settings: '{snmp-settings}'
246         global-settings: '{odl-global-settings}'
247
248     publishers:
249         - email-notification:
250             email-prefix: '[snmp]'
251         - maven-deploy:
252             id: ''
253             unique-version: true
254             deploy-unstable: false
255
256 - job-template:
257     name: 'snmp-sonar'
258
259     project-type: maven
260     node: dynamic_verify
261     jdk: '{jdk}'
262
263     logrotate:
264         daysToKeep: '7'
265         numToKeep: '10'
266         artifactDaysToKeep: '1'
267         artifactNumToKeep: '1'
268
269     parameters:
270         - project-parameter:
271             project: '{project}'
272
273     scm:
274         - git-scm:
275             credentials-id: '{ssh-credentials}'
276             refspec: ''
277             branch: 'master'
278
279     wrappers:
280         - build-timeout
281         - ssh-agent-credentials:
282             user: '{ssh-credentials}'
283
284     triggers:
285         - timed: 'H H * * *'
286
287     maven:
288         maven-name: '{mvn32}'
289         root-pom: 'pom.xml'
290         goals: 'clean install -V -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo  -Dsonar'
291         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
292         settings: '{snmp-settings}'
293         global-settings: '{odl-global-settings}'
294
295     publishers:
296         - sonar:
297             language: 'java'
298             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
299         - email-notification:
300             email-prefix: '[snmp]'