blob: 2dbc28b36a0989dd15a83e1c55f53e83c381c63f [file] [log] [blame]
Pavel Glazovf82cd532022-10-19 21:36:13 +04001- job-template:
2 project-type: pipeline
3 description: '{job-description}'
4 concurrent: true
5 disabled: false
6 name: swarm-bootstrap-salt-cluster-heat-jjb
7 properties:
8 - throttle:
9 option: project
10 max-per-node: 3
11 max-total: 3
12 parameters:
13 - string:
14 name: ENV_NAME
15 default:
16 description: 'Required: Fuel-devops environment name'
17 trim: 'false'
18 - string:
19 name: LAB_CONFIG_NAME
20 default: ''
21 description: ''
22 trim: 'false'
23 - string:
24 name: PARENT_NODE_NAME
25 default: ''
26 description: |-
27 Required: Name of the jenkins slave to create the environment<br>
28 To be set by the parent deployment job.
29 trim: 'false'
30 - string:
31 name: PARENT_WORKSPACE
32 default: ''
33 description: |-
34 Required: Workspace on the jenkins slave to reuse for the job<br>
35 To be set by the parent deployment job.
36 trim: 'false'
37 - string:
38 name: MCP_VERSION
39 default: 'proposed'
40 description: ''
41 trim: 'false'
42 - string:
43 name: MCP_IMAGE_PATH1604
44 default: '/home/jenkins/images/ubuntu-16-04-x64-mcpproposed.qcow2'
45 description: |-
46 Required: Local path to the image
47 http://ci.mcp.mirantis.net:8085/images/ubuntu-16-04-x64-mcpproposed.qcow2'
48 trim: 'false'
49 - string:
50 name: CFG01_CONFIG_IMAGE_NAME
51 default: cfg01.${{LAB_CONFIG_NAME}}-config-drive.iso
52 description: |-
53 ISO name that will be generated and downloaded to the /home/jenkins/images/
54 trim: 'false'
55 - string:
56 name: IMAGE_PATH_CFG01_DAY01
57 default: '/home/jenkins/images/cfg01-day01.qcow2'
58 description: |-
59 Required: Local path to the image
60 http://ci.mcp.mirantis.net:8085/images/ubuntu-16-04-x64-mcpproposed.qcow2'
61 trim: 'false'
62 - string:
63 name: TCP_QA_REFS
64 default: ''
65 description: |-
66 Example: refs/changes/89/411189/36 (for now - only one reference allowed)
67 trim: 'false'
68 - string:
69 name: PIPELINE_LIBRARY_REF
70 default: ''
71 description: |-
72 reference to patchset in pipeline-library
73 trim: 'false'
74 - string:
75 name: MK_PIPELINES_REF
76 default: ''
77 description: |-
78 reference to patchset in mk-pipelines
79 trim: 'false'
80 - string:
81 name: COOKIECUTTER_TEMPLATE_COMMIT
82 default: ''
83 description: |-
84 Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}} value
85 trim: 'false'
86 - string:
87 name: SALT_MODELS_SYSTEM_COMMIT
88 default: ''
89 description: |-
90 Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}} value
91 trim: 'false'
92 - bool:
93 name: SHUTDOWN_ENV_ON_TEARDOWN
94 default: true
95 description: |-
96 Shutdown the fuel-devops environment at the end of the job
97 trim: 'false'
98 - string:
99 name: JENKINS_SLAVE_NODE_NAME
100 default: ''
101 trim: 'false'
102 - string:
103 name: PARENT_WORKSPACE
104 default: ''
105 description: |-
106 Required: Workspace on the jenkins slave to reuse for the job
107 To be set by the parent deployment job.
108 trim: 'false'
109 - string:
110 name: COOKIECUTTER_REF_CHANGE
111 default: ''
112 description: ''
113 trim: 'false'
114 - string:
115 name: ENVIRONMENT_TEMPLATE_REF_CHANGE
116 default: ''
117 description: ''
118 trim: 'false'
119 - string:
120 name: LAB_MANAGEMENT_IFACE
121 default: ''
122 description: 'For BareMetal only'
123 trim: 'false'
124 - string:
125 name: LAB_CONTROL_IFACE
126 default: ''
127 description: 'For BareMetal only'
128 trim: 'false'
129 - password:
130 name: IPMI_USER
131 default: admin
132 description: "For maas only"
133 - password:
134 name: IPMI_PASS
135 default: password
136 description: "For maas only"
137 - string:
138 name: MCP_SALT_REPO_URL
139 default: ''
140 description: |-
141 If empty: use default from mcp-common-scripts config-drive/master_config.yaml
142 For offline deploy: http://10.10.0.14/ubuntu-xenial
143 For online deploy: http://mirror.mirantis.com/
144 - string:
145 name: MCP_SALT_REPO_KEY
146 default: ''
147 description: |-
148 If empty: use default from mcp-common-scripts config-drive/master_config.yaml
149 For offline deploy: http://10.10.0.14/public.gpg
150 For online deploy:
151 ${{MCP_SALT_REPO_URL}}/${{MCP_VERSION}}/salt-formulas/xenial/archive-salt-formulas.key
152 - string:
153 name: MCP_COMMON_SCRIPTS_REFS
154 default: ''
155 description: ''
156 trim: 'false'
157 - string:
158 name: SALT_MODELS_SYSTEM_REF_CHANGE
159 default: ''
160 description: ''
161 trim: 'false'
162 - string:
163 name: UPDATE_REPO_CUSTOM_TAG
164 default: ''
165 description: 'The custom tag for update repos. Could be like `2018.11.0`, `2019.2.0`, `proposed` etc.'
166 trim: 'false'
167 - string:
168 name: OS_AUTH_URL
169 default: ''
170 description: 'Openstack keystone catalog endpoint, for example https://10.90.0.80:5000/v3'
171 trim: 'false'
172 - string:
173 name: OS_PROJECT_NAME
174 default: 'admin'
175 description: 'OpenStack project (tenant) name'
176 trim: 'false'
177 - string:
178 name: OS_CREDENTIALS
179 default: ''
180 description: 'Jenkins credentials ID with username and password to create a heat stack in OpenStack'
181 trim: 'false'
182 - string:
183 name: LAB_PARAM_DEFAULTS
184 default: ''
185 description: |-
186 Heat template environment filename with 'parameter_defaults'
187 dict, placed in tcp_tests/templates/_heat_environments/,
188 for example: microcloud-8116.env
189 trim: 'false'
190 - string:
191 name: CREATE_JENKINS_NODE_CREDENTIALS
192 default: 'create_jenkins_node_cz8133'
193 description: |-
194 Credentials with username and password with rights to create a Jenkins slave node
195 trim: 'false'
196 - string:
197 name: ACCESS_JENKINS_NODE_CREDENTIALS
198 default: '02177449-43b5-41d7-b31f-0ab77acedb71'
199 description: |-
200 Credentials with SSH username and private key to run a Jenkins agent on slave node
201 trim: 'false'
202 - string:
203 name: OS_USER_DOMAIN_NAME
204 default: ''
205 description: |-
206 OpenStack user domain name
207 trim: 'false'
208 - string:
209 name: JENKINS_PIPELINE_BRANCH
210 default: ''
211 description: ''
212 trim: 'false'
213 - string:
214 name: UPDATE_VERSION
215 default: 'proposed'
216 description: ''
217 trim: 'false'
218 - string:
219 name: UPDATES_MIRANTIS_VERSION
220 default: ''
221 description: |
222 Overwrite subsection of updates.mirantis.com repository.
223 Effective only if enabled in cookiecutter context!
224 - password:
225 name: CISCO_PASS
226 default: '1fac0DlhILBo'
227 description: "For maas only"
228 - bool:
229 name: DEPLOY_EMPTY_NODE
230 default: 'false'
231 pipeline-scm:
232 lightweight-checkout: false
233 scm:
234 - git:
235 branches:
236 - FETCH_HEAD
237 refspec: ${{TCP_QA_REFS}}
238 url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa
239 script-path: jobs/pipelines/swarm-bootstrap-salt-cluster-heat.groovy
240 logrotate:
241 daysToKeep: 30