blob: 31623fcc20e77a1edcf21e3d15975e98cfa75418 [file] [log] [blame]
Sergey Galkin24ebd762020-01-14 14:36:34 +04001---
2- job-template:
3 project-type: pipeline
4 concurrent: true
Sergey Galkin24ebd762020-01-14 14:36:34 +04005 description: '{job-description}'
6 name: heat-cicd-pike-dvr-sl
Hanna Arhipova83761632020-05-05 13:53:17 +03007 # 'disabled' and 'timed' option are defined in the project.yaml
8 disabled: '{obj:disabled}'
Sergey Galkin24ebd762020-01-14 14:36:34 +04009 triggers:
Hanna Arhipova83761632020-05-05 13:53:17 +030010 - timed: '{obj:trigger_time}'
Sergey Galkin24ebd762020-01-14 14:36:34 +040011 properties:
12 - build-discarder:
13 days-to-keep: 60
14 num-to-keep: 50
15 parameters:
16 - string:
17 default: heat-cicd-pike-dvr-sl
18 description: ''
19 name: LAB_CONFIG_NAME
20 trim: 'false'
21 - string:
22 default: core,cicd
23 description: Comma-separated list of stacks to deploy the drivetrain (salt
24 cluster and cicd nodes)
25 name: DRIVETRAIN_STACK_INSTALL
26 trim: 'false'
27 - string:
Hanna Arhipovad331eb92020-04-08 18:13:16 +030028 default: '18000'
Sergey Galkin24ebd762020-01-14 14:36:34 +040029 description: ''
30 name: DRIVETRAIN_STACK_INSTALL_TIMEOUT
31 trim: 'false'
32 - string:
33 default: openstack,ovs,ceph,stacklight
34 description: Comma-separated list of stacks to deploy the target platform
35 (openstack and additional components)
36 name: PLATFORM_STACK_INSTALL
37 trim: 'false'
38 - string:
Hanna Arhipovad331eb92020-04-08 18:13:16 +030039 default: '15000'
Sergey Galkin24ebd762020-01-14 14:36:34 +040040 description: ''
41 name: PLATFORM_STACK_INSTALL_TIMEOUT
42 trim: 'false'
43 - string:
44 default: 2019.2.0
45 description: ''
46 name: MCP_VERSION
47 trim: 'false'
48 - string:
49 default: sre-team-infra
50 description: ''
51 name: NODE_NAME
52 trim: 'false'
53 - string:
Hanna Arhipovac2965a42020-01-21 12:27:33 +020054 default: '/home/jenkins/images/ubuntu-16-04-x64-mcp2019.2.0.qcow2'
Sergey Galkin24ebd762020-01-14 14:36:34 +040055 description: ''
56 name: MCP_IMAGE_PATH1604
57 trim: 'false'
58 - string:
59 default: /home/jenkins/images/cfg01-day01.qcow2
60 description: ''
61 name: IMAGE_PATH_CFG01_DAY01
62 trim: 'false'
63 - string:
64 default: 'cfg01.${{LAB_CONFIG_NAME}}-config-drive.iso'
65 description: ISO name that will be generated and downloaded to the /home/jenkins/images/
66 name: CFG01_CONFIG_IMAGE_NAME
67 trim: 'false'
68 - string:
69 default: heat-cicd-pike-dvr-sl
70 description: ''
71 name: ENV_NAME
72 trim: 'false'
Hanna Arhipova31cb1d82021-01-27 09:41:11 +020073 - bool:
74 default: false
75 description: 'Add extra node to heat stack. Node without a role and with salt-minion'
76 name: DEPLOY_EMPTY_NODE
Sergey Galkin24ebd762020-01-14 14:36:34 +040077 - string:
78 default: ''
79 description: |-
80 Example: refs/changes/89/411189/36
81 (for now - only one reference allowed)
82 name: TCP_QA_REFS
83 trim: 'false'
84 - string:
85 default: refs/heads/release/proposed/2019.2.0
86 description: reference to patchset in pipeline-library
87 name: PIPELINE_LIBRARY_REF
88 trim: 'false'
89 - string:
90 default: refs/heads/release/proposed/2019.2.0
91 description: reference to patchset in mk-pipelines
92 name: MK_PIPELINES_REF
93 trim: 'false'
94 - string:
95 default: release/proposed/2019.2.0
96 description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}}
97 value
98 name: COOKIECUTTER_TEMPLATE_COMMIT
99 trim: 'false'
100 - string:
101 default: release/proposed/2019.2.0
102 description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}}
103 value
104 name: SALT_MODELS_SYSTEM_COMMIT
105 trim: 'false'
106 - string:
Hanna Arhipova653d5562020-08-03 15:32:09 +0300107 default: -m "run_cvp_func_sanity|run_cvp_tempest|run_stacklight"
Sergey Galkin24ebd762020-01-14 14:36:34 +0400108 description: |-
109 Pytest option -k or -m, with expression to select necessary tests.
110 Additional pytest options are allowed.
111 name: RUN_TEST_OPTS
112 trim: 'false'
113 - bool:
114 default: true
115 description: ''
116 name: SHUTDOWN_ENV_ON_TEARDOWN
117 - string:
118 default: ''
119 description: ''
120 name: COOKIECUTTER_REF_CHANGE
121 trim: 'false'
122 - string:
123 default: ''
124 description: ''
125 name: ENVIRONMENT_TEMPLATE_REF_CHANGE
126 trim: 'false'
127 - string:
128 default: '[MCP1.1_PIKE]Tempest'
129 description: ''
130 name: TEMPEST_TEST_SUITE_NAME
131 trim: 'false'
132 - string:
133 default: pike
134 description: ''
135 name: TEMPEST_IMAGE_VERSION
136 trim: 'false'
137 - string:
138 default: ''
139 description: ''
140 name: TEMPEST_TARGET
141 trim: 'false'
142 - string:
143 default: proposed
144 description: ''
145 name: UPDATE_REPO_CUSTOM_TAG
146 trim: 'false'
147 - bool:
148 default: true
149 description: If set, reports will be created in TestRail for this build
150 name: REPORT_TO_TESTRAIL
151 - choice:
152 choices:
153 - heat
154 - devops
155 description: ''
156 name: ENV_MANAGER
157 - string:
158 default: https://ic-eu.ssl.mirantis.net:5000/v3
159 description: 'Openstack keystone catalog endpoint, for example https://10.90.0.80:5000/v3'
160 name: OS_AUTH_URL
161 trim: 'false'
162 - string:
163 default: sre-team
164 description: OpenStack project (tenant) name
165 name: OS_PROJECT_NAME
166 trim: 'false'
167 - string:
Hanna Arhipova95659432020-01-28 14:24:02 +0200168 default: default
Sergey Galkin24ebd762020-01-14 14:36:34 +0400169 description: OpenStack user domain name
170 name: OS_USER_DOMAIN_NAME
171 trim: 'false'
172 - string:
Hanna Arhipova95659432020-01-28 14:24:02 +0200173 default: sre-qa-ci-eu
Sergey Galkin24ebd762020-01-14 14:36:34 +0400174 description: Jenkins credentials ID with username and password to create a
175 heat stack in OpenStack
176 name: OS_CREDENTIALS
177 trim: 'false'
178 - string:
Hanna Arhipovac692a122021-04-13 11:47:18 +0300179 default: eu-cloud-low-flavors.env
Sergey Galkin24ebd762020-01-14 14:36:34 +0400180 description: |-
181 Heat template environment filename with 'parameter_defaults' dict, placed in tcp_tests/templates/_heat_environments/
182 , for example: microcloud-8116.env
183 name: LAB_PARAM_DEFAULTS
184 trim: 'false'
185 - string:
186 default: release/proposed/2019.2.0
187 description: ''
188 name: JENKINS_PIPELINE_BRANCH
189 trim: 'false'
190 - string:
191 default: ''
192 description: ''
193 name: TEMPEST_PATTERN
194 trim: 'false'
195 - string:
196 default: refs/heads/release/proposed/2019.2.0
197 description: ''
198 name: MCP_COMMON_SCRIPTS_REFS
199 trim: 'false'
200 - string:
201 default: proposed
202 description: ''
203 name: UPDATE_VERSION
204 trim: 'false'
Dmitriy Kruglov758f99c2020-02-04 12:04:31 +0100205 - bool:
Hanna Arhipovaf098d462020-03-31 15:32:47 +0300206 default: true
Dmitriy Kruglov758f99c2020-02-04 12:04:31 +0100207 description: Whether to perform dist-upgrade on virtual nodes during deployment
208 name: DIST_UPGRADE_NODES
PGlazoved19b352020-05-21 16:42:27 +0400209 - bool:
210 default: true
211 description: 'Works starting from MCP 2019.2.10 or master. Whether to apply saltstack updates on all nodes in cluster before deployment'
212 name: UPGRADE_SALTSTACK
Sergey Galkin24ebd762020-01-14 14:36:34 +0400213 pipeline-scm:
214 lightweight-checkout: false
215 scm:
216 - git:
217 branches:
218 - FETCH_HEAD
219 refspec: '${{TCP_QA_REFS}}'
220 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
221 clean:
222 before: true
223 script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy