2 # jenkins job templates for Daisy
4 # [ ] enable baremetal jobs after baremetal deployment finish
5 # [ ] enable jobs in danuble
6 # [ ] add more scenarios
7 # [ ] integration with yardstick
15 # -------------------------------
17 # -------------------------------
25 branch: 'stable/{stream}'
26 gs-pathname: '/{stream}'
29 # -------------------------------
30 # POD, INSTALLER, AND BRANCH MAPPING
31 # -------------------------------
33 # -------------------------------
35 # -------------------------------
37 slave-label: daisy-baremetal
40 slave-label: daisy-virtual
43 slave-label: daisy-baremetal
46 slave-label: daisy-virtual
48 # -------------------------------
50 # -------------------------------
64 # -------------------------------
66 # -------------------------------
69 - 'os-nosdn-nofeature-ha':
70 auto-trigger-name: 'daisy-{scenario}-{pod}-daily-{stream}-trigger'
72 - 'os-nosdn-nofeature-noha':
73 auto-trigger-name: 'daisy-{scenario}-{pod}-daily-{stream}-trigger'
75 - 'os-odl-nofeature-ha':
76 auto-trigger-name: 'daisy-{scenario}-{pod}-daily-{stream}-trigger'
78 - 'os-nosdn-ovs_dpdk-noha':
79 auto-trigger-name: 'daisy-{scenario}-{pod}-daily-{stream}-trigger'
82 - '{project}-{scenario}-{pod}-daily-{stream}'
83 - '{project}-deploy-{pod}-daily-{stream}'
85 ########################
87 ########################
89 name: '{project}-{scenario}-{pod}-daily-{stream}'
91 disabled: '{obj:disabled}'
103 use-build-blocker: true
105 - 'daisy-os-.*?-{pod}-daily-.*?'
107 - 'daisy-kolla-build-.*'
112 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
115 - '{auto-trigger-name}'
121 - '{installer}-defaults'
122 - '{slave-label}-defaults':
123 installer: '{installer}'
124 - 'testapi-parameter'
125 - 'daisy-project-parameter':
126 gs-pathname: '{gs-pathname}'
128 name: DEPLOY_SCENARIO
129 default: '{scenario}'
132 - description-setter:
133 description: "POD: $NODE_NAME"
135 - project: 'daisy-deploy-{pod}-daily-{stream}'
136 current-parameters: false
137 predefined-parameters: |
138 DEPLOY_SCENARIO={scenario}
139 INSTALLER_VERSION={stream}
140 UPSTREAM_JOB_NAME=$JOB_NAME
141 UPSTREAM_BUILD_ID=$BUILD_ID
145 - project: 'functest-daisy-{pod}-daily-{stream}'
146 current-parameters: false
147 predefined-parameters: |
148 DEPLOY_SCENARIO={scenario}
149 INSTALLER_VERSION={stream}
150 UPSTREAM_JOB_NAME=$JOB_NAME
151 UPSTREAM_BUILD_ID=$BUILD_ID
155 build-step-failure-threshold: 'never'
156 failure-threshold: 'never'
157 unstable-threshold: 'FAILURE'
159 - project: 'yardstick-daisy-{pod}-daily-{stream}'
160 current-parameters: false
161 predefined-parameters: |
162 DEPLOY_SCENARIO={scenario}
163 INSTALLER_VERSION={stream}
164 UPSTREAM_JOB_NAME=$JOB_NAME
165 UPSTREAM_BUILD_ID=$BUILD_ID
169 build-step-failure-threshold: 'never'
170 failure-threshold: 'never'
171 unstable-threshold: 'FAILURE'
174 name: '{project}-deploy-{pod}-daily-{stream}'
176 disabled: '{obj:disabled}'
188 use-build-blocker: true
190 - 'daisy-kolla-build-.*'
191 - '{installer}-(build|deploy|test)-daily-(fraser|master)'
192 - '{installer}-deploy-(baremetal|virtual|zte-pod3|zte-pod9)-daily-(fraser|master)'
193 - '(functest|yardstick)-{installer}-(baremetal|virtual|zte-pod3|zte-pod9)-daily-(fraser|master)'
200 - '{installer}-defaults'
201 - '{slave-label}-defaults':
202 installer: '{installer}'
203 - 'testapi-parameter'
204 - 'daisy-project-parameter':
205 gs-pathname: '{gs-pathname}'
210 description: 'Deployment timeout in minutes'
217 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
220 - description-setter:
221 description: "POD: $NODE_NAME"
222 - 'track-begin-timestamp'
224 !include-raw-escape: ./daisy4nfv-download-artifact.sh
226 !include-raw-escape: ./daisy-deploy.sh
228 - 'report-provision-result'
230 ########################
232 ########################
233 # ----------------------------------------------
234 # Triggers for job running on daisy-baremetal against master branch
235 # ----------------------------------------------
238 name: 'daisy-os-nosdn-nofeature-ha-baremetal-daily-master-trigger'
241 # Basic NOHA Scenarios
243 name: 'daisy-os-nosdn-nofeature-noha-baremetal-daily-master-trigger'
248 name: 'daisy-os-odl-nofeature-ha-baremetal-daily-master-trigger'
253 name: 'daisy-os-nosdn-ovs_dpdk-noha-baremetal-daily-master-trigger'
257 # ----------------------------------------------
258 # Triggers for job running on daisy-virtual against master branch
259 # ----------------------------------------------
262 name: 'daisy-os-nosdn-nofeature-ha-virtual-daily-master-trigger'
264 - timed: '0 16 * * *'
265 # Basic NOHA Scenarios
267 name: 'daisy-os-nosdn-nofeature-noha-virtual-daily-master-trigger'
272 name: 'daisy-os-odl-nofeature-ha-virtual-daily-master-trigger'
274 - timed: '0 12 * * *'
277 name: 'daisy-os-nosdn-ovs_dpdk-noha-virtual-daily-master-trigger'
281 # ----------------------------------------------
282 # Triggers for job running on daisy-baremetal against fraser branch
283 # ----------------------------------------------
286 name: 'daisy-os-nosdn-nofeature-ha-baremetal-daily-fraser-trigger'
288 - timed: '0 0,6 * * *'
289 # Basic NOHA Scenarios
291 name: 'daisy-os-nosdn-nofeature-noha-baremetal-daily-fraser-trigger'
296 name: 'daisy-os-odl-nofeature-ha-baremetal-daily-fraser-trigger'
298 - timed: '0 12,18 * * *'
301 name: 'daisy-os-nosdn-ovs_dpdk-noha-baremetal-daily-fraser-trigger'
305 # ----------------------------------------------
306 # Triggers for job running on daisy-virtual against fraser branch
307 # ----------------------------------------------
310 name: 'daisy-os-nosdn-nofeature-ha-virtual-daily-fraser-trigger'
313 # Basic NOHA Scenarios
315 name: 'daisy-os-nosdn-nofeature-noha-virtual-daily-fraser-trigger'
320 name: 'daisy-os-odl-nofeature-ha-virtual-daily-fraser-trigger'
322 - timed: '0 20 * * *'
325 name: 'daisy-os-nosdn-ovs_dpdk-noha-virtual-daily-fraser-trigger'
329 # ----------------------------------------------
330 # Triggers for job running on zte-pod3 against master branch
331 # ----------------------------------------------
334 name: 'daisy-os-nosdn-nofeature-ha-zte-pod3-daily-master-trigger'
337 # Basic NOHA Scenarios
339 name: 'daisy-os-nosdn-nofeature-noha-zte-pod3-daily-master-trigger'
344 name: 'daisy-os-odl-nofeature-ha-zte-pod3-daily-master-trigger'
349 name: 'daisy-os-nosdn-ovs_dpdk-noha-zte-pod3-daily-master-trigger'
353 # ----------------------------------------------
354 # Triggers for job running on zte-pod3 against fraser branch
355 # ----------------------------------------------
358 name: 'daisy-os-nosdn-nofeature-ha-zte-pod3-daily-fraser-trigger'
361 # Basic NOHA Scenarios
363 name: 'daisy-os-nosdn-nofeature-noha-zte-pod3-daily-fraser-trigger'
368 name: 'daisy-os-odl-nofeature-ha-zte-pod3-daily-fraser-trigger'
370 - timed: '0 16,22 * * *'
373 name: 'daisy-os-nosdn-ovs_dpdk-noha-zte-pod3-daily-fraser-trigger'
377 # ----------------------------------------------
378 # ZTE POD9 Triggers running against master branch
379 # ----------------------------------------------
382 name: 'daisy-os-nosdn-ovs_dpdk-noha-zte-pod9-daily-master-trigger'
384 - timed: '0 20 * * *'
387 name: 'daisy-os-nosdn-nofeature-ha-zte-pod9-daily-master-trigger'
390 # Basic NOHA Scenarios
392 name: 'daisy-os-nosdn-nofeature-noha-zte-pod9-daily-master-trigger'
397 name: 'daisy-os-odl-nofeature-ha-zte-pod9-daily-master-trigger'
401 # ----------------------------------------------
402 # ZTE POD9 Triggers running against fraser branch
403 # ----------------------------------------------
406 name: 'daisy-os-nosdn-ovs_dpdk-noha-zte-pod9-daily-fraser-trigger'
408 - timed: '0 10 * * *'
411 name: 'daisy-os-nosdn-nofeature-ha-zte-pod9-daily-fraser-trigger'
414 # Basic NOHA Scenarios
416 name: 'daisy-os-nosdn-nofeature-noha-zte-pod9-daily-fraser-trigger'
421 name: 'daisy-os-odl-nofeature-ha-zte-pod9-daily-fraser-trigger'