Merge "Adding csit verify job to check test patches"
[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 - trigger:
50     name: integration-distribution-gerrit-trigger-patch-submitted
51     triggers:
52         - gerrit:
53             server-name: 'OpenDaylight'
54             trigger-on:
55                 - patchset-created-event:
56                     exclude-drafts: 'false'
57                     exclude-trivial-rebase: 'false'
58                     exclude-no-code-change: 'false'
59                 - draft-published-event
60                 - comment-added-contains-event:
61                     comment-contains-value: 'recheck'
62                 - comment-added-contains-event:
63                     comment-contains-value: 'reverify'
64             projects:
65               - project-compare-type: 'ANT'
66                 project-pattern: '{name}'
67                 branches:
68                   - branch-compare-type: 'ANT'
69                     branch-pattern: '**/{branch}'
70                 file-paths:
71                   - compare-type: 'ANT'
72                     pattern: 'distributions/**'
73                   - compare-type: 'ANT'
74                     pattern: 'features/**'
75                   - compare-type: 'ANT'
76                     pattern: 'feature-selector/**'
77
78 - trigger:
79     name: integration-distribution-gerrit-trigger-patch-merged
80     triggers:
81         - gerrit:
82             server-name: 'OpenDaylight'
83             trigger-on:
84                 - change-merged-event
85                 - comment-added-contains-event:
86                     comment-contains-value: 'remerge'
87             projects:
88               - project-compare-type: 'ANT'
89                 project-pattern: '{name}'
90                 branches:
91                   - branch-compare-type: 'ANT'
92                     branch-pattern: '**/{branch}'
93                 file-paths:
94                   - compare-type: 'ANT'
95                     pattern: 'distributions/**'
96                   - compare-type: 'ANT'
97                     pattern: 'features/**'
98                   - compare-type: 'ANT'
99                     pattern: 'feature-selector/**'
100
101 - trigger:
102     name: integration-test-gerrit-trigger-patch-submitted
103     triggers:
104         - gerrit:
105             server-name: 'OpenDaylight'
106             trigger-on:
107                 - patchset-created-event:
108                     exclude-drafts: 'false'
109                     exclude-trivial-rebase: 'false'
110                     exclude-no-code-change: 'false'
111                 - draft-published-event
112                 - comment-added-contains-event:
113                     comment-contains-value: 'recheck'
114                 - comment-added-contains-event:
115                     comment-contains-value: 'reverify'
116             projects:
117               - project-compare-type: 'ANT'
118                 project-pattern: '{name}'
119                 branches:
120                   - branch-compare-type: 'ANT'
121                     branch-pattern: '**/{branch}'
122                 file-paths:
123                   - compare-type: 'ANT'
124                     pattern: 'test/csit/suites/{project}/**'
125
126 - trigger:
127     name: integration-test-gerrit-trigger-patch-merged
128     triggers:
129         - gerrit:
130             server-name: 'OpenDaylight'
131             trigger-on:
132                 - change-merged-event
133                 - comment-added-contains-event:
134                     comment-contains-value: 'remerge'
135             projects:
136               - project-compare-type: 'ANT'
137                 project-pattern: '{name}'
138                 branches:
139                   - branch-compare-type: 'ANT'
140                     branch-pattern: '**/{branch}'
141                 file-paths:
142                   - compare-type: 'ANT'
143                     pattern: 'test/**'
144
145 - wrapper:
146     name: integration-jclouds-controller-mininet
147     wrappers:
148       - jclouds:
149           instances:
150             - rk-c-el6-java:
151                 cloud-name: 'Rackspace DFW - Integration Dynamic Lab'
152                 count: '{controller-vms}'
153                 stop-on-terminate: False
154             - rk-c-el6-mininet:
155                 cloud-name: 'Rackspace DFW - Integration Dynamic Lab'
156                 count: '{mininet-vms}'
157                 stop-on-terminate: False
158
159 #################
160 # Shell Scripts #
161 #################
162
163 - builder:
164     name: integration-get-slave-addresses
165     builders:
166         - shell:
167             !include-raw include-raw-integration-get-slave-addresses.sh
168
169 - builder:
170     name: integration-deploy-controller-run-test
171     builders:
172         - shell:
173             !include-raw include-raw-integration-deploy-controller-run-test.sh
174
175 ##############
176 # Publishers #
177 ##############
178
179 - publisher:
180     name: integration-robot
181     publishers:
182         - robot:
183             output-path: ''
184             other-files: ''
185             unstable-threshold: '{unstable-if}'
186             pass-threshold: '{pass-if}'
187             only-critical: false