blob: f3baf7e3d44aed5cfa72115f284e0bfbe540e9ca [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'
73 - string:
74 default: ''
75 description: |-
76 Example: refs/changes/89/411189/36
77 (for now - only one reference allowed)
78 name: TCP_QA_REFS
79 trim: 'false'
80 - string:
81 default: refs/heads/release/proposed/2019.2.0
82 description: reference to patchset in pipeline-library
83 name: PIPELINE_LIBRARY_REF
84 trim: 'false'
85 - string:
86 default: refs/heads/release/proposed/2019.2.0
87 description: reference to patchset in mk-pipelines
88 name: MK_PIPELINES_REF
89 trim: 'false'
90 - string:
91 default: release/proposed/2019.2.0
92 description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}}
93 value
94 name: COOKIECUTTER_TEMPLATE_COMMIT
95 trim: 'false'
96 - string:
97 default: release/proposed/2019.2.0
98 description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}}
99 value
100 name: SALT_MODELS_SYSTEM_COMMIT
101 trim: 'false'
102 - string:
Hanna Arhipova653d5562020-08-03 15:32:09 +0300103 default: -m "run_cvp_func_sanity|run_cvp_tempest|run_stacklight"
Sergey Galkin24ebd762020-01-14 14:36:34 +0400104 description: |-
105 Pytest option -k or -m, with expression to select necessary tests.
106 Additional pytest options are allowed.
107 name: RUN_TEST_OPTS
108 trim: 'false'
109 - bool:
110 default: true
111 description: ''
112 name: SHUTDOWN_ENV_ON_TEARDOWN
113 - string:
114 default: ''
115 description: ''
116 name: COOKIECUTTER_REF_CHANGE
117 trim: 'false'
118 - string:
119 default: ''
120 description: ''
121 name: ENVIRONMENT_TEMPLATE_REF_CHANGE
122 trim: 'false'
123 - string:
124 default: '[MCP1.1_PIKE]Tempest'
125 description: ''
126 name: TEMPEST_TEST_SUITE_NAME
127 trim: 'false'
128 - string:
129 default: pike
130 description: ''
131 name: TEMPEST_IMAGE_VERSION
132 trim: 'false'
133 - string:
134 default: ''
135 description: ''
136 name: TEMPEST_TARGET
137 trim: 'false'
138 - string:
139 default: proposed
140 description: ''
141 name: UPDATE_REPO_CUSTOM_TAG
142 trim: 'false'
143 - bool:
144 default: true
145 description: If set, reports will be created in TestRail for this build
146 name: REPORT_TO_TESTRAIL
147 - choice:
148 choices:
149 - heat
150 - devops
151 description: ''
152 name: ENV_MANAGER
153 - string:
154 default: https://ic-eu.ssl.mirantis.net:5000/v3
155 description: 'Openstack keystone catalog endpoint, for example https://10.90.0.80:5000/v3'
156 name: OS_AUTH_URL
157 trim: 'false'
158 - string:
159 default: sre-team
160 description: OpenStack project (tenant) name
161 name: OS_PROJECT_NAME
162 trim: 'false'
163 - string:
Hanna Arhipova95659432020-01-28 14:24:02 +0200164 default: default
Sergey Galkin24ebd762020-01-14 14:36:34 +0400165 description: OpenStack user domain name
166 name: OS_USER_DOMAIN_NAME
167 trim: 'false'
168 - string:
Hanna Arhipova95659432020-01-28 14:24:02 +0200169 default: sre-qa-ci-eu
Sergey Galkin24ebd762020-01-14 14:36:34 +0400170 description: Jenkins credentials ID with username and password to create a
171 heat stack in OpenStack
172 name: OS_CREDENTIALS
173 trim: 'false'
174 - string:
Hanna Arhipova95659432020-01-28 14:24:02 +0200175 default: eu-cloud.env
Sergey Galkin24ebd762020-01-14 14:36:34 +0400176 description: |-
177 Heat template environment filename with 'parameter_defaults' dict, placed in tcp_tests/templates/_heat_environments/
178 , for example: microcloud-8116.env
179 name: LAB_PARAM_DEFAULTS
180 trim: 'false'
181 - string:
182 default: release/proposed/2019.2.0
183 description: ''
184 name: JENKINS_PIPELINE_BRANCH
185 trim: 'false'
186 - string:
187 default: ''
188 description: ''
189 name: TEMPEST_PATTERN
190 trim: 'false'
191 - string:
192 default: refs/heads/release/proposed/2019.2.0
193 description: ''
194 name: MCP_COMMON_SCRIPTS_REFS
195 trim: 'false'
196 - string:
197 default: proposed
198 description: ''
199 name: UPDATE_VERSION
200 trim: 'false'
Dmitriy Kruglov758f99c2020-02-04 12:04:31 +0100201 - bool:
Hanna Arhipovaf098d462020-03-31 15:32:47 +0300202 default: true
Dmitriy Kruglov758f99c2020-02-04 12:04:31 +0100203 description: Whether to perform dist-upgrade on virtual nodes during deployment
204 name: DIST_UPGRADE_NODES
PGlazoved19b352020-05-21 16:42:27 +0400205 - bool:
206 default: true
207 description: 'Works starting from MCP 2019.2.10 or master. Whether to apply saltstack updates on all nodes in cluster before deployment'
208 name: UPGRADE_SALTSTACK
Sergey Galkin24ebd762020-01-14 14:36:34 +0400209 pipeline-scm:
210 lightweight-checkout: false
211 scm:
212 - git:
213 branches:
214 - FETCH_HEAD
215 refspec: '${{TCP_QA_REFS}}'
216 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
217 clean:
218 before: true
219 script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy