Revert "Revert "GEODE: Update branch to: release-nordix/1.12.0""
[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       - string:
97           name: CI_LOOP
98           default: 'periodic'
99           description: 'CI loop type'
100
101     properties:
102       - logrotate
103       - throttle:
104           max-per-node: 1
105           max-total: 3
106           option: project
107
108     wrappers:
109       - build-timeout:
110           timeout: 300
111       - mask-passwords
112       - fix-workspace-permissions
113
114     builders:
115       - description-setter:
116           description: $DEPLOY_SCENARIO | $PROVISIONER_TYPE | $INSTALLER_TYPE
117       - 'download-artifact-macro'
118       - multijob:
119           name: "Offline Deployment on {type}"
120           condition: SUCCESSFUL
121           execution-type: PARALLEL
122           projects:
123             - name: 'kubernetes-{environment-type}-deploy-{distro}-{type}-periodic'
124               current-parameters: true
125               node-parameters: true
126               kill-phase-on: FAILURE
127               abort-all-job: true
128       - multijob:
129           name: functest
130           condition: ALWAYS
131           projects:
132             - name: 'kubernetes-{environment-type}-functest-{distro}-{type}-periodic'
133               current-parameters: true
134               node-parameters: true
135               kill-phase-on: FAILURE
136               abort-all-job: true
137       - multijob:
138           name: yardstick
139           condition: ALWAYS
140           projects:
141             - name: 'kubernetes-{environment-type}-yardstick-{distro}-{type}-periodic'
142               current-parameters: true
143               node-parameters: true
144               kill-phase-on: FAILURE
145               abort-all-job: true
146
147 - job-template:
148     name: 'kubernetes-{environment-type}-{phase}-{distro}-{type}-periodic'
149
150     disabled: '{obj:disabled}'
151
152     parameters:
153       - string:
154           name: TEST_REPO_URL
155           default: 'https://gerrit.nordix.org/infra/test.git'
156           description: 'URL to clone the test repo from'
157       - string:
158           name: TEST_FW
159           default: '{phase}'
160           description: 'Test framework to use'
161       - string:
162           name: TEST_SUITE
163           default: 'smoke'
164           description: 'Test suite to run'
165       - string:
166           name: YARDSTICK_DISPATCHER
167           default: '{yardstick-dispatcher}'
168           description: 'Dispatcher to use for Yardstick reporting'
169
170     properties:
171       - logrotate
172       - throttle:
173           max-per-node: 1
174           max-total: 3
175           option: project
176
177     wrappers:
178       - build-timeout:
179           timeout: '{build-timeout}'
180       - mask-passwords
181       - fix-workspace-permissions
182
183     builders:
184       - description-setter:
185           description: $DEPLOY_SCENARIO | $PROVISIONER_TYPE | $INSTALLER_TYPE
186       - '{phase}-macro'