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: 'engine-deployment'
23 project: 'engine-deployment'
28 gated-projects: 'infra\/engine'
33 execution-mode: online-deployment
40 execution-mode: offline-deployment
51 openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-onap'
54 - 'engine-verify-{environment-type}-{distro}-{cloud}-{stream}'
55 - 'engine-verify-package-{distro}-{stream}'
58 name: 'engine-verify-{environment-type}-{distro}-{cloud}-{stream}'
60 project-type: multijob
62 disabled: '{obj:disabled}'
69 default: '{execution-mode}'
70 description: 'Engine execution mode - online-deployment or offline-deployment - default is online-deployment'
74 description: 'Distribution to use for configuring target nodes (networking etc.)'
78 description: 'Installer type to use'
81 default: 'k8-calico-nofeature'
82 description: 'Scenario to deploy and test'
86 description: 'Verbosity setting for the engine - true or false - default is false'
88 name: ARTIFACTS_TO_UPLOAD
89 default: "k8s-installer-ubuntu1804.bsx"
90 description: 'Artifacts to upload'
92 name: ARTIFACT_TO_DOWNLOAD
93 default: "k8s-installer-ubuntu1804.bsx"
94 description: 'Artifact to download'
96 name: NORDIX_ARM_PUBLIC_IP
97 default: '91.106.198.25'
98 description: 'Public IP of Nordix Artifactory. Offline deployments can not resolve domain name'
100 name: NORDIX_ARM_HTTPS_URL
101 default: 'https://artifactory.nordix.org/artifactory'
102 description: 'URL to Nordix Artifactory'
104 name: NORDIX_ARM_REPO
105 default: 'nordix-kubernetes'
106 description: 'Name of the repository to upload and download artifact to/from. Depends on the stack'
110 description: 'CI loop type'
113 default: 'engine-master-{environment-type}-{distro}'
114 description: 'Slave label to schedule this job on.'
115 - project-parameters:
116 project: $GERRIT_PROJECT
118 description: 'The project and branch which the change is proposed for'
119 - nordix-gerrit-parameters
132 - fix-workspace-permissions
138 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
140 refspec: $GERRIT_REFSPEC
146 server-name: 'Nordix Gerrit'
148 - patchset-created-event:
149 exclude-drafts: 'false'
150 exclude-trivial-rebase: 'false'
151 exclude-no-code-change: 'false'
152 - draft-published-event
153 - comment-added-contains-event:
154 comment-contains-value: 'recheck'
155 - comment-added-contains-event:
156 comment-contains-value: 'reverify'
158 - project-compare-type: 'REG_EXP'
159 project-pattern: '{gated-projects}'
161 - branch-compare-type: 'ANT'
162 branch-pattern: '**/{branch}'
163 disable-strict-forbidden-file-verification: 'true'
164 forbidden-file-paths:
166 pattern: 'docs/**|releasenotes/**'
168 successful: '{obj:successful}'
169 failed: '{obj:failed}'
170 unstable: '{obj:unstable}'
171 notbuilt: '{obj:notbuilt}'
172 custom-url: '* $JOB_NAME $BUILD_URL'
173 readable-message: 'true'
174 dependency-jobs: 'engine-verify-tox-{stream}'
177 - 'generate-ssh-keypair-macro'
178 - 'generate-build-metadata-macro'
179 - 'wait-pkg-mgr-macro'
182 condition: SUCCESSFUL
183 execution-type: PARALLEL
185 - name: 'engine-verify-package-{distro}-{stream}'
186 current-parameters: true
187 node-parameters: true
188 property-file: "$WORKSPACE/build.properties"
189 kill-phase-on: FAILURE
192 name: "{environment-type} deployment and testing"
193 condition: SUCCESSFUL
194 execution-type: PARALLEL
196 - name: 'engine-verify-{environment-type}-deploy-test-{distro}-city-virtual-master'
197 current-parameters: false
198 node-parameters: false
199 predefined-parameters: |
200 GIT_BASE_SSH=$GIT_BASE_SSH
201 GERRIT_PROJECT=$GERRIT_PROJECT
202 GERRIT_BRANCH=$GERRIT_BRANCH
203 GERRIT_REFSPEC=$GERRIT_REFSPEC
204 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
205 GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
206 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
207 PROJECT=$GERRIT_PROJECT
209 ARTIFACT_TO_DOWNLOAD=$ARTIFACT_TO_DOWNLOAD
210 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
211 EXECUTION_MODE=$EXECUTION_MODE
214 INSTALLER_TYPE=$INSTALLER_TYPE
215 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
216 property-file: "$WORKSPACE/build.properties"
217 kill-phase-on: FAILURE
219 - name: 'engine-verify-{environment-type}-deploy-test-{distro}-city-cloud-master'
220 current-parameters: false
221 node-parameters: false
222 predefined-parameters: |
223 GIT_BASE_SSH=$GIT_BASE_SSH
224 GERRIT_PROJECT=$GERRIT_PROJECT
225 GERRIT_BRANCH=$GERRIT_BRANCH
226 GERRIT_REFSPEC=$GERRIT_REFSPEC
227 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
228 GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
229 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
230 PROJECT=$GERRIT_PROJECT
232 ARTIFACT_TO_DOWNLOAD=$ARTIFACT_TO_DOWNLOAD
233 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
234 EXECUTION_MODE=$EXECUTION_MODE
237 INSTALLER_TYPE=$INSTALLER_TYPE
238 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
239 property-file: "$WORKSPACE/build.properties"
240 kill-phase-on: FAILURE
244 name: 'engine-verify-package-{distro}-{stream}'
246 disabled: '{obj:disabled}'
260 - credentials-binding:
261 - username-password-separated:
262 credential-id: 'nordix-cicd-arm-credentials'
263 username: NORDIX_ARM_USERNAME
264 password: NORDIX_ARM_TOKEN
266 - fix-workspace-permissions
270 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
272 refspec: $GERRIT_REFSPEC
278 - 'upload-artifact-macro'