engine: Fix typo in job name
[infra/cicd.git] / jjb / engine / kubernetes-periodic-jobs / kubernetes-offline-release-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-release-offline'
22
23     project: 'kubernetes-release-offline'
24
25     environment-type:
26       - offline:
27           disabled: false
28           execution-mode: offline-deployment
29
30     distro:
31       - ubuntu1804
32
33     phase:
34       - package
35       - promote
36
37     cloud:
38       - city:
39           openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-onap'
40
41     jobs:
42       - 'kubernetes-periodic-release-{environment-type}-{distro}'
43       - 'kubernetes-periodic-package-{distro}'
44       - 'kubernetes-periodic-promote-{distro}'
45
46 - job-template:
47     name: 'kubernetes-periodic-release-{environment-type}-{distro}'
48
49     project-type: multijob
50
51     disabled: '{obj:disabled}'
52
53     concurrent: false
54
55     parameters:
56       - string:
57           name: EXECUTION_MODE
58           default: '{execution-mode}'
59           description: 'Engine execution mode - online-deployment or offline-deployment - default is online-deployment'
60       - string:
61           name: DISTRO
62           default: '{distro}'
63           description: 'Distribution to use for configuring target nodes (networking etc.)'
64       - string:
65           name: INSTALLER_TYPE
66           default: 'kubespray'
67           description: 'Installer type to use'
68       - string:
69           name: DEPLOY_SCENARIO
70           default: 'k8-multus-plugins'
71           description: 'Scenario to deploy and test'
72       - string:
73           name: VERBOSITY
74           default: 'true'
75           description: 'Verbosity setting for the engine - true or false - default is false'
76       - string:
77           name: ARTIFACTS_TO_UPLOAD
78           default: "k8s-installer-ubuntu1804.bsx offline-package.tgz"
79           description: 'Artifacts to upload'
80       - string:
81           name: ARTIFACT_TO_DOWNLOAD
82           default: "k8s-installer-ubuntu1804.bsx"
83           description: 'Artifact to download'
84       - string:
85           name: NORDIX_ARM_PUBLIC_IP
86           default: '91.106.198.25'
87           description: 'Public IP of Nordix Artifactory. Offline deployments can not resolve domain name'
88       - string:
89           name: NORDIX_ARM_HTTPS_URL
90           default: 'https://artifactory.nordix.org/artifactory'
91           description: 'URL to Nordix Artifactory'
92       - string:
93           name: NORDIX_ARM_REPO
94           default: 'nordix-kubernetes'
95           description: 'Name of the repository to upload and download artifact to/from. Depends on the stack'
96       - string:
97           name: CI_LOOP
98           default: 'periodic'
99           description: 'CI loop type'
100       - label:
101           name: SLAVE_LABEL
102           default: 'engine-package-ubuntu1804'
103           description: 'Slave label to schedule this job on.'
104
105     properties:
106       - logrotate
107       - build-blocker:
108           use-build-blocker: true
109           blocking-jobs:
110             - 'engine-verify-package-.*'
111             - 'onap-sdc-periodic-release-offline-.*'
112             - 'onap-so-periodic-release-offline-.*'
113             - 'kubernetes-periodic-release-offline-.*'
114           block-level: 'NODE'
115
116     wrappers:
117       - build-timeout:
118           timeout: 600
119       - mask-passwords
120       - fix-workspace-permissions
121
122     triggers:
123       - pollscm:
124           cron: "H 0,8,16 * * *"
125
126     scm:
127       - git:
128           url: https://gerrit.nordix.org/infra/engine.git
129           branches:
130             - master
131           timeout: 15
132           wipe-workspace: true
133
134     builders:
135       - 'generate-ssh-keypair-macro'
136       - 'generate-build-metadata-macro'
137       - 'wait-pkg-mgr-macro'
138       - multijob:
139           name: package
140           condition: SUCCESSFUL
141           execution-type: PARALLEL
142           projects:
143             - name: 'kubernetes-periodic-package-{distro}'
144               current-parameters: true
145               git-revision: true
146               node-parameters: true
147               property-file: "$WORKSPACE/build.properties"
148               kill-phase-on: FAILURE
149               abort-all-job: true
150       - multijob:
151           name: release test k8-multus-plugins
152           condition: SUCCESSFUL
153           execution-type: PARALLEL
154           projects:
155             - name: 'k8-multus-plugins-offline-{distro}-baremetal-periodic'
156               current-parameters: false
157               git-revision: false
158               node-parameters: false
159               property-file: "$WORKSPACE/build.properties"
160               predefined-parameters: |
161                 EXECUTION_MODE=$EXECUTION_MODE
162                 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
163                 ARTIFACT_TO_DOWNLOAD=$ARTIFACT_TO_DOWNLOAD
164                 VERBOSITY=$VERBOSITY
165               kill-phase-on: FAILURE
166               abort-all-job: true
167       - multijob:
168           name: promotion
169           condition: SUCCESSFUL
170           execution-type: PARALLEL
171           projects:
172             - name: 'kubernetes-periodic-promote-{distro}'
173               current-parameters: true
174               git-revision: true
175               node-parameters: true
176               property-file: "$WORKSPACE/build.properties"
177               kill-phase-on: FAILURE
178               abort-all-job: true
179
180 - job-template:
181     name: 'kubernetes-periodic-package-{distro}'
182
183     disabled: '{obj:disabled}'
184
185     concurrent: false
186
187     properties:
188       - logrotate
189
190     wrappers:
191       - build-timeout:
192           timeout: 70
193       - credentials-binding:
194           - username-password-separated:
195               credential-id: 'nordix-cicd-arm-credentials'
196               username: NORDIX_ARM_USERNAME
197               password: NORDIX_ARM_TOKEN
198       - mask-passwords
199       - fix-workspace-permissions
200
201     scm:
202       - git:
203           url: https://gerrit.nordix.org/infra/engine.git
204           branches:
205             - master
206           timeout: 15
207           wipe-workspace: true
208
209     builders:
210       - 'package-macro'
211       - 'upload-artifact-macro'
212
213 - job-template:
214     name: 'kubernetes-periodic-promote-{distro}'
215
216     disabled: '{obj:disabled}'
217
218     concurrent: false
219
220     properties:
221       - logrotate
222
223     wrappers:
224       - build-timeout:
225           timeout: 30
226       - credentials-binding:
227           - username-password-separated:
228               credential-id: 'nordix-cicd-arm-credentials'
229               username: NORDIX_ARM_USERNAME
230               password: NORDIX_ARM_TOKEN
231       - mask-passwords
232       - fix-workspace-permissions
233
234     scm:
235       - git:
236           url: https://gerrit.nordix.org/infra/engine.git
237           branches:
238             - master
239           timeout: 15
240           wipe-workspace: true
241
242     builders:
243       - 'promote-macro'