blob: 2a83f7b34aae63379bbfd01e7144d7009e10045e [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-contrail41-sl
7 parameters:
8 - string:
9 default: released-heat-cicd-pike-contrail41-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,contrail,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-contrail41-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 Arhipovaf621ed62020-09-18 10:43:34 +030096 --keep-duplicates --maxfail=1 \
Hanna Arhipova14c8c1f2020-02-20 17:38:55 +020097 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_upgrade_contrail.py::TestUpdateContrail \
103 tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \
104 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \
105 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \
106 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \
107 tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \
108 \
109 tcp_tests/tests/system/test_3rdparty_suites.py::Test3rdpartySuites::test_run_tempest \
110 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \
Hanna Arhipovab0bfccd2020-01-15 11:19:00 +0200111 tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight
112
Sergey Galkin24ebd762020-01-14 14:36:34 +0400113 description: |-
114 Pytest option -k or -m, with expression to select necessary tests.
115 Additional pytest options are allowed.
Hanna Arhipovab0bfccd2020-01-15 11:19:00 +0200116 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 +0400117 name: RUN_TEST_OPTS
118 trim: 'false'
119 - bool:
120 default: true
121 description: ''
122 name: SHUTDOWN_ENV_ON_TEARDOWN
123 - string:
124 default: ''
125 description: ''
126 name: COOKIECUTTER_REF_CHANGE
127 trim: 'false'
128 - string:
129 default: ''
130 description: ''
131 name: ENVIRONMENT_TEMPLATE_REF_CHANGE
132 trim: 'false'
133 - string:
134 default: '[MCP1.1_PIKE]Tempest'
135 description: ''
136 name: TEMPEST_TEST_SUITE_NAME
137 trim: 'false'
138 - string:
139 default: pike
140 description: ''
141 name: TEMPEST_IMAGE_VERSION
142 trim: 'false'
143 - string:
144 default: ''
145 description: ''
146 name: TEMPEST_TARGET
147 trim: 'false'
148 - string:
149 default: ''
150 description: ''
151 name: UPDATE_REPO_CUSTOM_TAG
152 trim: 'false'
153 - bool:
154 default: true
155 description: If set, reports will be created in TestRail for this build
156 name: REPORT_TO_TESTRAIL
157 - choice:
158 choices:
159 - heat
160 - devops
161 description: ''
162 name: ENV_MANAGER
163 - string:
164 default: https://ic-eu.ssl.mirantis.net:5000/v3
Sergey Galkinb9cdb642020-01-16 14:01:40 +0400165 description: 'Openstack keystone catalog endpoint, for example https://10.90.0.80:5000/v3'
Sergey Galkin24ebd762020-01-14 14:36:34 +0400166 name: OS_AUTH_URL
167 trim: 'false'
168 - string:
169 default: sre-team
170 description: OpenStack project (tenant) name
171 name: OS_PROJECT_NAME
172 trim: 'false'
173 - string:
Hanna Arhipova95659432020-01-28 14:24:02 +0200174 default: default
Sergey Galkin24ebd762020-01-14 14:36:34 +0400175 description: OpenStack user domain name
176 name: OS_USER_DOMAIN_NAME
177 trim: 'false'
178 - string:
Hanna Arhipova95659432020-01-28 14:24:02 +0200179 default: sre-qa-ci-eu
Sergey Galkin24ebd762020-01-14 14:36:34 +0400180 description: Jenkins credentials ID with username and password to create a
181 heat stack in OpenStack
182 name: OS_CREDENTIALS
183 trim: 'false'
184 - string:
Hanna Arhipova95659432020-01-28 14:24:02 +0200185 default: eu-cloud.env
Sergey Galkin24ebd762020-01-14 14:36:34 +0400186 description: |-
187 Heat template environment filename with 'parameter_defaults' dict, placed in tcp_tests/templates/_heat_environments/
188 , for example: microcloud-8116.env
189 name: LAB_PARAM_DEFAULTS
190 trim: 'false'
191 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +0300192 default: refs/tags/{previous-version}
Sergey Galkin24ebd762020-01-14 14:36:34 +0400193 description: ''
194 name: JENKINS_PIPELINE_BRANCH
195 trim: 'false'
196 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +0300197 default: refs/tags/{previous-version}
Sergey Galkin24ebd762020-01-14 14:36:34 +0400198 description: ''
199 name: MCP_COMMON_SCRIPTS_REFS
200 trim: 'false'
201 - string:
Hanna Arhipova6c41b172020-05-04 16:12:13 +0300202 default: "{previous-version}"
Hanna Arhipovac335b242020-01-20 18:03:23 +0200203 description: 'for formula repo http://mirror.mirantis.com/update/UPDATE_VERSION/salt-formulas/xenial'
Sergey Galkin24ebd762020-01-14 14:36:34 +0400204 name: UPDATE_VERSION
205 trim: 'false'
206 - string:
Hanna Arhipova7cd2c2c2020-09-10 08:20:50 +0300207 default: set=smoke
Sergey Galkin24ebd762020-01-14 14:36:34 +0400208 description: Exclude tungsten tests by default
209 name: TEMPEST_PATTERN
210 trim: 'false'
Dmitriy Kruglov758f99c2020-02-04 12:04:31 +0100211 - bool:
Hanna Arhipovaf098d462020-03-31 15:32:47 +0300212 default: true
Dmitriy Kruglov758f99c2020-02-04 12:04:31 +0100213 description: Whether to perform dist-upgrade on virtual nodes during deployment
214 name: DIST_UPGRADE_NODES
PGlazoved19b352020-05-21 16:42:27 +0400215 - bool:
216 default: true
217 description: 'Works starting from MCP 2019.2.10 or master. Whether to apply saltstack updates on all nodes in cluster before deployment'
218 name: UPGRADE_SALTSTACK
Sergey Galkin24ebd762020-01-14 14:36:34 +0400219 pipeline-scm:
220 lightweight-checkout: false
221 scm:
222 - git:
223 branches:
224 - FETCH_HEAD
225 refspec: ${{TCP_QA_REFS}}
226 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
227 script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy
228