blob: 624e5531a2b940f84d8bcc5ebb20f672c5286e52 [file] [log] [blame]
Filip Pytloun7af94b32017-03-14 18:38:52 +01001parameters:
Filip Pytloun260a9502017-03-16 12:47:22 +01002 _param:
Tomáš Kukrále15675c2017-08-03 10:54:00 +02003 jenkins_deploy_jobs: []
Sergey Otpuschennikov235fc472018-04-10 20:19:35 +04004 heat_stack_zone_job_param:
5 type: string
6 default: "mcp-mk"
7 openstack_api_projects_job_param:
8 type: string
9 default: "mcp-mk"
Filip Pytloun7af94b32017-03-14 18:38:52 +010010 jenkins:
11 client:
12 job_template:
Tomáš Kukrále15675c2017-08-03 10:54:00 +020013 deploy_template:
14 name: deploy-{{stack_type}}-{{stack_name}}
15 jobs: ${_param:jenkins_deploy_jobs}
Filip Pytloun7af94b32017-03-14 18:38:52 +010016 template:
17 type: workflow-scm
Filip Pytloun260a9502017-03-16 12:47:22 +010018 discard:
19 build:
Jakub Josef1a828962018-01-23 12:33:34 +010020 keep_num: 100
Filip Pytloun7af94b32017-03-14 18:38:52 +010021 concurrent: true
Tomáš Kukrále15675c2017-08-03 10:54:00 +020022 display_name: "Deploy - {{stack_name}} {{stack_type}}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010023 scm:
24 type: git
25 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010026 branch: "${_param:jenkins_pipelines_branch}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010027 credentials: "gerrit"
Tomáš Kukrále0870442017-07-27 18:28:11 +020028 script: cloud-deploy-pipeline.groovy
Tomáš Kukrál903a7f62017-04-13 13:21:30 +020029 trigger:
30 timer:
Tomáš Kukrále15675c2017-08-03 10:54:00 +020031 spec: "{{job_timer}}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010032 param:
Tomáš Kukrále0870442017-07-27 18:28:11 +020033 # general parameters
34 ASK_ON_ERROR:
35 type: boolean
36 default: 'false'
Oleg Grigorov7aee3582017-10-31 16:02:19 +020037 SLAVE_NODE:
38 type: string
39 default: 'python'
Tomáš Kukrále0870442017-07-27 18:28:11 +020040
41 # deployments
42 STACK_NAME:
43 type: string
44 description: Heat stack name. Will be generated if missing.
Filip Pytloun260a9502017-03-16 12:47:22 +010045 STACK_TYPE:
46 type: string
47 default: "{{stack_type}}"
Jakub Josefca7e4562017-05-24 11:40:35 +020048 STACK_INSTALL:
Filip Pytloun260a9502017-03-16 12:47:22 +010049 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020050 default: "{{stack_install}}"
Jakub Josefca7e4562017-05-24 11:40:35 +020051 STACK_TEST:
Filip Pytloun260a9502017-03-16 12:47:22 +010052 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020053 default: "{{stack_test}}"
Tomáš Kukrále0870442017-07-27 18:28:11 +020054 STACK_REUSE:
55 type: boolean
56 default: 'false'
57 STACK_DELETE:
58 type: boolean
59 default: 'true'
60 description: "Don't enable it if you need to use the lab after"
61 STACK_COMPUTE_COUNT:
62 type: string
63 default: '2'
Vasyl Saienko664c3192018-03-06 02:24:02 +020064 STACK_CLUSTER_NAME:
65 type: string
66 default: ""
67 description: "Cluster name to use from reclass"
Filip Pytloun260a9502017-03-16 12:47:22 +010068
Tomáš Kukrále0870442017-07-27 18:28:11 +020069 STACK_TEMPLATE:
70 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020071 default: "{{stack_name}}"
Jakub Josef43f34432017-05-23 19:16:49 +020072 STACK_TEMPLATE_URL:
Filip Pytloun7af94b32017-03-14 18:38:52 +010073 type: string
Tomáš Kukrálcf72c8d2017-04-19 21:50:05 +020074 default: "${_param:jenkins_gerrit_url}/mk/heat-templates"
Jakub Josef43f34432017-05-23 19:16:49 +020075 STACK_TEMPLATE_CREDENTIALS:
Filip Pytloun7af94b32017-03-14 18:38:52 +010076 type: string
77 default: "gerrit"
Jakub Josef43f34432017-05-23 19:16:49 +020078 STACK_TEMPLATE_BRANCH:
Filip Pytloun7af94b32017-03-14 18:38:52 +010079 type: string
Tomáš Kukrál394cdbf2017-03-29 16:35:37 +020080 default: "master"
Jakub Josefca7e4562017-05-24 11:40:35 +020081 STACK_CLEANUP_JOB:
82 type: string
Jakub Josef1c271232017-06-05 11:39:34 +020083 default: 'deploy-stack-cleanup'
Filip Pytloun7af94b32017-03-14 18:38:52 +010084
Mykyta Karpinc54ab522017-11-30 12:48:29 +010085 STACK_RECLASS_ADDRESS:
86 type: string
87 default: ""
ibumarskovff68f412017-09-11 13:20:15 +040088 STACK_RECLASS_BRANCH:
89 type: string
90 default: ""
91
Tomáš Kukrále0870442017-07-27 18:28:11 +020092 # salt
Oleksii Grudev92b1a5b2018-07-06 17:24:58 +030093 EXTRA_TARGET:
94 type: string
95 default: ""
96 description: "Salt extra target for edge clouds deployment"
Filip Pytloun7af94b32017-03-14 18:38:52 +010097 SALT_MASTER_CREDENTIALS:
98 type: string
99 default: "salt-qa-credentials"
Filip Pytloun260a9502017-03-16 12:47:22 +0100100 SALT_MASTER_URL:
Filip Pytloun7af94b32017-03-14 18:38:52 +0100101 type: string
Filip Pytlounaa456012017-03-24 12:49:25 +0100102 default: ""
Vasyl Saienkobfe884f2017-07-27 14:50:23 +0300103 SALT_OVERRIDES:
Vasyl Saienko47f23472017-07-27 14:19:00 +0300104 type: text
105 default: ""
106 description: "YAML with overrides for Salt deployment"
Oleh Hryhorovca2b6ef2018-06-22 17:08:55 +0300107 SALT_VERSION:
108 type: text
Martin Polreichbd307772018-04-18 10:02:06 +0200109 default: "stable 2017.7"
110 description: "Version of Salt which is going to be installed i.e. 'stable 2016.3' or 'stable 2017.7' etc. Warning: This value doesn't override salt_version parameter set in the pillar."
Mykyta Karpin0fc2a442017-12-22 16:50:24 +0200111 BOOTSTRAP_EXTRA_REPO_PARAMS:
112 type: string
113 default: ""
114 description: "Defines a list of extra repos with parameters, format: repo 1, repo priority 1, repo pin 1; repo 2, repo priority 2, repo pin 2"
Mykyta Karpin46590842017-10-03 11:34:02 +0300115 FORMULA_PKG_REVISION:
116 type: string
117 default: ""
118 description: "Formulas revision to install on Salt Master bootstrap stage"
ibumarskov401fe452017-11-22 11:42:14 +0400119 EXTRA_FORMULAS:
120 type: string
ibumarskove159dc62017-12-29 05:07:36 -0800121 default: ""
Jiri Broulik52b73152017-12-19 15:37:50 +0100122 STATIC_MGMT_NETWORK:
123 type: boolean
124 default: 'false'
125 description: "Check if model contains static IP address definitions for all nodes"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100126
Tomáš Kukrále0870442017-07-27 18:28:11 +0200127 # aws api
128 AWS_STACK_REGION:
129 type: string
Tomáš Kukrál1de34e32017-11-29 10:15:37 +0100130 default: "eu-central-1"
Tomáš Kukrále0870442017-07-27 18:28:11 +0200131 AWS_API_CREDENTIALS:
132 type: string
133 default: "aws-credentials"
134 AWS_SSH_KEY:
135 type: string
136 default: "jenkins-mk"
137
138 # heat
139 HEAT_STACK_ENVIRONMENT:
140 type: string
Ales Komarek4d74ebb2017-08-07 12:57:14 +0200141 default: "{{stack_env}}"
Sergey Otpuschennikov235fc472018-04-10 20:19:35 +0400142 HEAT_STACK_ZONE: ${_param:heat_stack_zone_job_param}
Tomáš Kukrále0870442017-07-27 18:28:11 +0200143 HEAT_STACK_PUBLIC_NET:
144 type: string
145 default: "public"
146
Filip Pytloun7af94b32017-03-14 18:38:52 +0100147 # openstack api
148 OPENSTACK_API_URL:
149 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200150 default: "https://cloud-cz.bud.mirantis.net:5000"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100151 OPENSTACK_API_CREDENTIALS:
152 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200153 default: "openstack-devcloud-credentials"
Sergey Otpuschennikov235fc472018-04-10 20:19:35 +0400154 OPENSTACK_API_PROJECT: ${_param:openstack_api_projects_job_param}
Tomáš Kukrále0870442017-07-27 18:28:11 +0200155 OPENSTACK_API_PROJECT_DOMAIN:
156 type: string
Tomáš Kukrálb6f15222017-08-02 11:11:56 +0200157 default: "default"
Tomáš Kukrále0870442017-07-27 18:28:11 +0200158 OPENSTACK_API_PROJECT_ID:
159 type: string
160 default: ""
161 OPENSTACK_API_USER_DOMAIN:
162 type: string
163 default: "default"
164
Filip Pytloun7af94b32017-03-14 18:38:52 +0100165 OPENSTACK_API_CLIENT:
166 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200167 default: ""
Filip Pytloun7af94b32017-03-14 18:38:52 +0100168 OPENSTACK_API_VERSION:
169 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200170 default: "3"
Filip Pytloun260a9502017-03-16 12:47:22 +0100171
Tomáš Kukrále15675c2017-08-03 10:54:00 +0200172 # test
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200173 TEST_K8S_API_SERVER:
Filip Pytloun260a9502017-03-16 12:47:22 +0100174 type: string
175 default: "http://127.0.0.1:8080"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200176 TEST_K8S_CONFORMANCE_IMAGE:
Filip Pytloun260a9502017-03-16 12:47:22 +0100177 type: string
Victor Ryzhenkinbcc1d442018-06-05 19:16:40 +0400178 default: "docker-prod-virtual.docker.mirantis.net/mirantis/kubernetes/k8s-conformance:v1.10.4-4"
Filip Pytloun260a9502017-03-16 12:47:22 +0100179
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200180 TEST_TEMPEST_IMAGE:
Filip Pytloun260a9502017-03-16 12:47:22 +0100181 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +0200182 description: "Tempest docker image"
Oleksandr Kosse05a98112017-09-28 17:38:55 +0300183 default: "docker-prod-local.artifactory.mirantis.com/mirantis/oscore/rally-tempest"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200184 TEST_TEMPEST_TARGET:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300185 type: string
186 description: "Node to run tests"
187 default: ""
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200188 TEST_DOCKER_INSTALL:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300189 type: boolean
190 description: "Install docker on the target if true"
191 default: "true"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200192 TEST_TEMPEST_PATTERN:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300193 type: string
194 description: "Run tests matched to pattern only"
195 default: ""
Filip Pytloun260a9502017-03-16 12:47:22 +0100196
ibumarskova73d7c32018-01-16 11:08:50 +0400197 # TestRail vars
198 TESTRAIL_REPORT:
199 type: boolean
200 description: "Report test results to TestRail if true"
201 default: "false"
202 TESTRAIL_REPORTER_IMAGE:
203 type: string
204 description: "Testrail reporter docker image"
205 default: "alrem/xunit2testrail"
206 TESTRAIL_QA_CREDENTIALS:
207 type: string
208 description: "Credentials for results upload to testrail"
209 default: "oscore-qa-credentials"
210 TESTRAIL_MILESTONE:
211 type: string
212 description: "TestRail milestone"
213 default: "MCP1.1"
214 TESTRAIL_PLAN:
215 type: string
216 description: "TestRail test plan name. Will be generated if missing."
217 default: ""
218 TESTRAIL_GROUP:
219 type: string
220 description: "TestRail test group name."
221 default: "{{stack_name}}"
222 TESTRAIL_SUITE:
223 type: string
224 description: "TestRail test suite name"
225 default: "Tempest 16.0.0 with designate tests"