Merge "Add SNBI Jenkins Jobs"
[releng/builder.git] / jjb / lispflowmapping / lispflowmapping.yaml
1 # ODL Releng build templates
2 - project:
3     name: lispflowmapping
4     jobs:
5         - 'lispflowmapping-verify-{stream}'
6         - 'lispflowmapping-merge-{stream}'
7         - 'lispflowmapping-daily-{stream}'
8         - 'lispflowmapping-integration-{stream}'
9
10     # stream:    branch with - in place of / (eg. stable-helium)
11     # branch:    branch (eg. stable/helium)
12     stream:
13         - develop:
14             branch: 'develop'
15         - stable-helium:
16             branch: 'stable/helium'
17
18     project: 'lispflowmapping'
19     jdk: 'openjdk7'
20
21 # For the Job templates below replace instances of:
22 # PROJECT with your project name (eg. controller)
23 # MAVEN_GOALS with your maven goals to build
24 # MAVEN_OPTS with your maven options to build
25
26 - job-template:
27     name: 'lispflowmapping-verify-{stream}'
28
29     # Job template for ODL verify jobs
30     #
31     # The purpose of this job template is to setup a ODL verify job
32     #
33     # Required Variables:
34     #     stream:    branch with - in place of / (eg. stable-helium)
35     #     branch:    branch (eg. stable/helium)
36
37     project-type: maven
38     node: dynamic_verify
39     concurrent: true
40     jdk: '{jdk}'
41
42     logrotate:
43         daysToKeep: '{build-days-to-keep}'
44         numToKeep: '{build-num-to-keep}'
45         artifactDaysToKeep: '{build-artifact-days-to-keep}'
46         artifactNumToKeep: '{build-artifact-num-to-keep}'
47
48     parameters:
49         - project-parameter:
50             project: '{project}'
51         - gerrit-parameter:
52             branch: '{branch}'
53
54     scm:
55         - gerrit-trigger-scm:
56             credentials-id: '{ssh-credentials}'
57             refspec: '$GERRIT_REFSPEC'
58             choosing-strategy: 'gerrit'
59
60     wrappers:
61         - build-timeout
62         - ssh-agent-credentials:
63             user: '{ssh-credentials}'
64
65     triggers:
66         - gerrit-trigger-patch-submitted:
67             name: 'lispflowmapping'
68             branch: '{branch}'
69
70     maven:
71         maven-name: '{mvn32}'
72         root-pom: 'pom.xml'
73         goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo'
74         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
75         settings: '{lispflowmapping-settings}'
76         global-settings: '{odl-global-settings}'
77         ignore-upstream-changes: true
78
79     publishers:
80         - email-notification:
81             email-prefix: '[lispflowmapping]'
82
83 - job-template:
84     name: 'lispflowmapping-merge-{stream}'
85
86     # Job template for ODL merge jobs
87     #
88     # The purpose of this job template is to setup a ODL merge job
89     # and deploy artifacts to Nexus.
90     #
91     # Required Variables:
92     #     stream:    branch with - in place of / (eg. stable-helium)
93     #     branch:    branch (eg. stable/helium)
94
95     project-type: maven
96     node: dynamic_merge
97     jdk: '{jdk}'
98
99     logrotate:
100         daysToKeep: '{build-days-to-keep}'
101         numToKeep: '{build-num-to-keep}'
102         artifactDaysToKeep: '{build-artifact-days-to-keep}'
103         artifactNumToKeep: '{build-artifact-num-to-keep}'
104
105     parameters:
106         - project-parameter:
107             project: '{project}'
108
109     scm:
110         - gerrit-trigger-scm:
111             credentials-id: '{ssh-credentials}'
112             refspec: ''
113             choosing-strategy: 'default'
114
115     wrappers:
116         - build-timeout
117         - ssh-agent-credentials:
118             user: '{ssh-credentials}'
119
120     triggers:
121         - gerrit-trigger-patch-merged:
122             name: 'lispflowmapping'
123             branch: '{branch}'
124
125     maven:
126         maven-name: '{mvn32}'
127         root-pom: 'pom.xml'
128         goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo'
129         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
130         settings: '{lispflowmapping-settings}'
131         global-settings: '{odl-global-settings}'
132
133     publishers:
134         - email-notification:
135             email-prefix: '[lispflowmapping]'
136         - maven-deploy:
137             id: ''
138             unique-version: true
139             deploy-unstable: false
140
141 - job-template:
142     name: 'lispflowmapping-daily-{stream}'
143
144     # Job template for daily builders
145     #
146     # The purpose of this job template is to setup a daily/nightly
147     # builder and pushes to Sonar analysis.
148     #
149     # Required Variables:
150     #     stream:    branch with - in place of / (eg. stable-helium)
151     #     branch:    branch (eg. stable/helium)
152
153     project-type: maven
154     node: dynamic_verify
155     jdk: '{jdk}'
156
157     logrotate:
158         daysToKeep: '{build-days-to-keep}'
159         numToKeep: '{build-num-to-keep}'
160         artifactDaysToKeep: '{build-artifact-days-to-keep}'
161         artifactNumToKeep: '{build-artifact-num-to-keep}'
162
163     parameters:
164         - project-parameter:
165             project: '{project}'
166
167     scm:
168         - git-scm:
169             credentials-id: '{ssh-credentials}'
170             refspec: ''
171             branch: '{branch}'
172
173     wrappers:
174         - build-timeout
175         - ssh-agent-credentials:
176             user: '{ssh-credentials}'
177
178     triggers:
179         - timed: 'H H * * *'
180
181     maven:
182         maven-name: '{mvn32}'
183         root-pom: 'pom.xml'
184         goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo'
185         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
186         settings: '{lispflowmapping-settings}'
187         global-settings: '{odl-global-settings}'
188
189     publishers:
190         - email-notification:
191             email-prefix: '[lispflowmapping]'
192         - sonar:
193             branch: '{stream}'
194             language: 'java'
195             maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
196
197 - job-template:
198     name: 'lispflowmapping-integration-{stream}'
199     disabled: false
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: 'controller-merge-{stream},odlparent-merge-{stream},yangtools-merge-{stream}'
238             result: 'success'
239
240     maven:
241         maven-name: '{mvn32}'
242         root-pom: 'pom.xml'
243         goals: 'clean install javadoc:aggregate -DrepoBuild -Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo'
244         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
245         settings: '{lispflowmapping-settings}'
246         global-settings: '{odl-global-settings}'
247
248     publishers:
249         - email-notification:
250             email-prefix: '[lispflowmapping] [controller] [odlparent] [yangtools]'