blob: 0d70730e70054fdac8ff040db752fe26c2e24463 [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'
65 - string:
66 default: ''
67 description: |-
68 Example: refs/changes/89/411189/36
69 (for now - only one reference allowed)
70 name: TCP_QA_REFS
71 trim: 'false'
72 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +030073 default: refs/tags/{previous-version}
Sergey Galkin24ebd762020-01-14 14:36:34 +040074 description: reference to patchset in pipeline-library
75 name: PIPELINE_LIBRARY_REF
76 trim: 'false'
77 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +030078 default: refs/tags/{previous-version}
Sergey Galkin24ebd762020-01-14 14:36:34 +040079 description: reference to patchset in mk-pipelines
80 name: MK_PIPELINES_REF
81 trim: 'false'
82 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +030083 default: refs/tags/{previous-version}
Sergey Galkin24ebd762020-01-14 14:36:34 +040084 description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}}
85 value
86 name: COOKIECUTTER_TEMPLATE_COMMIT
87 trim: 'false'
88 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +030089 default: refs/tags/{previous-version}
Sergey Galkin24ebd762020-01-14 14:36:34 +040090 description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}}
91 value
92 name: SALT_MODELS_SYSTEM_COMMIT
93 trim: 'false'
Hanna Arhipovab0bfccd2020-01-15 11:19:00 +020094 - text:
95 default: |-
Hanna Arhipova14c8c1f2020-02-20 17:38:55 +020096 --keep-duplicates --maxfail=2 \
97 tcp_tests/tests/system/test_3rdparty_suites.py::Test3rdpartySuites::test_run_tempest \
98 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
99 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight \
100 \
101 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \
102 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
103 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
104 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
105 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
106 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
107 \
108 tcp_tests/tests/system/test_3rdparty_suites.py::Test3rdpartySuites::test_run_tempest \
109 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
Hanna Arhipovab0bfccd2020-01-15 11:19:00 +0200110 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
111
Sergey Galkin24ebd762020-01-14 14:36:34 +0400112 description: |-
113 Pytest option -k or -m, with expression to select necessary tests.
114 Additional pytest options are allowed.
Hanna Arhipovab0bfccd2020-01-15 11:19:00 +0200115 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 +0400116 name: RUN_TEST_OPTS
117 trim: 'false'
118 - bool:
119 default: true
120 description: ''
121 name: SHUTDOWN_ENV_ON_TEARDOWN
122 - string:
123 default: ''
124 description: ''
125 name: COOKIECUTTER_REF_CHANGE
126 trim: 'false'
127 - string:
128 default: ''
129 description: ''
130 name: ENVIRONMENT_TEMPLATE_REF_CHANGE
131 trim: 'false'
132 - string:
133 default: '[MCP1.1_PIKE]Tempest'
134 description: ''
135 name: TEMPEST_TEST_SUITE_NAME
136 trim: 'false'
137 - string:
138 default: pike
139 description: ''
140 name: TEMPEST_IMAGE_VERSION
141 trim: 'false'
142 - string:
143 default: ''
144 description: ''
145 name: TEMPEST_TARGET
146 trim: 'false'
147 - string:
148 default: ''
149 description: ''
150 name: UPDATE_REPO_CUSTOM_TAG
151 trim: 'false'
152 - bool:
153 default: true
154 description: If set, reports will be created in TestRail for this build
155 name: REPORT_TO_TESTRAIL
156 - choice:
157 choices:
158 - heat
159 - devops
160 description: ''
161 name: ENV_MANAGER
162 - string:
163 default: https://ic-eu.ssl.mirantis.net:5000/v3
Hanna Arhipova95659432020-01-28 14:24:02 +0200164 description: 'Openstack keystone catalog endpoint, for example https://10.90.0.80:5000/v3'
Sergey Galkin24ebd762020-01-14 14:36:34 +0400165 name: OS_AUTH_URL
166 trim: 'false'
167 - string:
168 default: sre-team
169 description: OpenStack project (tenant) name
170 name: OS_PROJECT_NAME
171 trim: 'false'
172 - string:
Hanna Arhipova95659432020-01-28 14:24:02 +0200173 default: default
Sergey Galkin24ebd762020-01-14 14:36:34 +0400174 description: OpenStack user domain name
175 name: OS_USER_DOMAIN_NAME
176 trim: 'false'
177 - string:
Hanna Arhipova95659432020-01-28 14:24:02 +0200178 default: sre-qa-ci-eu
Sergey Galkin24ebd762020-01-14 14:36:34 +0400179 description: Jenkins credentials ID with username and password to create a
180 heat stack in OpenStack
181 name: OS_CREDENTIALS
182 trim: 'false'
183 - string:
Hanna Arhipova95659432020-01-28 14:24:02 +0200184 default: eu-cloud.env
Sergey Galkin24ebd762020-01-14 14:36:34 +0400185 description: |-
186 Heat template environment filename with 'parameter_defaults' dict, placed in tcp_tests/templates/_heat_environments/
187 , for example: microcloud-8116.env
188 name: LAB_PARAM_DEFAULTS
189 trim: 'false'
190 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +0300191 default: refs/tags/{previous-version}
Sergey Galkin24ebd762020-01-14 14:36:34 +0400192 description: ''
193 name: JENKINS_PIPELINE_BRANCH
194 trim: 'false'
195 - string:
Hanna Arhipova7cd2c2c2020-09-10 08:20:50 +0300196 default: set=smoke
Sergey Galkin24ebd762020-01-14 14:36:34 +0400197 description: ''
198 name: TEMPEST_PATTERN
199 trim: 'false'
200 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +0300201 default: refs/tags/{previous-version}
Sergey Galkin24ebd762020-01-14 14:36:34 +0400202 description: ''
203 name: MCP_COMMON_SCRIPTS_REFS
204 trim: 'false'
205 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +0300206 default: "{previous-version}"
Hanna Arhipovac335b242020-01-20 18:03:23 +0200207 description: 'for formula repo http://mirror.mirantis.com/update/UPDATE_VERSION/salt-formulas/xenial'
Sergey Galkin24ebd762020-01-14 14:36:34 +0400208 name: UPDATE_VERSION
209 trim: 'false'
Dmitriy Kruglov758f99c2020-02-04 12:04:31 +0100210 - bool:
211 default: false
212 description: Whether to perform dist-upgrade on virtual nodes during deployment
213 name: DIST_UPGRADE_NODES
PGlazoved19b352020-05-21 16:42:27 +0400214 - bool:
215 default: false
216 description: 'Works starting from MCP 2019.2.10 or master. Whether to apply saltstack updates on all nodes in cluster before deployment'
217 name: UPGRADE_SALTSTACK
Sergey Galkin24ebd762020-01-14 14:36:34 +0400218 pipeline-scm:
219 lightweight-checkout: false
220 scm:
221 - git:
222 branches:
223 - FETCH_HEAD
224 refspec: ${{TCP_QA_REFS}}
225 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
226 script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy