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-verify-deploy-test'
23 project: 'engine-verify-deploy-test'
32 execution-mode: online-deployment
33 pdf: 'https://gerrit.nordix.org/gitweb?p=infra/hwconfig.git;a=blob_plain;f=pods/nordix-vpod1-pdf.yml'
34 idf: 'https://gerrit.nordix.org/gitweb?p=infra/hwconfig.git;a=blob_plain;f=pods/nordix-vpod1-idf.yml'
41 execution-mode: offline-deployment
42 pdf: 'file:///opt/engine/offline/git/hwconfig/pods/nordix-vpod1-pdf.yml'
43 idf: 'file:///opt/engine/offline/git/hwconfig/pods/nordix-vpod1-idf.yml'
55 provisioner-type: 'bifrost'
57 gated-projects: 'infra\/engine|infra\/provisioner\/bifrost\/|infra\/installer\/kolla\/|infra\/installer\/kubespray\/'
59 provisioner-type: 'heat'
60 slave-type: 'jumphost'
61 gated-projects: 'infra\/engine|infra\/provisioner\/heat\/|infra\/installer\/kolla\/|infra\/installer\/kubespray\/'
68 openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-onap'
71 - 'engine-verify-{environment-type}-deploy-test-{distro}-{cloud}-{type}-{stream}'
72 - 'engine-verify-{environment-type}-{phase}-{distro}-{cloud}-{type}-{stream}'
75 name: 'engine-verify-{environment-type}-deploy-test-{distro}-{cloud}-{type}-{stream}'
77 project-type: multijob
79 disabled: '{obj:disabled}'
85 project: $GERRIT_PROJECT
87 description: 'The project and branch which the change is proposed for'
90 default: 'engine-{slave-type}-online-{distro}'
91 description: 'Slave label to schedule this job on.'
94 default: '{execution-mode}'
95 description: 'Execution mode to run in'
97 name: PROVISIONER_TYPE
98 default: '{provisioner-type}'
99 description: 'Provisioner type to use'
103 description: 'Installer type to use'
105 name: DEPLOY_SCENARIO
106 default: 'k8-calico-nofeature'
107 description: 'Scenario to deploy'
111 description: 'PDF file to use for deployment'
115 description: 'IDF file to use for deployment'
117 name: HEAT_ENVIRONMENT_FILENAME
118 default: 'heat-environment-{cloud}-{distro}.yaml'
119 description: 'Name of heat-environment file to use.'
122 default: "nordix-cicd-verify-engine-online-{distro}-$GERRIT_CHANGE_NUMBER"
123 description: 'Name of the created stack'
126 default: "keypair-nordix-cicd-verify-engine-online-{distro}-$GERRIT_CHANGE_NUMBER"
127 description: 'Name of the created keypair'
129 name: USE_PREBUILT_DEPLOYMENT_IMAGE
131 description: 'Use prebuilt deployment image while running as part of CI/CD'
134 default: 'https://gerrit.nordix.org/infra/test.git'
135 description: 'URL to clone the test repo from'
139 description: 'Test framework to use'
142 default: 'healthcheck'
143 description: 'Test suite to run'
145 name: YARDSTICK_DISPATCHER
147 description: 'Dispatcher to use for Yardstick reporting'
151 description: 'Delete the stack upon completion of the build'
155 description: 'Verbosity setting for the engine - true or false - default is false'
157 name: NORDIX_ARM_PUBLIC_IP
158 default: '91.106.198.25'
159 description: 'Public IP of Nordix Artifactory. Offline deployments can not resolve domain name'
161 name: NORDIX_ARM_HTTPS_URL
162 default: 'https://artifactory.nordix.org/artifactory'
163 description: 'URL to Nordix Artifactory'
165 name: NORDIX_ARM_REPO
166 default: 'nordix-kubernetes'
167 description: 'Name of the repository to upload and download artifact to/from. Depends on the stack'
169 name: ARTIFACT_TO_DOWNLOAD
170 default: "https://artifactory.nordix.org/artifactory/nordix-kubernetes/installer/oss/gerrit/$GERRIT_CHANGE_ID/k8s-installer-ubuntu1804.bsx"
171 description: 'Artifact to download'
183 - credentials-binding:
185 credential-id: '{openrc-credentials-file}'
186 variable: OPENRC_FILE
187 - username-password-separated:
188 credential-id: 'nordix-cicd-arm-credentials'
189 username: NORDIX_ARM_USERNAME
190 password: NORDIX_ARM_TOKEN
192 - fix-workspace-permissions
198 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
200 refspec: $GERRIT_REFSPEC
206 server-name: 'Nordix Gerrit'
208 - patchset-created-event:
209 exclude-drafts: 'false'
210 exclude-trivial-rebase: 'false'
211 exclude-no-code-change: 'false'
212 - draft-published-event
213 - comment-added-contains-event:
214 comment-contains-value: 'recheck'
215 - comment-added-contains-event:
216 comment-contains-value: 'reverify'
218 - project-compare-type: 'REG_EXP'
219 project-pattern: '{gated-projects}'
221 - branch-compare-type: 'ANT'
222 branch-pattern: '**/{branch}'
223 disable-strict-forbidden-file-verification: 'true'
224 forbidden-file-paths:
226 pattern: 'docs/**|releasenotes/**'
228 successful: '{obj:successful}'
229 failed: '{obj:failed}'
230 unstable: '{obj:unstable}'
231 notbuilt: '{obj:notbuilt}'
232 custom-url: '* $JOB_NAME $BUILD_URL'
233 readable-message: 'true'
234 dependency-jobs: 'engine-verify-tox-{stream},engine-verify-package-{distro}-{stream}'
238 name: "{environment-type} deployment on {type} instances"
239 condition: SUCCESSFUL
240 execution-type: PARALLEL
242 - name: 'engine-verify-{environment-type}-deploy-{distro}-city-{type}-master'
243 current-parameters: true
245 node-parameters: true
246 kill-phase-on: FAILURE
249 name: "{environment-type} testing on {type} instances"
250 condition: SUCCESSFUL
251 execution-type: PARALLEL
253 - name: 'engine-verify-{environment-type}-functest-{distro}-city-{type}-master'
254 current-parameters: true
256 node-parameters: true
257 kill-phase-on: FAILURE
271 - 'wait-pkg-mgr-macro'
272 - 'delete-stack-macro'
275 name: 'engine-verify-{environment-type}-{phase}-{distro}-{cloud}-{type}-{stream}'
277 disabled: '{obj:disabled}'
291 - credentials-binding:
293 credential-id: '{openrc-credentials-file}'
294 variable: OPENRC_FILE
295 - username-password-separated:
296 credential-id: 'nordix-cicd-arm-credentials'
297 username: NORDIX_ARM_USERNAME
298 password: NORDIX_ARM_TOKEN
300 - fix-workspace-permissions
304 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
306 refspec: $GERRIT_REFSPEC
311 - 'generate-ssh-keypair-macro'
312 - 'wait-pkg-mgr-macro'
313 - 'download-artifact-macro'