blob: c48db3fa1398d8199e898a016448213eb3a3d9f2 [file] [log] [blame]
Fatih Degirmenci471f8d92020-03-13 12:18:42 +00001---
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
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
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.
16#
17# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
19
20- project:
21 name: 'engine-verify-online-deploy-test'
22
23 project: 'engine-verify-online-deploy-test'
24
25 stream:
26 - 'master':
27 branch: '{stream}'
Fatih Degirmenci732515b2020-03-19 14:46:07 +000028 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'
Fatih Degirmenci471f8d92020-03-13 12:18:42 +000030
31 phase:
32 - deploy
Fatih Degirmenci299841a2020-03-22 09:04:13 +000033 - functest
Fatih Degirmenci471f8d92020-03-13 12:18:42 +000034
35 type:
36 - virtual:
37 provisioner-type: 'bifrost'
38 slave-type: 'vpod'
39 - cloud:
40 provisioner-type: 'heat'
41 slave-type: 'jumphost'
42
43 distro:
44 - ubuntu1804
45
46 cloud:
47 - city:
48 openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-onap'
49
50 jobs:
51 - 'engine-verify-online-deploy-test-{distro}-{cloud}-{type}-{stream}'
52 - 'engine-verify-online-{phase}-{distro}-{cloud}-{type}-{stream}'
53
54- job-template:
55 name: 'engine-verify-online-deploy-test-{distro}-{cloud}-{type}-{stream}'
56
57 project-type: multijob
58
59 disabled: '{obj:disabled}'
60
61 concurrent: true
62
63 parameters:
64 - project-parameters:
65 project: $GERRIT_PROJECT
66 branch: '{branch}'
67 description: 'The project and branch which the change is proposed for'
68 - label:
69 name: SLAVE_LABEL
70 default: 'engine-{slave-type}-online-{distro}'
71 description: 'Slave label to schedule this job on.'
72 - string:
73 name: PROVISIONER_TYPE
74 default: '{provisioner-type}'
75 description: 'Provisioner type to use'
76 - string:
Fatih Degirmenci732515b2020-03-19 14:46:07 +000077 name: PDF
78 default: '{pdf}'
79 description: 'PDF file to use for deployment'
80 - string:
81 name: IDF
82 default: '{idf}'
83 description: 'IDF file to use for deployment'
84 - string:
Fatih Degirmenci471f8d92020-03-13 12:18:42 +000085 name: HEAT_ENVIRONMENT_FILENAME
86 default: 'heat-environment-{cloud}-{distro}.yaml'
87 description: 'Name of heat-environment file to use.'
88 - string:
89 name: STACK_NAME
Fatih Degirmenci0861dce2020-03-17 23:16:49 +000090 default: "nordix-cicd-verify-engine-online-{distro}-$GERRIT_CHANGE_NUMBER"
Fatih Degirmenci471f8d92020-03-13 12:18:42 +000091 description: 'Name of the created stack'
92 - string:
93 name: KEYPAIR_NAME
Fatih Degirmencifea7fd02020-03-18 07:58:29 +000094 default: "keypair-nordix-cicd-verify-engine-online-{distro}-$GERRIT_CHANGE_NUMBER"
Fatih Degirmenci471f8d92020-03-13 12:18:42 +000095 description: 'Name of the created keypair'
96 - string:
97 name: USE_PREBUILT_DEPLOYMENT_IMAGE
98 default: 'true'
99 description: 'Use prebuilt deployment image while running as part of CI/CD'
100 - string:
Fatih Degirmenci2683ff22020-03-17 16:00:27 +0000101 name: TEST_REPO_URL
102 default: 'https://gerrit.nordix.org/infra/test.git'
103 description: 'URL to clone the test repo from'
104 - string:
105 name: TEST_FW
106 default: 'functest'
107 description: 'Test framework to use'
108 - string:
Fatih Degirmenci471f8d92020-03-13 12:18:42 +0000109 name: TEST_SUITE
110 default: 'healthcheck'
111 description: 'Test suite to run'
112 - string:
Fatih Degirmenci299841a2020-03-22 09:04:13 +0000113 name: YARDSTICK_DISPATCHER
114 default: 'file'
115 description: 'Dispatcher to use for Yardstick reporting'
116 - string:
Fatih Degirmenci471f8d92020-03-13 12:18:42 +0000117 name: DELETE_STACK
Fatih Degirmenci2683ff22020-03-17 16:00:27 +0000118 default: 'true'
Fatih Degirmenci471f8d92020-03-13 12:18:42 +0000119 description: 'Delete the stack upon completion of the build'
120
121 properties:
122 - logrotate
Fatih Degirmenci471f8d92020-03-13 12:18:42 +0000123 - throttle:
124 max-per-node: 1
125 max-total: 3
126 option: project
127
128 wrappers:
129 - build-timeout:
130 timeout: 180
131 - credentials-binding:
132 - file:
133 credential-id: '{openrc-credentials-file}'
134 variable: OPENRC_FILE
135 - username-password-separated:
136 credential-id: 'nordix-cicd-arm-credentials'
137 username: NORDIX_ARM_USERNAME
138 password: NORDIX_ARM_TOKEN
139 - mask-passwords
140 - fix-workspace-permissions
141 - openstack:
142 single-use: True
143
144 scm:
145 - git-scm-gerrit:
146 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
147 branch: '{branch}'
148 refspec: $GERRIT_REFSPEC
149 wipe_workspace: true
150 clean_before: false
151
152 builders:
Fatih Degirmenci8d3e6822020-03-19 14:55:23 +0000153 - 'download-artifact-macro'
Fatih Degirmenci299841a2020-03-22 09:04:13 +0000154 - 'generate-ssh-keypair-macro'
155 - 'wait-pkg-mgr-macro'
Fatih Degirmenci471f8d92020-03-13 12:18:42 +0000156 - multijob:
Fatih Degirmenci732515b2020-03-19 14:46:07 +0000157 name: "online deployment on {type} instances"
Fatih Degirmenci471f8d92020-03-13 12:18:42 +0000158 condition: SUCCESSFUL
159 execution-type: PARALLEL
160 projects:
161 - name: 'engine-verify-online-deploy-{distro}-city-{type}-master'
162 current-parameters: true
163 node-parameters: true
164 kill-phase-on: FAILURE
Fatih Degirmenci2683ff22020-03-17 16:00:27 +0000165 abort-all-job: false
Fatih Degirmenci471f8d92020-03-13 12:18:42 +0000166 - multijob:
Fatih Degirmenci732515b2020-03-19 14:46:07 +0000167 name: "online testing on {type} instances"
Fatih Degirmenci471f8d92020-03-13 12:18:42 +0000168 condition: SUCCESSFUL
169 execution-type: PARALLEL
170 projects:
Fatih Degirmenci299841a2020-03-22 09:04:13 +0000171 - name: 'engine-verify-online-functest-{distro}-city-{type}-master'
Fatih Degirmenci471f8d92020-03-13 12:18:42 +0000172 current-parameters: true
173 node-parameters: true
174 kill-phase-on: FAILURE
Fatih Degirmenci2683ff22020-03-17 16:00:27 +0000175 abort-all-job: false
Fatih Degirmenci0861dce2020-03-17 23:16:49 +0000176
177 publishers:
178 - postbuildscript:
179 builders:
180 - role: SLAVE
181 build-on:
182 - SUCCESS
183 - FAILURE
184 - ABORTED
185 - NOT_BUILT
186 - UNSTABLE
187 build-steps:
Fatih Degirmenci8d3e6822020-03-19 14:55:23 +0000188 - 'wait-pkg-mgr-macro'
189 - 'delete-stack-macro'
Fatih Degirmenci471f8d92020-03-13 12:18:42 +0000190
191- job-template:
192 name: 'engine-verify-online-{phase}-{distro}-{cloud}-{type}-{stream}'
193
194 disabled: '{obj:disabled}'
195
196 concurrent: true
197
198 properties:
199 - logrotate
Fatih Degirmenci471f8d92020-03-13 12:18:42 +0000200 - throttle:
201 max-per-node: 1
202 max-total: 3
203 option: project
204
205 wrappers:
206 - build-timeout:
207 timeout: 180
208 - credentials-binding:
209 - file:
210 credential-id: '{openrc-credentials-file}'
211 variable: OPENRC_FILE
212 - username-password-separated:
213 credential-id: 'nordix-cicd-arm-credentials'
214 username: NORDIX_ARM_USERNAME
215 password: NORDIX_ARM_TOKEN
216 - mask-passwords
217 - fix-workspace-permissions
Fatih Degirmenci471f8d92020-03-13 12:18:42 +0000218
219 scm:
220 - git-scm-gerrit:
221 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
222 branch: '{branch}'
223 refspec: $GERRIT_REFSPEC
224 wipe_workspace: true
225 clean_before: false
226
227 builders:
Fatih Degirmenci8d3e6822020-03-19 14:55:23 +0000228 - '{phase}-macro'