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:
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'
176 - 'generate-ssh-keypair-macro'
177 - 'generate-build-metadata-macro'
178 - 'wait-pkg-mgr-macro'
181 condition: SUCCESSFUL
182 execution-type: PARALLEL
184 - name: 'engine-verify-package-{distro}-{stream}'
185 current-parameters: true
186 node-parameters: true
187 property-file: "$WORKSPACE/build.properties"
188 kill-phase-on: FAILURE
191 name: "{environment-type} deployment and testing"
192 condition: SUCCESSFUL
193 execution-type: PARALLEL
195 - name: 'engine-verify-{environment-type}-deploy-test-{distro}-city-virtual-master'
196 current-parameters: false
197 node-parameters: false
198 predefined-parameters: |
199 GIT_BASE_SSH=$GIT_BASE_SSH
200 GERRIT_PROJECT=$GERRIT_PROJECT
201 GERRIT_BRANCH=$GERRIT_BRANCH
202 GERRIT_REFSPEC=$GERRIT_REFSPEC
203 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
204 GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
205 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
206 PROJECT=$GERRIT_PROJECT
208 ARTIFACT_TO_DOWNLOAD=$ARTIFACT_TO_DOWNLOAD
209 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
210 EXECUTION_MODE=$EXECUTION_MODE
213 INSTALLER_TYPE=$INSTALLER_TYPE
214 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
215 property-file: "$WORKSPACE/build.properties"
216 kill-phase-on: FAILURE
218 - name: 'engine-verify-{environment-type}-deploy-test-{distro}-city-cloud-master'
219 current-parameters: false
220 node-parameters: false
221 predefined-parameters: |
222 GIT_BASE_SSH=$GIT_BASE_SSH
223 GERRIT_PROJECT=$GERRIT_PROJECT
224 GERRIT_BRANCH=$GERRIT_BRANCH
225 GERRIT_REFSPEC=$GERRIT_REFSPEC
226 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
227 GERRIT_CHANGE_ID=$GERRIT_CHANGE_ID
228 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
229 PROJECT=$GERRIT_PROJECT
231 ARTIFACT_TO_DOWNLOAD=$ARTIFACT_TO_DOWNLOAD
232 NORDIX_ARM_PUBLIC_IP=$NORDIX_ARM_PUBLIC_IP
233 EXECUTION_MODE=$EXECUTION_MODE
236 INSTALLER_TYPE=$INSTALLER_TYPE
237 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
238 property-file: "$WORKSPACE/build.properties"
239 kill-phase-on: FAILURE
243 name: 'engine-verify-package-{distro}-{stream}'
245 disabled: '{obj:disabled}'
259 - credentials-binding:
260 - username-password-separated:
261 credential-id: 'nordix-cicd-arm-credentials'
262 username: NORDIX_ARM_USERNAME
263 password: NORDIX_ARM_TOKEN
265 - fix-workspace-permissions
269 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
271 refspec: $GERRIT_REFSPEC
277 - 'upload-artifact-macro'