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-online-deploy-test'
23 project: 'engine-verify-online-deploy-test'
28 pdf: 'https://gerrit.nordix.org/gitweb?p=infra/hwconfig.git;a=blob_plain;f=pods/nordix-vpod1-pdf.yml'
29 idf: 'https://gerrit.nordix.org/gitweb?p=infra/hwconfig.git;a=blob_plain;f=pods/nordix-vpod1-idf.yml'
37 provisioner-type: 'bifrost'
40 provisioner-type: 'heat'
41 slave-type: 'jumphost'
48 openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-onap'
51 - 'engine-verify-online-deploy-test-{distro}-{cloud}-{type}-{stream}'
52 - 'engine-verify-online-{phase}-{distro}-{cloud}-{type}-{stream}'
55 name: 'engine-verify-online-deploy-test-{distro}-{cloud}-{type}-{stream}'
57 project-type: multijob
59 disabled: '{obj:disabled}'
65 project: $GERRIT_PROJECT
67 description: 'The project and branch which the change is proposed for'
70 default: 'engine-{slave-type}-online-{distro}'
71 description: 'Slave label to schedule this job on.'
73 name: PROVISIONER_TYPE
74 default: '{provisioner-type}'
75 description: 'Provisioner type to use'
79 description: 'PDF file to use for deployment'
83 description: 'IDF file to use for deployment'
85 name: HEAT_ENVIRONMENT_FILENAME
86 default: 'heat-environment-{cloud}-{distro}.yaml'
87 description: 'Name of heat-environment file to use.'
90 default: "nordix-cicd-verify-engine-online-{distro}-$GERRIT_CHANGE_NUMBER"
91 description: 'Name of the created stack'
94 default: "keypair-nordix-cicd-verify-engine-online-{distro}-$GERRIT_CHANGE_NUMBER"
95 description: 'Name of the created keypair'
97 name: USE_PREBUILT_DEPLOYMENT_IMAGE
99 description: 'Use prebuilt deployment image while running as part of CI/CD'
102 default: 'https://gerrit.nordix.org/infra/test.git'
103 description: 'URL to clone the test repo from'
107 description: 'Test framework to use'
110 default: 'healthcheck'
111 description: 'Test suite to run'
115 description: 'Delete the stack upon completion of the build'
127 - credentials-binding:
129 credential-id: '{openrc-credentials-file}'
130 variable: OPENRC_FILE
131 - username-password-separated:
132 credential-id: 'nordix-cicd-arm-credentials'
133 username: NORDIX_ARM_USERNAME
134 password: NORDIX_ARM_TOKEN
136 - fix-workspace-permissions
142 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
144 refspec: $GERRIT_REFSPEC
149 - 'wait-pkg-mgr-macro'
150 - 'generate-ssh-keypair-macro'
151 - 'download-artifact-macro'
153 name: "online deployment on {type} instances"
154 condition: SUCCESSFUL
155 execution-type: PARALLEL
157 - name: 'engine-verify-online-deploy-{distro}-city-{type}-master'
158 current-parameters: true
159 node-parameters: true
160 kill-phase-on: FAILURE
163 name: "online testing on {type} instances"
164 condition: SUCCESSFUL
165 execution-type: PARALLEL
167 - name: 'engine-verify-online-test-{distro}-city-{type}-master'
168 current-parameters: true
169 node-parameters: true
170 kill-phase-on: FAILURE
184 - 'wait-pkg-mgr-macro'
185 - 'delete-stack-macro'
188 name: 'engine-verify-online-{phase}-{distro}-{cloud}-{type}-{stream}'
190 disabled: '{obj:disabled}'
204 - credentials-binding:
206 credential-id: '{openrc-credentials-file}'
207 variable: OPENRC_FILE
208 - username-password-separated:
209 credential-id: 'nordix-cicd-arm-credentials'
210 username: NORDIX_ARM_USERNAME
211 password: NORDIX_ARM_TOKEN
213 - fix-workspace-permissions
217 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
219 refspec: $GERRIT_REFSPEC