Update automated project templates
[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     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: 'bgpcep-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     jdk: '{jdk}'
43
44     logrotate:
45         daysToKeep: '{build-days-to-keep}'
46         numToKeep: '{build-num-to-keep}'
47         artifactDaysToKeep: '{build-artifact-days-to-keep}'
48         artifactNumToKeep: '{build-artifact-num-to-keep}'
49
50     parameters:
51         - project-parameter:
52             project: '{project}'
53         - gerrit-parameter:
54             branch: '{branch}'
55
56     scm:
57         - gerrit-trigger-scm:
58             credentials-id: '{ssh-credentials}'
59             refspec: '$GERRIT_REFSPEC'
60             choosing-strategy: 'gerrit'
61
62     wrappers:
63         - ssh-agent-credentials:
64             user: '{ssh-credentials}'
65
66     triggers:
67         - gerrit-trigger-patch-submitted:
68             name: 'bgpcep'
69             branch: '{branch}'
70
71     maven:
72         maven-name: '{mvn32}'
73         root-pom: 'pom.xml'
74         goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean -DrepoBuild install javadoc:aggregate'
75         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
76         settings: '{bgpcep-settings}'
77         global-settings: '{odl-global-settings}'
78         ignore-upstream-changes: true
79
80     publishers:
81         - email-notification:
82             email-prefix: '[bgpcep]'
83
84 - job-template:
85     name: 'bgpcep-merge-{stream}'
86
87     # Job template for ODL merge jobs
88     #
89     # The purpose of this job template is to setup a ODL merge job
90     # and deploy artifacts to Nexus.
91     #
92     # Required Variables:
93     #     stream:    branch with - in place of / (eg. stable-helium)
94     #     branch:    branch (eg. stable/helium)
95
96     project-type: maven
97     node: dynamic_merge
98     jdk: '{jdk}'
99
100     logrotate:
101         daysToKeep: '{build-days-to-keep}'
102         numToKeep: '{build-num-to-keep}'
103         artifactDaysToKeep: '{build-artifact-days-to-keep}'
104         artifactNumToKeep: '{build-artifact-num-to-keep}'
105
106     parameters:
107         - project-parameter:
108             project: '{project}'
109
110     scm:
111         - gerrit-trigger-scm:
112             credentials-id: '{ssh-credentials}'
113             refspec: ''
114             choosing-strategy: 'default'
115
116     wrappers:
117         - ssh-agent-credentials:
118             user: '{ssh-credentials}'
119
120     triggers:
121         - gerrit-trigger-patch-merged:
122             name: 'bgpcep'
123             branch: '{branch}'
124
125     maven:
126         maven-name: '{mvn32}'
127         root-pom: 'pom.xml'
128         goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean -DrepoBuild install javadoc:aggregate'
129         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
130         settings: '{bgpcep-settings}'
131         global-settings: '{odl-global-settings}'
132
133     publishers:
134         - email-notification:
135             email-prefix: '[bgpcep]'
136         - maven-deploy:
137             id: ''
138             unique-version: true
139             deploy-unstable: false
140
141 - job-template:
142     name: 'bgpcep-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         - ssh-agent-credentials:
175             user: '{ssh-credentials}'
176
177     triggers:
178         - timed: 'H H * * *'
179
180     maven:
181         maven-name: '{mvn32}'
182         root-pom: 'pom.xml'
183         goals: '-Dmaven.repo.local=$WORKSPACE/.m2repo -Dorg.ops4j.pax.url.mvn.localRepository=$WORKSPACE/.m2repo clean -DrepoBuild install javadoc:aggregate'
184         maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'
185         settings: '{bgpcep-settings}'
186         global-settings: '{odl-global-settings}'
187
188     publishers:
189         - email-notification:
190             email-prefix: '[bgpcep]'
191         - sonar:
192             branch: '{stream}'
193             language: 'java'
194             maven-opts: '-Xmx1024m -XX:MaxPermSize=256m'