engine: Fix typo in job name
[infra/cicd.git] / jjb / engine / kubernetes-periodic-jobs / kubernetes-offline-deploy-test-jobs.yaml
1 ---
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2019 Nordix Foundation.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
19
20 - project:
21     name: 'kubernetes-deploy-test-offline'
22
23     project: 'kubernetes-deploy-test-offline'
24
25     stream:
26       - 'master':
27           branch: '{stream}'
28
29     distro:
30       - ubuntu1804
31
32     deploy-scenario:
33       - k8-multus-plugins
34
35     type:
36       - baremetal:
37           pod-name: est-baremetal
38           provisioner-type: bifrost
39           installer-type: kubespray
40           slave-label: baremetal-deploy
41           yardstick-dispatcher: 'file'
42
43     environment-type:
44       - offline:
45           disabled: false
46           execution-mode: offline-deployment
47           pdf: 'file:///opt/engine/offline/git/hwconfig/pods'
48           idf: 'file:///opt/engine/offline/git/hwconfig/pods'
49
50     phase:
51       - deploy:
52           build-timeout: 60
53       - functest:
54           build-timeout: 210
55       - yardstick:
56           build-timeout: 30
57
58     jobs:
59       - '{deploy-scenario}-{environment-type}-{distro}-{type}-periodic'
60       - 'kubernetes-{environment-type}-{phase}-{distro}-{type}-periodic'
61
62 - job-template:
63     name: '{deploy-scenario}-{environment-type}-{distro}-{type}-periodic'
64
65     project-type: multijob
66
67     disabled: '{obj:disabled}'
68
69     concurrent: true
70
71     parameters:
72       - label:
73           name: SLAVE_LABEL
74           default: '{slave-label}'
75           description: 'Slave label to schedule this job on.'
76       - string:
77           name: PROVISIONER_TYPE
78           default: '{provisioner-type}'
79           description: 'Provisioner type to use'
80       - string:
81           name: INSTALLER_TYPE
82           default: '{installer-type}'
83           description: 'Installer type to use'
84       - string:
85           name: DEPLOY_SCENARIO
86           default: '{deploy-scenario}'
87           description: 'Scenario to deploy and test'
88       - string:
89           name: PDF
90           default: '{pdf}/${{NODE_NAME}}-pdf.yml'
91           description: 'PDF file to use for deployment'
92       - string:
93           name: IDF
94           default: '{idf}/${{NODE_NAME}}-idf.yml'
95           description: 'IDF file to use for deployment'
96
97     properties:
98       - logrotate
99       - throttle:
100           max-per-node: 1
101           max-total: 3
102           option: project
103
104     wrappers:
105       - build-timeout:
106           timeout: 300
107       - mask-passwords
108       - fix-workspace-permissions
109
110     builders:
111       - description-setter:
112           description: $DEPLOY_SCENARIO | $PROVISIONER_TYPE | $INSTALLER_TYPE
113       - 'download-artifact-macro'
114       - multijob:
115           name: "Offline Deployment on {type}"
116           condition: SUCCESSFUL
117           execution-type: PARALLEL
118           projects:
119             - name: 'kubernetes-{environment-type}-deploy-{distro}-{type}-periodic'
120               current-parameters: true
121               node-parameters: true
122               kill-phase-on: FAILURE
123               abort-all-job: true
124       - multijob:
125           name: functest
126           condition: ALWAYS
127           projects:
128             - name: 'kubernetes-{environment-type}-functest-{distro}-{type}-periodic'
129               current-parameters: true
130               node-parameters: true
131               kill-phase-on: FAILURE
132               abort-all-job: true
133       - multijob:
134           name: yardstick
135           condition: ALWAYS
136           projects:
137             - name: 'kubernetes-{environment-type}-yardstick-{distro}-{type}-periodic'
138               current-parameters: true
139               node-parameters: true
140               kill-phase-on: FAILURE
141               abort-all-job: true
142
143 - job-template:
144     name: 'kubernetes-{environment-type}-{phase}-{distro}-{type}-periodic'
145
146     disabled: '{obj:disabled}'
147
148     parameters:
149       - string:
150           name: TEST_REPO_URL
151           default: 'https://gerrit.nordix.org/infra/test.git'
152           description: 'URL to clone the test repo from'
153       - string:
154           name: TEST_FW
155           default: '{phase}'
156           description: 'Test framework to use'
157       - string:
158           name: TEST_SUITE
159           default: 'smoke'
160           description: 'Test suite to run'
161       - string:
162           name: YARDSTICK_DISPATCHER
163           default: '{yardstick-dispatcher}'
164           description: 'Dispatcher to use for Yardstick reporting'
165
166     properties:
167       - logrotate
168       - throttle:
169           max-per-node: 1
170           max-total: 3
171           option: project
172
173     wrappers:
174       - build-timeout:
175           timeout: '{build-timeout}'
176       - mask-passwords
177       - fix-workspace-permissions
178
179     builders:
180       - description-setter:
181           description: $DEPLOY_SCENARIO | $PROVISIONER_TYPE | $INSTALLER_TYPE
182       - '{phase}-macro'