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