blob: 28081a092a96f574c656781a6e836ce8f5ef5c0e [file] [log] [blame]
Fatih Degirmencic4db9952020-03-19 12:46:33 +00001---
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:
Fatih Degirmenci6af3e782020-04-15 07:06:51 +000021 name: 'kubernetes-release-offline'
Fatih Degirmencic4db9952020-03-19 12:46:33 +000022
Fatih Degirmenci6af3e782020-04-15 07:06:51 +000023 project: 'kubernetes-release-offline'
Fatih Degirmencic4db9952020-03-19 12:46:33 +000024
25 environment-type:
26 - offline:
27 disabled: false
28 execution-mode: offline-deployment
Fatih Degirmencic4db9952020-03-19 12:46:33 +000029
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}'
Fatih Degirmenci299841a2020-03-22 09:04:13 +000043 - 'kubernetes-periodic-package-{distro}'
44 - 'kubernetes-periodic-promote-{distro}'
Fatih Degirmencic4db9952020-03-19 12:46:33 +000045
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
Fatih Degirmenci011e8a02020-04-22 08:58:14 +000070 default: 'k8-multus-plugins'
Fatih Degirmencic4db9952020-03-19 12:46:33 +000071 description: 'Scenario to deploy and test'
72 - string:
Fatih Degirmencic4db9952020-03-19 12:46:33 +000073 name: VERBOSITY
74 default: 'true'
75 description: 'Verbosity setting for the engine - true or false - default is false'
76 - string:
Fatih Degirmenci8d3e6822020-03-19 14:55:23 +000077 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:
Fatih Degirmencic4db9952020-03-19 12:46:33 +000085 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:
Fatih Degirmenci8d3e6822020-03-19 14:55:23 +000097 name: CI_LOOP
98 default: 'periodic'
99 description: 'CI loop type'
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000100 - label:
101 name: SLAVE_LABEL
Fatih Degirmenci4e7a0402020-04-17 18:59:53 +0000102 default: 'engine-package-ubuntu1804'
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000103 description: 'Slave label to schedule this job on.'
104
105 properties:
106 - logrotate
Fatih Degirmenci4e7a0402020-04-17 18:59:53 +0000107 - 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'
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000115
116 wrappers:
Fatih Degirmenci98990a62020-03-31 07:04:21 +0000117 - build-timeout:
118 timeout: 600
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000119 - 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:
Fatih Degirmenci8d3e6822020-03-19 14:55:23 +0000135 - 'generate-ssh-keypair-macro'
Fatih Degirmenci299841a2020-03-22 09:04:13 +0000136 - 'generate-build-metadata-macro'
137 - 'wait-pkg-mgr-macro'
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000138 - multijob:
Fatih Degirmenci8d3e6822020-03-19 14:55:23 +0000139 name: package
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000140 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
Fatih Degirmenci8d3e6822020-03-19 14:55:23 +0000147 property-file: "$WORKSPACE/build.properties"
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000148 kill-phase-on: FAILURE
149 abort-all-job: true
150 - multijob:
Fatih Degirmenci011e8a02020-04-22 08:58:14 +0000151 name: release test k8-multus-plugins
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000152 condition: SUCCESSFUL
153 execution-type: PARALLEL
154 projects:
Fatih Degirmenci011e8a02020-04-22 08:58:14 +0000155 - name: 'k8-multus-multus-plugins-offline-{distro}-baremetal-periodic'
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000156 current-parameters: false
157 git-revision: false
158 node-parameters: false
Fatih Degirmenci8d3e6822020-03-19 14:55:23 +0000159 property-file: "$WORKSPACE/build.properties"
160 predefined-parameters: |
Fatih Degirmenci299841a2020-03-22 09:04:13 +0000161 EXECUTION_MODE=$EXECUTION_MODE
Fatih Degirmenci8d3e6822020-03-19 14:55:23 +0000162 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
163 ARTIFACT_TO_DOWNLOAD=$ARTIFACT_TO_DOWNLOAD
164 VERBOSITY=$VERBOSITY
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000165 kill-phase-on: FAILURE
166 abort-all-job: true
167 - multijob:
168 name: promotion
169 condition: SUCCESSFUL
170 execution-type: PARALLEL
171 projects:
Fatih Degirmenci8d3e6822020-03-19 14:55:23 +0000172 - name: 'kubernetes-periodic-promote-{distro}'
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000173 current-parameters: true
174 git-revision: true
175 node-parameters: true
Fatih Degirmenci8d3e6822020-03-19 14:55:23 +0000176 property-file: "$WORKSPACE/build.properties"
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000177 kill-phase-on: FAILURE
178 abort-all-job: true
179
180- job-template:
Fatih Degirmenci299841a2020-03-22 09:04:13 +0000181 name: 'kubernetes-periodic-package-{distro}'
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000182
183 disabled: '{obj:disabled}'
184
185 concurrent: false
186
187 properties:
188 - logrotate
189
190 wrappers:
Fatih Degirmenci98990a62020-03-31 07:04:21 +0000191 - build-timeout:
192 timeout: 70
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000193 - 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:
Fatih Degirmenci299841a2020-03-22 09:04:13 +0000210 - 'package-macro'
211 - 'upload-artifact-macro'
Fatih Degirmencic4db9952020-03-19 12:46:33 +0000212
Fatih Degirmenci299841a2020-03-22 09:04:13 +0000213- 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:
Fatih Degirmenci98990a62020-03-31 07:04:21 +0000224 - build-timeout:
225 timeout: 30
Fatih Degirmenci299841a2020-03-22 09:04:13 +0000226 - 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'