Update automated project templates
[releng/builder.git] / jjb / tcpmd5 / tcpmd5.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: tcpmd5
8     jobs:
9         - 'tcpmd5-verify-{stream}'
10         - 'tcpmd5-merge-{stream}'
11         - 'tcpmd5-daily-{stream}'
12         - 'tcpmd5-integration-{stream}'
13         - 'tcpmd5-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: 'tcpmd5'
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: 'tcpmd5-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: 'tcpmd5'
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: '{tcpmd5-settings}'
81         global-settings: '{odl-global-settings}'
82         ignore-upstream-changes: true
83
84     publishers:
85         - email-notification:
86             email-prefix: '[tcpmd5]'
87
88 - job-template:
89     name: 'tcpmd5-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: 'tcpmd5'
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: '{tcpmd5-settings}'
136         global-settings: '{odl-global-settings}'
137
138     publishers:
139         - email-notification:
140             email-prefix: '[tcpmd5]'
141         - maven-deploy:
142             id: ''
143             unique-version: true
144             deploy-unstable: false
145
146 - job-template:
147     name: 'tcpmd5-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: '{tcpmd5-settings}'
192         global-settings: '{odl-global-settings}'
193
194     publishers:
195         - email-notification:
196             email-prefix: '[tcpmd5]'
197
198 - job-template:
199     name: 'tcpmd5-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: '{tcpmd5-settings}'
247         global-settings: '{odl-global-settings}'
248
249     publishers:
250         - email-notification:
251             email-prefix: '[tcpmd5]'
252
253 - job-template:
254     name: 'tcpmd5-sonar'
255
256     project-type: maven
257     node: dynamic_verify
258     jdk: '{jdk}'
259
260     logrotate:
261         daysToKeep: '7'
262         numToKeep: '10'
263         artifactDaysToKeep: '1'
264         artifactNumToKeep: '1'
265
266     parameters:
267         - project-parameter:
268             project: '{project}'
269
270     scm:
271         - git-scm:
272             credentials-id: '{ssh-credentials}'
273             refspec: ''
274             branch: 'master'
275
276     wrappers:
277         - build-timeout
278         - ssh-agent-credentials:
279             user: '{ssh-credentials}'
280
281     triggers:
282         - timed: 'H H * * *'
283
284     maven:
285         maven-name: '{mvn32}'
286         root-pom: 'pom.xml'
287         goals: 'validate'
288         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
289         settings: '{tcpmd5-settings}'
290         global-settings: '{odl-global-settings}'
291
292     publishers:
293         - sonar:
294             language: 'java'
295             maven-opts: '-Xmx6144m -XX:MaxPermSize=1024m'
296         - email-notification:
297             email-prefix: '[tcpmd5]'