[compass] add senario of odl_l3
[releng.git] / jjb / compass4nfv / compass-ci-jobs.yml
1 - project:
2
3     name: compass-ci
4
5     installer: 'compass'
6
7     project: 'compass4nfv'
8
9     master: &master
10         stream: master
11         branch: '{stream}'
12         gs-pathname: ''
13     brahmaputra: &brahmaputra
14         stream: brahmaputra
15         branch: 'stable/{stream}'
16         gs-pathname: '/{stream}'
17
18 #--------------------------------
19 # POD, INSTALLER, AND BRANCH MAPPING
20 #--------------------------------
21     pod:
22 #--------------------------------
23 #        brahmaputra
24 #--------------------------------
25         - huawei-us-deploy-bare-1:
26             <<: *brahmaputra
27         - huawei-virtual:
28             <<: *brahmaputra
29 #--------------------------------
30 #        master
31 #--------------------------------
32         - intel-pod8:
33             <<: *master
34         - huawei-virtual:
35             <<: *master
36
37     scenario:
38         - 'os-nosdn-nofeature-ha':
39             disabled: false
40             auto-trigger-name: 'compass-{scenario}-{pod}-trigger'
41         - 'os-odl_l2-nofeature-ha':
42             disabled: false
43             auto-trigger-name: 'compass-{scenario}-{pod}-trigger'
44         - 'os-odl_l3-nofeature-ha':
45             disabled: false
46             auto-trigger-name: 'compass-{scenario}-{pod}-trigger'
47         - 'os-onos-nofeature-ha':
48             disabled: false
49             auto-trigger-name: 'compass-{scenario}-{pod}-trigger'
50         - 'os-ocl-nofeature-ha':
51             disabled: false
52             auto-trigger-name: 'compass-{scenario}-{pod}-trigger'
53
54     jobs:
55         - 'compass-{scenario}-{pod}-daily-{stream}'
56         - 'compass-deploy-{pod}-daily-{stream}'
57
58 ########################
59 # job templates
60 ########################
61 - job-template:
62     name: 'compass-{scenario}-{pod}-daily-{stream}'
63
64     concurrent: true
65
66     properties:
67         - throttle:
68             enabled: true
69             max-per-node: 1
70         - build-blocker:
71             use-build-blocker: true
72             blocking-jobs:
73                 - 'compass-os-.*?-{pod}-daily-.*?'
74                 - 'compass-verify-[^-]*'
75             block-level: 'NODE'
76
77     wrappers:
78         - build-name:
79             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
80
81     parameters:
82         - project-parameter:
83             project: '{project}'
84         - compass-ci-parameter:
85             installer: '{installer}'
86             gs-pathname: '{gs-pathname}'
87         - string:
88             name: DEPLOY_SCENARIO
89             default: '{scenario}'
90         - '{pod}-defaults'
91         - '{installer}-defaults'
92
93     triggers:
94         - '{auto-trigger-name}'
95
96     builders:
97         - trigger-builds:
98             - project: 'compass-deploy-{pod}-daily-{stream}'
99               current-parameters: false
100               predefined-parameters:
101                 DEPLOY_SCENARIO={scenario}
102               same-node: true
103               block: true
104         - trigger-builds:
105             - project: 'functest-compass-{pod}-daily-{stream}'
106               current-parameters: false
107               predefined-parameters:
108                 DEPLOY_SCENARIO={scenario}
109               same-node: true
110               block: true
111               block-thresholds:
112                 build-step-failure-threshold: 'never'
113                 failure-threshold: 'never'
114                 unstable-threshold: 'FAILURE'
115         - trigger-builds:
116             - project: 'yardstick-compass-{pod}-daily-{stream}'
117               current-parameters: false
118               predefined-parameters:
119                 DEPLOY_SCENARIO={scenario}
120               block: true
121               same-node: true
122               block-thresholds:
123                 build-step-failure-threshold: 'never'
124                 failure-threshold: 'never'
125                 unstable-threshold: 'FAILURE'
126
127 - job-template:
128     name: 'compass-deploy-{pod}-daily-{stream}'
129
130     disabled: false
131
132     concurrent: true
133
134     properties:
135         - throttle:
136             enabled: true
137             max-per-node: 1
138         - build-blocker:
139             use-build-blocker: true
140             blocking-jobs:
141                 - 'compass-deploy-{pod}-daily-.*?'
142                 - 'compass-verify-deploy-.*?'
143             block-level: 'NODE'
144
145     wrappers:
146         - build-name:
147             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
148         - timeout:
149             timeout: 120
150             abort: true
151
152     parameters:
153         - project-parameter:
154             project: '{project}'
155         - compass-ci-parameter:
156             installer: '{installer}'
157             gs-pathname: '{gs-pathname}'
158         - '{pod}-defaults'
159         - '{installer}-defaults'
160
161     scm:
162         - git-scm:
163             credentials-id: '{ssh-credentials}'
164             refspec: ''
165             branch: '{branch}'
166
167     wrappers:
168         - build-name:
169             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
170
171
172     builders:
173         - shell:
174             !include-raw-escape: ./compass-download-artifact.sh
175         - shell:
176             !include-raw-escape: ./compass-deploy.sh
177
178     publishers:
179         - archive:
180             artifacts: 'ansible.log'
181             allow-empty: 'true'
182             fingerprint: true
183
184 ########################
185 # parameter macros
186 ########################
187 - parameter:
188     name: compass-ci-parameter
189     parameters:
190         - string:
191             name: BUILD_DIRECTORY
192             default: $WORKSPACE/build_output
193             description: "Directory where the build artifact will be located upon the completion of the build."
194         - string:
195             name: GS_URL
196             default: '$GS_BASE{gs-pathname}'
197             description: "URL to Google Storage."
198         - choice:
199             name: COMPASS_OPENSTACK_VERSION
200             choices:
201                 - 'liberty'
202                 - 'juno'
203         - choice:
204             name: COMPASS_OS_VERSION
205             choices:
206                 - 'trusty'
207                 - 'centos7'
208
209 ########################
210 # trigger macros
211 ########################
212 - trigger:
213     name: 'compass-os-nosdn-nofeature-ha-huawei-us-deploy-bare-1-trigger'
214     triggers:
215         - timed: '0 3 * * * '
216 - trigger:
217     name: 'compass-os-odl_l2-nofeature-ha-huawei-us-deploy-bare-1-trigger'
218     triggers:
219         - timed: '0 21 * * *'
220 - trigger:
221     name: 'compass-os-odl_l3-nofeature-ha-huawei-us-deploy-bare-1-trigger'
222     triggers:
223         - timed: ''
224 - trigger:
225     name: 'compass-os-onos-nofeature-ha-huawei-us-deploy-bare-1-trigger'
226     triggers:
227         - timed: '0 15 * * *'
228 - trigger:
229     name: 'compass-os-ocl-nofeature-ha-huawei-us-deploy-bare-1-trigger'
230     triggers:
231         - timed: '0 9 * * *'
232 - trigger:
233     name: 'compass-os-nosdn-nofeature-ha-intel-pod8-trigger'
234     triggers:
235         - timed: '0 3 * * *'
236 - trigger:
237     name: 'compass-os-odl_l2-nofeature-ha-intel-pod8-trigger'
238     triggers:
239         - timed: '0 21 * * *'
240 - trigger:
241     name: 'compass-os-odl_l3-nofeature-ha-intel-pod8-trigger'
242     triggers:
243         - timed: ''
244 - trigger:
245     name: 'compass-os-onos-nofeature-ha-intel-pod8-trigger'
246     triggers:
247         - timed: '0 15 * * *'
248 - trigger:
249     name: 'compass-os-ocl-nofeature-ha-intel-pod8-trigger'
250     triggers:
251         - timed: '0 9 * * *'
252 - trigger:
253     name: 'compass-os-nosdn-nofeature-ha-huawei-virtual-trigger'
254     triggers:
255         - timed: '0 3 * * *'
256 - trigger:
257     name: 'compass-os-odl_l2-nofeature-ha-huawei-virtual-trigger'
258     triggers:
259         - timed: '0 21 * * *'
260 - trigger:
261     name: 'compass-os-odl_l3-nofeature-ha-huawei-virtual-trigger'
262     triggers:
263         - timed: ''
264 - trigger:
265     name: 'compass-os-onos-nofeature-ha-huawei-virtual-trigger'
266     triggers:
267         - timed: '0 15 * * *'
268 - trigger:
269     name: 'compass-os-ocl-nofeature-ha-huawei-virtual-trigger'
270     triggers:
271         - timed: '0 9 * * *'