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-offline-deploy-test'
23 project: 'engine-verify-offline-deploy-test'
35 provisioner-type: 'bifrost'
38 provisioner-type: 'heat'
39 slave-type: 'jumphost'
46 openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-onap'
49 - 'engine-verify-offline-deploy-test-{distro}-{cloud}-{type}-{stream}'
50 - 'engine-verify-offline-{phase}-{distro}-{cloud}-{type}-{stream}'
53 name: 'engine-verify-offline-deploy-test-{distro}-{cloud}-{type}-{stream}'
55 project-type: multijob
57 disabled: '{obj:disabled}'
63 project: $GERRIT_PROJECT
65 description: 'The project and branch which the change is proposed for'
68 default: 'engine-{slave-type}-offline-{distro}'
69 description: 'Slave label to schedule this job on.'
71 name: PROVISIONER_TYPE
72 default: '{provisioner-type}'
73 description: 'Provisioner type to use'
75 name: HEAT_ENVIRONMENT_FILENAME
76 default: 'heat-environment-{cloud}-{distro}.yaml'
77 description: 'Name of heat-environment file to use.'
80 default: "nordix-cicd-verify-engine-{distro}-$BUILD_NUMBER"
81 description: 'Name of the created stack'
84 default: "keypair-nordix-cicd-verify-engine-{distro}-$BUILD_NUMBER"
85 description: 'Name of the created keypair'
87 name: USE_PREBUILT_DEPLOYMENT_IMAGE
89 description: 'Use prebuilt deployment image while running as part of CI/CD'
92 default: 'healthcheck'
93 description: 'Test suite to run'
95 name: YARDSTICK_DISPATCHER
97 description: 'Dispatcher to use for Yardstick reporting'
101 description: 'Delete the stack upon completion of the build'
106 # use-build-blocker: true
108 # - 'engine-verify-online-deploy-test-.*'
109 # - 'engine-verify-offline-deploy-test-.*'
110 # block-level: 'NODE'
119 - credentials-binding:
121 credential-id: '{openrc-credentials-file}'
122 variable: OPENRC_FILE
123 - username-password-separated:
124 credential-id: 'nordix-cicd-arm-credentials'
125 username: NORDIX_ARM_USERNAME
126 password: NORDIX_ARM_TOKEN
128 - fix-workspace-permissions
133 - 'engine-generate-ssh-keypair-macro'
134 - 'engine-download-artifact-macro'
136 name: "Offline Deployment on {type} instances"
137 condition: SUCCESSFUL
138 execution-type: PARALLEL
140 - name: 'engine-verify-offline-deploy-{distro}-city-{type}-master'
141 current-parameters: true
142 node-parameters: true
143 kill-phase-on: FAILURE
146 name: "Offline Testing on {type} instances"
147 condition: SUCCESSFUL
148 execution-type: PARALLEL
150 - name: 'engine-verify-offline-test-{distro}-city-{type}-master'
151 current-parameters: true
152 node-parameters: true
153 kill-phase-on: FAILURE
158 - condition-kind: strings-match
159 condition-string1: $DELETE_STACK
160 condition-string2: true
161 - condition-kind: strings-match
162 condition-string1: $PROVISIONER_TYPE
163 condition-string2: heat
164 on-evaluation-failure: dont-run
166 - 'engine-delete-stack-macro'
169 name: 'engine-verify-offline-{phase}-{distro}-{cloud}-{type}-{stream}'
171 disabled: '{obj:disabled}'
185 - credentials-binding:
187 credential-id: '{openrc-credentials-file}'
188 variable: OPENRC_FILE
189 - username-password-separated:
190 credential-id: 'nordix-cicd-arm-credentials'
191 username: NORDIX_ARM_USERNAME
192 password: NORDIX_ARM_TOKEN
194 - fix-workspace-permissions
197 - 'engine-{phase}-macro'