Stop triggering on draft contributions to Integration
[releng/builder.git] / jjb / integration / integration-macros.yaml
1 - parameter:
2     name: integration-branch
3     parameters:
4         - string:
5             name: BRANCH
6             default: '{branch}'
7             description: 'GIT branch'
8
9 - parameter:
10     name: integration-bundleurl
11     parameters:
12         - string:
13             name: BUNDLEURL
14             default: '{bundleurl}'
15             description: 'URL to karaf distribution zip'
16
17 - parameter:
18     name: integration-controller-scope
19     parameters:
20         - string:
21             name: CONTROLLERSCOPE
22             default: '{controller-scope}'
23             description: 'Feature Only or Feature All test'
24
25 - parameter:
26     name: integration-controller-features
27     parameters:
28         - string:
29             name: CONTROLLERFEATURES
30             default: '{controller-features}'
31             description: 'Features to install in the controller separated by comma'
32
33 - parameter:
34     name: integration-test-plan
35     parameters:
36         - string:
37             name: TESTPLAN
38             default: '{test-plan}'
39             description: 'Test plan we will run'
40
41 - parameter:
42     name: integration-test-options
43     parameters:
44         - string:
45             name: TESTOPTIONS
46             default: '{test-options}'
47             description: 'Robot command options'
48
49 - parameter:
50     name: integration-patch-git-url
51     parameters:
52         - string:
53             name: PATCHGITURL
54             default: 'ssh://jenkins-$SILO@git.opendaylight.org:29418/$GERRIT_PROJECT'
55             description: 'Patch GIT URL (do not modify)'
56
57 - parameter:
58     name: integration-patch-refspec
59     parameters:
60         - string:
61             name: PATCHREFSPEC
62             default: '{branch}'
63             description: 'Integration Patch Refspec'
64
65 - scm:
66     name: integration-gerrit-scm
67     scm:
68         - git:
69             credentials-id: '{credentials-id}'
70             url: '$PATCHGITURL'
71             basedir: '$GERRIT_PROJECT'
72             refspec: '$GERRIT_REFSPEC'
73             branches:
74                 - 'origin/{branch}'
75             skip-tag: true
76             choosing-strategy: 'gerrit'
77
78 - scm:
79     name: integration-git-scm
80     scm:
81         - git:
82             credentials-id: '{credentials-id}'
83             basedir: 'integration'
84             url: '$GIT_BASE'
85             refspec: ''
86             branches:
87                 - 'origin/{branch}'
88             skip-tag: true
89
90 - scm:
91     name: integration-patch-scm
92     scm:
93         - git:
94             credentials-id: '{credentials-id}'
95             url: '$GIT_BASE'
96             refspec: '$PATCHREFSPEC'
97             branches:
98                 - 'origin/{branch}'
99             skip-tag: true
100             choosing-strategy: 'gerrit'
101
102 - trigger:
103     name: integration-distribution-gerrit-trigger-patch-submitted
104     triggers:
105         - gerrit:
106             server-name: 'OpenDaylight'
107             trigger-on:
108                 - patchset-created-event:
109                     exclude-drafts: 'true'
110                     exclude-trivial-rebase: 'false'
111                     exclude-no-code-change: 'false'
112                 - draft-published-event
113                 - comment-added-contains-event:
114                     comment-contains-value: 'recheck'
115                 - comment-added-contains-event:
116                     comment-contains-value: 'reverify'
117             projects:
118               - project-compare-type: 'ANT'
119                 project-pattern: '{name}'
120                 branches:
121                   - branch-compare-type: 'ANT'
122                     branch-pattern: '**/{branch}'
123                 file-paths:
124                   - compare-type: 'ANT'
125                     pattern: 'pom.xml'
126                   - compare-type: 'ANT'
127                     pattern: 'distributions/**'
128                   - compare-type: 'ANT'
129                     pattern: 'features/**'
130                   - compare-type: 'ANT'
131                     pattern: 'feature-selector/**'
132
133 - trigger:
134     name: integration-distribution-gerrit-trigger-patch-merged
135     triggers:
136         - gerrit:
137             server-name: 'OpenDaylight'
138             trigger-on:
139                 - change-merged-event
140                 - comment-added-contains-event:
141                     comment-contains-value: 'remerge'
142             projects:
143               - project-compare-type: 'ANT'
144                 project-pattern: '{name}'
145                 branches:
146                   - branch-compare-type: 'ANT'
147                     branch-pattern: '**/{branch}'
148                 file-paths:
149                   - compare-type: 'ANT'
150                     pattern: 'pom.xml'
151                   - compare-type: 'ANT'
152                     pattern: 'distributions/**'
153                   - compare-type: 'ANT'
154                     pattern: 'features/**'
155                   - compare-type: 'ANT'
156                     pattern: 'feature-selector/**'
157
158 - trigger:
159     name: integration-test-gerrit-trigger-patch-submitted
160     triggers:
161         - gerrit:
162             server-name: 'OpenDaylight'
163             trigger-on:
164                 - patchset-created-event:
165                     exclude-drafts: 'true'
166                     exclude-trivial-rebase: 'false'
167                     exclude-no-code-change: 'false'
168                 - draft-published-event
169                 - comment-added-contains-event:
170                     comment-contains-value: 'recheck'
171                 - comment-added-contains-event:
172                     comment-contains-value: 'reverify'
173             projects:
174               - project-compare-type: 'ANT'
175                 project-pattern: '{name}'
176                 branches:
177                   - branch-compare-type: 'ANT'
178                     branch-pattern: '**/{branch}'
179                 file-paths:
180                   - compare-type: 'ANT'
181                     pattern: 'test/csit/suites/{project}/**'
182
183 - trigger:
184     name: integration-csit-gerrit-trigger-patch-submitted
185     triggers:
186         - gerrit:
187             server-name: 'OpenDaylight'
188             trigger-on:
189                 - patchset-created-event:
190                     exclude-drafts: 'true'
191                     exclude-trivial-rebase: 'false'
192                     exclude-no-code-change: 'false'
193                 - draft-published-event
194                 - comment-added-contains-event:
195                     comment-contains-value: 'recheck'
196                 - comment-added-contains-event:
197                     comment-contains-value: 'reverify'
198             projects:
199               - project-compare-type: 'ANT'
200                 project-pattern: '{name}'
201                 branches:
202                   - branch-compare-type: 'ANT'
203                     branch-pattern: '**/{branch}'
204                 file-paths:
205                   - compare-type: 'ANT'
206                     pattern: 'test/csit/**'
207
208 - trigger:
209     name: integration-csit-gerrit-trigger-patch-merged
210     triggers:
211         - gerrit:
212             server-name: 'OpenDaylight'
213             trigger-on:
214                 - change-merged-event
215                 - comment-added-contains-event:
216                     comment-contains-value: 'remerge'
217             projects:
218               - project-compare-type: 'ANT'
219                 project-pattern: '{name}'
220                 branches:
221                   - branch-compare-type: 'ANT'
222                     branch-pattern: '**/{branch}'
223                 file-paths:
224                   - compare-type: 'ANT'
225                     pattern: 'test/csit/**'
226
227 - wrapper:
228     name: integration-jclouds-controller-mininet
229     wrappers:
230       - jclouds:
231           instances:
232             - rk-c-el6-java:
233                 cloud-name: 'Rackspace DFW - Integration Dynamic Lab'
234                 count: '{controller-vms}'
235                 stop-on-terminate: False
236             - '{mininet-image}':
237                 cloud-name: 'Rackspace DFW - Integration Dynamic Lab'
238                 count: '{mininet-vms}'
239                 stop-on-terminate: False
240
241 #################
242 # Shell Scripts #
243 #################
244
245 - builder:
246     name: integration-get-slave-addresses
247     builders:
248         - shell:
249             !include-raw include-raw-integration-get-slave-addresses.sh
250 - builder:
251     name: integration-get-bundle-vars
252     builders:
253         - shell:
254             !include-raw include-raw-integration-get-bundle-vars.sh
255
256 - builder:
257     name: integration-deploy-controller-run-test
258     builders:
259         - shell:
260             !include-raw include-raw-integration-deploy-controller-run-test.sh
261 - builder:
262     name: integration-deploy-controller
263     builders:
264         - shell:
265             !include-raw include-raw-integration-deploy-controller.sh
266
267
268 - builder:
269     name: integration-configure-clustering
270     builders:
271         - shell:
272             !include-raw include-raw-integration-configure-clustering.sh
273
274 - builder:
275     name: integration-start-cluster-run-test
276     builders:
277         - shell:
278             !include-raw include-raw-integration-start-cluster-run-test.sh
279
280 - builder:
281     name: integration-deploy-controller-offline
282     builders:
283         - shell:
284             !include-raw include-raw-integration-deploy-controller-offline.sh
285
286 - builder:
287     name: integration-get-bundle-url
288     builders:
289         - shell:
290             !include-raw include-raw-integration-get-bundle-url.sh
291
292 ##############
293 # Publishers #
294 ##############
295
296 - publisher:
297     name: integration-robot
298     publishers:
299         - robot:
300             output-path: ''
301             other-files: ''
302             unstable-threshold: '{unstable-if}'
303             pass-threshold: '{pass-if}'
304             only-critical: false