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
184 - credentials-binding:
186 credential-id: '{openrc-credentials-file}'
187 variable: OPENRC_FILE
188 - username-password-separated:
189 credential-id: 'nordix-cicd-arm-credentials'
190 username: NORDIX_ARM_USERNAME
191 password: NORDIX_ARM_TOKEN
193 - fix-workspace-permissions
199 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
201 refspec: $GERRIT_REFSPEC
207 server-name: 'Nordix Gerrit'
209 - patchset-created-event:
210 exclude-drafts: 'false'
211 exclude-trivial-rebase: 'false'
212 exclude-no-code-change: 'false'
213 - draft-published-event
214 - comment-added-contains-event:
215 comment-contains-value: 'recheck'
216 - comment-added-contains-event:
217 comment-contains-value: 'reverify'
219 - project-compare-type: 'REG_EXP'
220 project-pattern: '{gated-projects}'
222 - branch-compare-type: 'ANT'
223 branch-pattern: '**/{branch}'
224 disable-strict-forbidden-file-verification: 'true'
225 forbidden-file-paths:
227 pattern: 'docs/**|releasenotes/**'
229 successful: '{obj:successful}'
230 failed: '{obj:failed}'
231 unstable: '{obj:unstable}'
232 notbuilt: '{obj:notbuilt}'
233 custom-url: '* $JOB_NAME $BUILD_URL'
234 readable-message: 'true'
235 dependency-jobs: 'engine-verify-tox-{stream},engine-verify-package-{distro}-{stream}'
239 name: "{environment-type} deployment on {type} instances"
240 condition: SUCCESSFUL
241 execution-type: PARALLEL
243 - name: 'engine-verify-{environment-type}-deploy-{distro}-city-{type}-master'
244 current-parameters: true
246 node-parameters: true
247 kill-phase-on: FAILURE
250 name: "{environment-type} testing on {type} instances"
251 condition: SUCCESSFUL
252 execution-type: PARALLEL
254 - name: 'engine-verify-{environment-type}-functest-{distro}-city-{type}-master'
255 current-parameters: true
257 node-parameters: true
258 kill-phase-on: FAILURE
272 - 'wait-pkg-mgr-macro'
273 - 'delete-stack-macro'
276 name: 'engine-verify-{environment-type}-{phase}-{distro}-{cloud}-{type}-{stream}'
278 disabled: '{obj:disabled}'
292 - credentials-binding:
294 credential-id: '{openrc-credentials-file}'
295 variable: OPENRC_FILE
296 - username-password-separated:
297 credential-id: 'nordix-cicd-arm-credentials'
298 username: NORDIX_ARM_USERNAME
299 password: NORDIX_ARM_TOKEN
301 - fix-workspace-permissions
305 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
307 refspec: $GERRIT_REFSPEC
312 - 'generate-ssh-keypair-macro'
313 - 'wait-pkg-mgr-macro'
314 - 'download-artifact-macro'