ORANSC: Added doc repository
[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-calico-nofeature'
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-build-ubuntu1804'
103           description: 'Slave label to schedule this job on.'
104
105     properties:
106       - logrotate
107
108     wrappers:
109       - build-timeout:
110           timeout: 600
111       - mask-passwords
112       - fix-workspace-permissions
113
114     triggers:
115       - pollscm:
116           cron: "H 0,8,16 * * *"
117
118     scm:
119       - git:
120           url: https://gerrit.nordix.org/infra/engine.git
121           branches:
122             - master
123           timeout: 15
124           wipe-workspace: true
125
126     builders:
127       - 'generate-ssh-keypair-macro'
128       - 'generate-build-metadata-macro'
129       - 'wait-pkg-mgr-macro'
130       - multijob:
131           name: package
132           condition: SUCCESSFUL
133           execution-type: PARALLEL
134           projects:
135             - name: 'kubernetes-periodic-package-{distro}'
136               current-parameters: true
137               git-revision: true
138               node-parameters: true
139               property-file: "$WORKSPACE/build.properties"
140               kill-phase-on: FAILURE
141               abort-all-job: true
142       - multijob:
143           name: release test k8-calico-nofeature
144           condition: SUCCESSFUL
145           execution-type: PARALLEL
146           projects:
147             - name: 'k8-calico-nofeature-offline-{distro}-baremetal-periodic'
148               current-parameters: false
149               git-revision: false
150               node-parameters: false
151               property-file: "$WORKSPACE/build.properties"
152               predefined-parameters: |
153                 EXECUTION_MODE=$EXECUTION_MODE
154                 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
155                 ARTIFACT_TO_DOWNLOAD=$ARTIFACT_TO_DOWNLOAD
156                 VERBOSITY=$VERBOSITY
157               kill-phase-on: FAILURE
158               abort-all-job: true
159       - multijob:
160           name: release test k8-multus-nofeature
161           condition: SUCCESSFUL
162           execution-type: PARALLEL
163           projects:
164             - name: 'k8-multus-nofeature-offline-{distro}-baremetal-periodic'
165               current-parameters: false
166               git-revision: false
167               node-parameters: false
168               property-file: "$WORKSPACE/build.properties"
169               predefined-parameters: |
170                 EXECUTION_MODE=$EXECUTION_MODE
171                 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
172                 ARTIFACT_TO_DOWNLOAD=$ARTIFACT_TO_DOWNLOAD
173                 VERBOSITY=$VERBOSITY
174               kill-phase-on: FAILURE
175               abort-all-job: true
176       - multijob:
177           name: promotion
178           condition: SUCCESSFUL
179           execution-type: PARALLEL
180           projects:
181             - name: 'kubernetes-periodic-promote-{distro}'
182               current-parameters: true
183               git-revision: true
184               node-parameters: true
185               property-file: "$WORKSPACE/build.properties"
186               kill-phase-on: FAILURE
187               abort-all-job: true
188
189 - job-template:
190     name: 'kubernetes-periodic-package-{distro}'
191
192     disabled: '{obj:disabled}'
193
194     concurrent: false
195
196     properties:
197       - logrotate
198
199     wrappers:
200       - build-timeout:
201           timeout: 70
202       - credentials-binding:
203           - username-password-separated:
204               credential-id: 'nordix-cicd-arm-credentials'
205               username: NORDIX_ARM_USERNAME
206               password: NORDIX_ARM_TOKEN
207       - mask-passwords
208       - fix-workspace-permissions
209
210     scm:
211       - git:
212           url: https://gerrit.nordix.org/infra/engine.git
213           branches:
214             - master
215           timeout: 15
216           wipe-workspace: true
217
218     builders:
219       - 'package-macro'
220       - 'upload-artifact-macro'
221
222 - job-template:
223     name: 'kubernetes-periodic-promote-{distro}'
224
225     disabled: '{obj:disabled}'
226
227     concurrent: false
228
229     properties:
230       - logrotate
231
232     wrappers:
233       - build-timeout:
234           timeout: 30
235       - credentials-binding:
236           - username-password-separated:
237               credential-id: 'nordix-cicd-arm-credentials'
238               username: NORDIX_ARM_USERNAME
239               password: NORDIX_ARM_TOKEN
240       - mask-passwords
241       - fix-workspace-permissions
242
243     scm:
244       - git:
245           url: https://gerrit.nordix.org/infra/engine.git
246           branches:
247             - master
248           timeout: 15
249           wipe-workspace: true
250
251     builders:
252       - 'promote-macro'