Merge "Adding patch test job + file reorg: - integration jobs - integration templates...
[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
51     parameters:
52         - string:
53             name: PATCHGIT
54             default: '{patch-git}'
55             description:  'Patch GIT repository'
56
57 - parameter:
58     name: integration-patch-git-url
59     parameters:
60         - string:
61             name: PATCHGITURL
62             default: '{patch-git-url}'
63             description:  'Patch GIT URL (do not modify)'
64
65 - parameter:
66     name: integration-patch-refspec
67     parameters:
68         - string:
69             name: PATCHREFSPEC
70             default: '{patch-refspec}'
71             description:  'Patch Refspec'
72
73 - scm:
74     name: integration-gerrit-scm
75     scm:
76         - git:
77             credentials-id: '{credentials-id}'
78             url: '$PATCHGITURL'
79             basedir: '$PATCHGIT'
80             refspec: '$PATCHREFSPEC'
81             branches:
82                 - 'origin/{branch}'
83             skip-tag: true
84             choosing-strategy: 'gerrit'
85
86 - scm:
87     name: integration-git-scm
88     scm:
89         - git:
90             credentials-id: '{credentials-id}'
91             basedir: 'integration'
92             url: '$GIT_BASE'
93             refspec: ''
94             branches:
95                 - 'origin/{branch}'
96             skip-tag: true
97
98 - trigger:
99     name: integration-distribution-gerrit-trigger-patch-submitted
100     triggers:
101         - gerrit:
102             server-name: 'OpenDaylight'
103             trigger-on:
104                 - patchset-created-event:
105                     exclude-drafts: 'false'
106                     exclude-trivial-rebase: 'false'
107                     exclude-no-code-change: 'false'
108                 - draft-published-event
109                 - comment-added-contains-event:
110                     comment-contains-value: 'recheck'
111                 - comment-added-contains-event:
112                     comment-contains-value: 'reverify'
113             projects:
114               - project-compare-type: 'ANT'
115                 project-pattern: '{name}'
116                 branches:
117                   - branch-compare-type: 'ANT'
118                     branch-pattern: '**/{branch}'
119                 file-paths:
120                   - compare-type: 'ANT'
121                     pattern: 'distributions/**'
122                   - compare-type: 'ANT'
123                     pattern: 'features/**'
124                   - compare-type: 'ANT'
125                     pattern: 'feature-selector/**'
126
127 - trigger:
128     name: integration-distribution-gerrit-trigger-patch-merged
129     triggers:
130         - gerrit:
131             server-name: 'OpenDaylight'
132             trigger-on:
133                 - change-merged-event
134                 - comment-added-contains-event:
135                     comment-contains-value: 'remerge'
136             projects:
137               - project-compare-type: 'ANT'
138                 project-pattern: '{name}'
139                 branches:
140                   - branch-compare-type: 'ANT'
141                     branch-pattern: '**/{branch}'
142                 file-paths:
143                   - compare-type: 'ANT'
144                     pattern: 'distributions/**'
145                   - compare-type: 'ANT'
146                     pattern: 'features/**'
147                   - compare-type: 'ANT'
148                     pattern: 'feature-selector/**'
149
150 - trigger:
151     name: integration-test-gerrit-trigger-patch-submitted
152     triggers:
153         - gerrit:
154             server-name: 'OpenDaylight'
155             trigger-on:
156                 - patchset-created-event:
157                     exclude-drafts: 'false'
158                     exclude-trivial-rebase: 'false'
159                     exclude-no-code-change: 'false'
160                 - draft-published-event
161                 - comment-added-contains-event:
162                     comment-contains-value: 'recheck'
163                 - comment-added-contains-event:
164                     comment-contains-value: 'reverify'
165             projects:
166               - project-compare-type: 'ANT'
167                 project-pattern: '{name}'
168                 branches:
169                   - branch-compare-type: 'ANT'
170                     branch-pattern: '**/{branch}'
171                 file-paths:
172                   - compare-type: 'ANT'
173                     pattern: 'test/csit/suites/{project}/**'
174
175 - trigger:
176     name: integration-csit-gerrit-trigger-patch-submitted
177     triggers:
178         - gerrit:
179             server-name: 'OpenDaylight'
180             trigger-on:
181                 - patchset-created-event:
182                     exclude-drafts: 'false'
183                     exclude-trivial-rebase: 'false'
184                     exclude-no-code-change: 'false'
185                 - draft-published-event
186                 - comment-added-contains-event:
187                     comment-contains-value: 'recheck'
188                 - comment-added-contains-event:
189                     comment-contains-value: 'reverify'
190             projects:
191               - project-compare-type: 'ANT'
192                 project-pattern: '{name}'
193                 branches:
194                   - branch-compare-type: 'ANT'
195                     branch-pattern: '**/{branch}'
196                 file-paths:
197                   - compare-type: 'ANT'
198                     pattern: 'test/csit/**'
199
200 - trigger:
201     name: integration-csit-gerrit-trigger-patch-merged
202     triggers:
203         - gerrit:
204             server-name: 'OpenDaylight'
205             trigger-on:
206                 - change-merged-event
207                 - comment-added-contains-event:
208                     comment-contains-value: 'remerge'
209             projects:
210               - project-compare-type: 'ANT'
211                 project-pattern: '{name}'
212                 branches:
213                   - branch-compare-type: 'ANT'
214                     branch-pattern: '**/{branch}'
215                 file-paths:
216                   - compare-type: 'ANT'
217                     pattern: 'test/csit/**'
218
219 - wrapper:
220     name: integration-jclouds-controller-mininet
221     wrappers:
222       - jclouds:
223           instances:
224             - rk-c-el6-java:
225                 cloud-name: 'Rackspace DFW - Integration Dynamic Lab'
226                 count: '{controller-vms}'
227                 stop-on-terminate: False
228             - rk-c-el6-mininet:
229                 cloud-name: 'Rackspace DFW - Integration Dynamic Lab'
230                 count: '{mininet-vms}'
231                 stop-on-terminate: False
232
233 #################
234 # Shell Scripts #
235 #################
236
237 - builder:
238     name: integration-get-slave-addresses
239     builders:
240         - shell:
241             !include-raw include-raw-integration-get-slave-addresses.sh
242
243 - builder:
244     name: integration-deploy-controller-run-test
245     builders:
246         - shell:
247             !include-raw include-raw-integration-deploy-controller-run-test.sh
248
249 - builder:
250     name: integration-deploy-controller-offline
251     builders:
252         - shell:
253             !include-raw include-raw-integration-deploy-controller-offline.sh
254
255 - builder:
256     name: integration-get-bundle-url
257     builders:
258         - shell:
259             !include-raw include-raw-integration-get-bundle-url.sh
260
261 ##############
262 # Publishers #
263 ##############
264
265 - publisher:
266     name: integration-robot
267     publishers:
268         - robot:
269             output-path: ''
270             other-files: ''
271             unstable-threshold: '{unstable-if}'
272             pass-threshold: '{pass-if}'
273             only-critical: false