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}'
86 default: 'engine-{slave-type}-online-{distro}'
87 description: 'Slave label to schedule this job on.'
90 default: '{execution-mode}'
91 description: 'Execution mode to run in'
93 name: PROVISIONER_TYPE
94 default: '{provisioner-type}'
95 description: 'Provisioner type to use'
99 description: 'Installer type to use'
101 name: DEPLOY_SCENARIO
102 default: 'k8-calico-nofeature'
103 description: 'Scenario to deploy'
107 description: 'PDF file to use for deployment'
111 description: 'IDF file to use for deployment'
113 name: HEAT_ENVIRONMENT_FILENAME
114 default: 'heat-environment-{cloud}-{distro}.yaml'
115 description: 'Name of heat-environment file to use.'
118 default: "nordix-cicd-verify-engine-online-{distro}-$GERRIT_CHANGE_NUMBER"
119 description: 'Name of the created stack'
122 default: "keypair-nordix-cicd-verify-engine-online-{distro}-$GERRIT_CHANGE_NUMBER"
123 description: 'Name of the created keypair'
125 name: USE_PREBUILT_DEPLOYMENT_IMAGE
127 description: 'Use prebuilt deployment image while running as part of CI/CD'
130 default: 'https://gerrit.nordix.org/infra/test.git'
131 description: 'URL to clone the test repo from'
135 description: 'Test framework to use'
138 default: 'healthcheck'
139 description: 'Test suite to run'
141 name: YARDSTICK_DISPATCHER
143 description: 'Dispatcher to use for Yardstick reporting'
147 description: 'Delete the stack upon completion of the build'
151 description: 'Verbosity setting for the engine - true or false - default is false'
153 name: NORDIX_ARM_PUBLIC_IP
154 default: '91.106.198.25'
155 description: 'Public IP of Nordix Artifactory. Offline deployments can not resolve domain name'
157 name: NORDIX_ARM_HTTPS_URL
158 default: 'https://artifactory.nordix.org/artifactory'
159 description: 'URL to Nordix Artifactory'
161 name: NORDIX_ARM_REPO
162 default: 'nordix-kubernetes'
163 description: 'Name of the repository to upload and download artifact to/from. Depends on the stack'
165 name: ARTIFACT_TO_DOWNLOAD
166 default: "https://artifactory.nordix.org/artifactory/nordix-kubernetes/installer/oss/gerrit/$GERRIT_CHANGE_ID/k8s-installer-ubuntu1804.bsx"
167 description: 'Artifact to download'
168 - project-parameters:
169 project: $GERRIT_PROJECT
171 description: 'The project and branch which the change is proposed for'
172 - nordix-gerrit-parameters
181 use-build-blocker: true
183 - 'engine-verify-online-deploy-test-.*'
184 - 'engine-verify-offline-deploy-test-.*'
190 - credentials-binding:
192 credential-id: '{openrc-credentials-file}'
193 variable: OPENRC_FILE
194 - username-password-separated:
195 credential-id: 'nordix-cicd-arm-credentials'
196 username: NORDIX_ARM_USERNAME
197 password: NORDIX_ARM_TOKEN
199 - fix-workspace-permissions
205 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
207 refspec: $GERRIT_REFSPEC
213 server-name: 'Nordix Gerrit'
215 - patchset-created-event:
216 exclude-drafts: 'false'
217 exclude-trivial-rebase: 'false'
218 exclude-no-code-change: 'false'
219 - draft-published-event
220 - comment-added-contains-event:
221 comment-contains-value: 'recheck'
222 - comment-added-contains-event:
223 comment-contains-value: 'reverify'
225 - project-compare-type: 'REG_EXP'
226 project-pattern: '{gated-projects}'
228 - branch-compare-type: 'ANT'
229 branch-pattern: '**/{branch}'
230 disable-strict-forbidden-file-verification: 'true'
231 forbidden-file-paths:
233 pattern: 'docs/**|releasenotes/**'
235 successful: '{obj:successful}'
236 failed: '{obj:failed}'
237 unstable: '{obj:unstable}'
238 notbuilt: '{obj:notbuilt}'
239 custom-url: '* $JOB_NAME $BUILD_URL'
240 readable-message: 'true'
241 dependency-jobs: 'engine-verify-tox-{stream},engine-verify-package-{distro}-{stream}'
245 name: "{environment-type} deployment on {type} instances"
246 condition: SUCCESSFUL
247 execution-type: PARALLEL
249 - name: 'engine-verify-{environment-type}-deploy-{distro}-city-{type}-master'
250 current-parameters: true
252 node-parameters: true
253 kill-phase-on: FAILURE
256 name: "{environment-type} testing on {type} instances"
257 condition: SUCCESSFUL
258 execution-type: PARALLEL
260 - name: 'engine-verify-{environment-type}-functest-{distro}-city-{type}-master'
261 current-parameters: true
263 node-parameters: true
264 kill-phase-on: FAILURE
278 - 'wait-pkg-mgr-macro'
279 - 'delete-stack-macro'
282 name: 'engine-verify-{environment-type}-{phase}-{distro}-{cloud}-{type}-{stream}'
284 disabled: '{obj:disabled}'
298 - credentials-binding:
300 credential-id: '{openrc-credentials-file}'
301 variable: OPENRC_FILE
302 - username-password-separated:
303 credential-id: 'nordix-cicd-arm-credentials'
304 username: NORDIX_ARM_USERNAME
305 password: NORDIX_ARM_TOKEN
307 - fix-workspace-permissions
311 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
313 refspec: $GERRIT_REFSPEC
318 - 'generate-ssh-keypair-macro'
319 - 'wait-pkg-mgr-macro'
320 - 'download-artifact-macro'