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
9 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
21 name: 'kubernetes-release-offline'
23 project: 'kubernetes-release-offline'
28 execution-mode: offline-deployment
39 openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-onap'
42 - 'kubernetes-periodic-release-{environment-type}-{distro}'
43 - 'kubernetes-periodic-package-{distro}'
44 - 'kubernetes-periodic-promote-{distro}'
47 name: 'kubernetes-periodic-release-{environment-type}-{distro}'
49 project-type: multijob
51 disabled: '{obj:disabled}'
58 default: '{execution-mode}'
59 description: 'Engine execution mode - online-deployment or offline-deployment - default is online-deployment'
63 description: 'Distribution to use for configuring target nodes (networking etc.)'
67 description: 'Installer type to use'
70 default: 'k8-calico-nofeature'
71 description: 'Scenario to deploy and test'
75 description: 'Verbosity setting for the engine - true or false - default is false'
77 name: ARTIFACTS_TO_UPLOAD
78 default: "k8s-installer-ubuntu1804.bsx offline-package.tgz"
79 description: 'Artifacts to upload'
81 name: ARTIFACT_TO_DOWNLOAD
82 default: "k8s-installer-ubuntu1804.bsx"
83 description: 'Artifact to download'
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'
89 name: NORDIX_ARM_HTTPS_URL
90 default: 'https://artifactory.nordix.org/artifactory'
91 description: 'URL to Nordix Artifactory'
94 default: 'nordix-kubernetes'
95 description: 'Name of the repository to upload and download artifact to/from. Depends on the stack'
99 description: 'CI loop type'
102 default: 'engine-build-ubuntu1804'
103 description: 'Slave label to schedule this job on.'
112 - fix-workspace-permissions
116 cron: "H 0,8,16 * * *"
120 url: https://gerrit.nordix.org/infra/engine.git
127 - 'generate-ssh-keypair-macro'
128 - 'generate-build-metadata-macro'
129 - 'wait-pkg-mgr-macro'
132 condition: SUCCESSFUL
133 execution-type: PARALLEL
135 - name: 'kubernetes-periodic-package-{distro}'
136 current-parameters: true
138 node-parameters: true
139 property-file: "$WORKSPACE/build.properties"
140 kill-phase-on: FAILURE
143 name: release test k8-calico-nofeature
144 condition: SUCCESSFUL
145 execution-type: PARALLEL
147 - name: 'k8-calico-nofeature-offline-{distro}-baremetal-periodic'
148 current-parameters: 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
157 kill-phase-on: FAILURE
160 name: release test k8-multus-nofeature
161 condition: SUCCESSFUL
162 execution-type: PARALLEL
164 - name: 'k8-multus-nofeature-offline-{distro}-baremetal-periodic'
165 current-parameters: 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
174 kill-phase-on: FAILURE
178 condition: SUCCESSFUL
179 execution-type: PARALLEL
181 - name: 'kubernetes-periodic-promote-{distro}'
182 current-parameters: true
184 node-parameters: true
185 property-file: "$WORKSPACE/build.properties"
186 kill-phase-on: FAILURE
190 name: 'kubernetes-periodic-package-{distro}'
192 disabled: '{obj:disabled}'
202 - credentials-binding:
203 - username-password-separated:
204 credential-id: 'nordix-cicd-arm-credentials'
205 username: NORDIX_ARM_USERNAME
206 password: NORDIX_ARM_TOKEN
208 - fix-workspace-permissions
212 url: https://gerrit.nordix.org/infra/engine.git
220 - 'upload-artifact-macro'
223 name: 'kubernetes-periodic-promote-{distro}'
225 disabled: '{obj:disabled}'
235 - credentials-binding:
236 - username-password-separated:
237 credential-id: 'nordix-cicd-arm-credentials'
238 username: NORDIX_ARM_USERNAME
239 password: NORDIX_ARM_TOKEN
241 - fix-workspace-permissions
245 url: https://gerrit.nordix.org/infra/engine.git