blob: 90d193d546caf612ee637d0784af96d318fb1fd7 [file] [log] [blame]
Sergey Galkin24ebd762020-01-14 14:36:34 +04001- job-template:
2 project-type: pipeline
3 description: '{job-description}'
4 concurrent: true
5 disabled: false
6 name: released-heat-cicd-pike-dvr-sl
7 parameters:
8 - string:
9 default: released-heat-cicd-pike-dvr-sl
10 description: ''
11 name: LAB_CONFIG_NAME
12 trim: 'false'
13 - string:
14 default: core,cicd
15 description: Comma-separated list of stacks to deploy the drivetrain (salt
16 cluster and cicd nodes)
17 name: DRIVETRAIN_STACK_INSTALL
18 trim: 'false'
19 - string:
Hanna Arhipovad331eb92020-04-08 18:13:16 +030020 default: '18000'
Sergey Galkin24ebd762020-01-14 14:36:34 +040021 description: ''
22 name: DRIVETRAIN_STACK_INSTALL_TIMEOUT
23 trim: 'false'
24 - string:
25 default: openstack,ovs,ceph,stacklight
26 description: Comma-separated list of stacks to deploy the target platform
27 (openstack and additional components)
28 name: PLATFORM_STACK_INSTALL
29 trim: 'false'
30 - string:
Hanna Arhipovad331eb92020-04-08 18:13:16 +030031 default: '15000'
Sergey Galkin24ebd762020-01-14 14:36:34 +040032 description: ''
33 name: PLATFORM_STACK_INSTALL_TIMEOUT
34 trim: 'false'
35 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +030036 default: "{previous-version}"
Sergey Galkin24ebd762020-01-14 14:36:34 +040037 description: ''
38 name: MCP_VERSION
39 trim: 'false'
40 - string:
Hanna Arhipovac2965a42020-01-21 12:27:33 +020041 default: sre-team-infra
Sergey Galkin24ebd762020-01-14 14:36:34 +040042 description: ''
43 name: NODE_NAME
44 trim: 'false'
45 - string:
Hanna Arhipovac2965a42020-01-21 12:27:33 +020046 default: /home/jenkins/images/ubuntu-16-04-x64-mcp2019.2.0.qcow2
Sergey Galkin24ebd762020-01-14 14:36:34 +040047 description: ''
48 name: MCP_IMAGE_PATH1604
49 trim: 'false'
50 - string:
51 default: /home/jenkins/images/cfg01-day01.qcow2
52 description: ''
53 name: IMAGE_PATH_CFG01_DAY01
54 trim: 'false'
55 - string:
56 default: cfg01.${{LAB_CONFIG_NAME}}-config-drive.iso
57 description: ISO name that will be generated and downloaded to the /home/jenkins/images/
58 name: CFG01_CONFIG_IMAGE_NAME
59 trim: 'false'
60 - string:
61 default: released-heat-cicd-pike-dvr-sl
62 description: ''
63 name: ENV_NAME
64 trim: 'false'
Hanna Arhipova31cb1d82021-01-27 09:41:11 +020065 - bool:
66 default: false
67 description: 'Add extra node to heat stack. Node without a role and with salt-minion'
68 name: DEPLOY_EMPTY_NODE
Sergey Galkin24ebd762020-01-14 14:36:34 +040069 - string:
70 default: ''
71 description: |-
72 Example: refs/changes/89/411189/36
73 (for now - only one reference allowed)
74 name: TCP_QA_REFS
75 trim: 'false'
76 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +030077 default: refs/tags/{previous-version}
Sergey Galkin24ebd762020-01-14 14:36:34 +040078 description: reference to patchset in pipeline-library
79 name: PIPELINE_LIBRARY_REF
80 trim: 'false'
81 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +030082 default: refs/tags/{previous-version}
Sergey Galkin24ebd762020-01-14 14:36:34 +040083 description: reference to patchset in mk-pipelines
84 name: MK_PIPELINES_REF
85 trim: 'false'
86 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +030087 default: refs/tags/{previous-version}
Sergey Galkin24ebd762020-01-14 14:36:34 +040088 description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}}
89 value
90 name: COOKIECUTTER_TEMPLATE_COMMIT
91 trim: 'false'
92 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +030093 default: refs/tags/{previous-version}
Sergey Galkin24ebd762020-01-14 14:36:34 +040094 description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}}
95 value
96 name: SALT_MODELS_SYSTEM_COMMIT
97 trim: 'false'
Hanna Arhipovab0bfccd2020-01-15 11:19:00 +020098 - text:
99 default: |-
Hanna Arhipovaf621ed62020-09-18 10:43:34 +0300100 --keep-duplicates --maxfail=1 \
Hanna Arhipova696e0892021-02-08 17:27:01 +0200101 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \
Hanna Arhipova14c8c1f2020-02-20 17:38:55 +0200102 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
Hanna Arhipovab0bfccd2020-01-15 11:19:00 +0200103 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
104
Sergey Galkin24ebd762020-01-14 14:36:34 +0400105 description: |-
106 Pytest option -k or -m, with expression to select necessary tests.
107 Additional pytest options are allowed.
Hanna Arhipovab0bfccd2020-01-15 11:19:00 +0200108 Procedure according to https://docs.mirantis.com/mcp/q4-18/mcp-release-notes/mu/mu-7/mu-7-apply-updates.html
Sergey Galkin24ebd762020-01-14 14:36:34 +0400109 name: RUN_TEST_OPTS
110 trim: 'false'
111 - bool:
112 default: true
113 description: ''
114 name: SHUTDOWN_ENV_ON_TEARDOWN
115 - string:
116 default: ''
117 description: ''
118 name: COOKIECUTTER_REF_CHANGE
119 trim: 'false'
120 - string:
121 default: ''
122 description: ''
123 name: ENVIRONMENT_TEMPLATE_REF_CHANGE
124 trim: 'false'
125 - string:
126 default: '[MCP1.1_PIKE]Tempest'
127 description: ''
128 name: TEMPEST_TEST_SUITE_NAME
129 trim: 'false'
130 - string:
131 default: pike
132 description: ''
133 name: TEMPEST_IMAGE_VERSION
134 trim: 'false'
135 - string:
136 default: ''
137 description: ''
138 name: TEMPEST_TARGET
139 trim: 'false'
140 - string:
141 default: ''
142 description: ''
143 name: UPDATE_REPO_CUSTOM_TAG
144 trim: 'false'
145 - bool:
146 default: true
147 description: If set, reports will be created in TestRail for this build
148 name: REPORT_TO_TESTRAIL
149 - choice:
150 choices:
151 - heat
152 - devops
153 description: ''
154 name: ENV_MANAGER
155 - string:
Taras Khlivnyak330f7272021-11-03 22:52:26 +0200156 default: https://keystone.ic-eu.ssl.mirantis.net/v3
Hanna Arhipova95659432020-01-28 14:24:02 +0200157 description: 'Openstack keystone catalog endpoint, for example https://10.90.0.80:5000/v3'
Sergey Galkin24ebd762020-01-14 14:36:34 +0400158 name: OS_AUTH_URL
159 trim: 'false'
160 - string:
161 default: sre-team
162 description: OpenStack project (tenant) name
163 name: OS_PROJECT_NAME
164 trim: 'false'
165 - string:
Hanna Arhipova95659432020-01-28 14:24:02 +0200166 default: default
Sergey Galkin24ebd762020-01-14 14:36:34 +0400167 description: OpenStack user domain name
168 name: OS_USER_DOMAIN_NAME
169 trim: 'false'
170 - string:
Hanna Arhipova95659432020-01-28 14:24:02 +0200171 default: sre-qa-ci-eu
Sergey Galkin24ebd762020-01-14 14:36:34 +0400172 description: Jenkins credentials ID with username and password to create a
173 heat stack in OpenStack
174 name: OS_CREDENTIALS
175 trim: 'false'
176 - string:
Hanna Arhipovac692a122021-04-13 11:47:18 +0300177 default: eu-cloud-low-flavors.env
Sergey Galkin24ebd762020-01-14 14:36:34 +0400178 description: |-
179 Heat template environment filename with 'parameter_defaults' dict, placed in tcp_tests/templates/_heat_environments/
180 , for example: microcloud-8116.env
181 name: LAB_PARAM_DEFAULTS
182 trim: 'false'
183 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +0300184 default: refs/tags/{previous-version}
Sergey Galkin24ebd762020-01-14 14:36:34 +0400185 description: ''
186 name: JENKINS_PIPELINE_BRANCH
187 trim: 'false'
188 - string:
Hanna Arhipova7cd2c2c2020-09-10 08:20:50 +0300189 default: set=smoke
Sergey Galkin24ebd762020-01-14 14:36:34 +0400190 description: ''
191 name: TEMPEST_PATTERN
192 trim: 'false'
193 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +0300194 default: refs/tags/{previous-version}
Sergey Galkin24ebd762020-01-14 14:36:34 +0400195 description: ''
196 name: MCP_COMMON_SCRIPTS_REFS
197 trim: 'false'
198 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +0300199 default: "{previous-version}"
Hanna Arhipovac335b242020-01-20 18:03:23 +0200200 description: 'for formula repo http://mirror.mirantis.com/update/UPDATE_VERSION/salt-formulas/xenial'
Sergey Galkin24ebd762020-01-14 14:36:34 +0400201 name: UPDATE_VERSION
202 trim: 'false'
Dmitriy Kruglov758f99c2020-02-04 12:04:31 +0100203 - bool:
204 default: false
205 description: Whether to perform dist-upgrade on virtual nodes during deployment
206 name: DIST_UPGRADE_NODES
PGlazoved19b352020-05-21 16:42:27 +0400207 - bool:
208 default: false
209 description: 'Works starting from MCP 2019.2.10 or master. Whether to apply saltstack updates on all nodes in cluster before deployment'
210 name: UPGRADE_SALTSTACK
PGlazov379db222021-06-17 20:15:11 +0400211 - bool:
212 name: RUN_UPGRADE_AFTER_JOB
213 default: true
214 description: "Upgrade and test after deploy?"
Anna Arhipova5d936b82022-08-05 10:07:32 +0200215 - bool:
216 name: UPGRADE_TO_TAG
217 default: '{upgrade-to-tag}'
218 description: "Upgrade to new tag"
219 - string:
220 name: UPGRADE_VERSION_TAG
221 default: "{current-version}"
222 description: 'Only works in conjunction with UPGRADE_TO_TAG and must be younger than the deployed version.'
223 trim: 'false'
Pavel Glazov67fc4a42022-11-23 01:31:14 +0400224 - text:
225 default: ''
226 description: |-
227 Add env vars for deploy and testing
228 name: EXTRA_VARS
229 trim: 'false'
Sergey Galkin24ebd762020-01-14 14:36:34 +0400230 pipeline-scm:
231 lightweight-checkout: false
232 scm:
233 - git:
234 branches:
235 - FETCH_HEAD
236 refspec: ${{TCP_QA_REFS}}
237 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
238 script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
Vladimir Khlyunev82b374f2022-09-27 20:51:58 +0000239 logrotate:
240 daysToKeep: 365