blob: 9a04876c658180d1ea562df508f69e6e2da74841 [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: []
Filip Pytloun7af94b32017-03-14 18:38:52 +01004 jenkins:
5 client:
6 job_template:
Tomáš Kukrále15675c2017-08-03 10:54:00 +02007 deploy_template:
8 name: deploy-{{stack_type}}-{{stack_name}}
9 jobs: ${_param:jenkins_deploy_jobs}
Filip Pytloun7af94b32017-03-14 18:38:52 +010010 template:
11 type: workflow-scm
Filip Pytloun260a9502017-03-16 12:47:22 +010012 discard:
13 build:
Jakub Josef1a828962018-01-23 12:33:34 +010014 keep_num: 100
Filip Pytloun7af94b32017-03-14 18:38:52 +010015 concurrent: true
Tomáš Kukrále15675c2017-08-03 10:54:00 +020016 display_name: "Deploy - {{stack_name}} {{stack_type}}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010017 scm:
18 type: git
19 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010020 branch: "${_param:jenkins_pipelines_branch}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010021 credentials: "gerrit"
Tomáš Kukrále0870442017-07-27 18:28:11 +020022 script: cloud-deploy-pipeline.groovy
Tomáš Kukrál903a7f62017-04-13 13:21:30 +020023 trigger:
24 timer:
Tomáš Kukrále15675c2017-08-03 10:54:00 +020025 spec: "{{job_timer}}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010026 param:
Tomáš Kukrále0870442017-07-27 18:28:11 +020027 # general parameters
28 ASK_ON_ERROR:
29 type: boolean
30 default: 'false'
Oleg Grigorov7aee3582017-10-31 16:02:19 +020031 SLAVE_NODE:
32 type: string
33 default: 'python'
Tomáš Kukrále0870442017-07-27 18:28:11 +020034
35 # deployments
36 STACK_NAME:
37 type: string
38 description: Heat stack name. Will be generated if missing.
Filip Pytloun260a9502017-03-16 12:47:22 +010039 STACK_TYPE:
40 type: string
41 default: "{{stack_type}}"
Jakub Josefca7e4562017-05-24 11:40:35 +020042 STACK_INSTALL:
Filip Pytloun260a9502017-03-16 12:47:22 +010043 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020044 default: "{{stack_install}}"
Jakub Josefca7e4562017-05-24 11:40:35 +020045 STACK_TEST:
Filip Pytloun260a9502017-03-16 12:47:22 +010046 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020047 default: "{{stack_test}}"
Tomáš Kukrále0870442017-07-27 18:28:11 +020048 STACK_REUSE:
49 type: boolean
50 default: 'false'
51 STACK_DELETE:
52 type: boolean
53 default: 'true'
54 description: "Don't enable it if you need to use the lab after"
55 STACK_COMPUTE_COUNT:
56 type: string
57 default: '2'
Filip Pytloun260a9502017-03-16 12:47:22 +010058
Tomáš Kukrále0870442017-07-27 18:28:11 +020059 STACK_TEMPLATE:
60 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020061 default: "{{stack_name}}"
Jakub Josef43f34432017-05-23 19:16:49 +020062 STACK_TEMPLATE_URL:
Filip Pytloun7af94b32017-03-14 18:38:52 +010063 type: string
Tomáš Kukrálcf72c8d2017-04-19 21:50:05 +020064 default: "${_param:jenkins_gerrit_url}/mk/heat-templates"
Jakub Josef43f34432017-05-23 19:16:49 +020065 STACK_TEMPLATE_CREDENTIALS:
Filip Pytloun7af94b32017-03-14 18:38:52 +010066 type: string
67 default: "gerrit"
Jakub Josef43f34432017-05-23 19:16:49 +020068 STACK_TEMPLATE_BRANCH:
Filip Pytloun7af94b32017-03-14 18:38:52 +010069 type: string
Tomáš Kukrál394cdbf2017-03-29 16:35:37 +020070 default: "master"
Jakub Josefca7e4562017-05-24 11:40:35 +020071 STACK_CLEANUP_JOB:
72 type: string
Jakub Josef1c271232017-06-05 11:39:34 +020073 default: 'deploy-stack-cleanup'
Filip Pytloun7af94b32017-03-14 18:38:52 +010074
Mykyta Karpinc54ab522017-11-30 12:48:29 +010075 STACK_RECLASS_ADDRESS:
76 type: string
77 default: ""
ibumarskovff68f412017-09-11 13:20:15 +040078 STACK_RECLASS_BRANCH:
79 type: string
80 default: ""
81
Tomáš Kukrále0870442017-07-27 18:28:11 +020082 # salt
Filip Pytloun7af94b32017-03-14 18:38:52 +010083 SALT_MASTER_CREDENTIALS:
84 type: string
85 default: "salt-qa-credentials"
Filip Pytloun260a9502017-03-16 12:47:22 +010086 SALT_MASTER_URL:
Filip Pytloun7af94b32017-03-14 18:38:52 +010087 type: string
Filip Pytlounaa456012017-03-24 12:49:25 +010088 default: ""
Vasyl Saienkobfe884f2017-07-27 14:50:23 +030089 SALT_OVERRIDES:
Vasyl Saienko47f23472017-07-27 14:19:00 +030090 type: text
91 default: ""
92 description: "YAML with overrides for Salt deployment"
Mykyta Karpin0fc2a442017-12-22 16:50:24 +020093 BOOTSTRAP_EXTRA_REPO_PARAMS:
94 type: string
95 default: ""
96 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 +030097 FORMULA_PKG_REVISION:
98 type: string
99 default: ""
100 description: "Formulas revision to install on Salt Master bootstrap stage"
ibumarskov401fe452017-11-22 11:42:14 +0400101 EXTRA_FORMULAS:
102 type: string
ibumarskove159dc62017-12-29 05:07:36 -0800103 default: ""
Jiri Broulik52b73152017-12-19 15:37:50 +0100104 STATIC_MGMT_NETWORK:
105 type: boolean
106 default: 'false'
107 description: "Check if model contains static IP address definitions for all nodes"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100108
Tomáš Kukrále0870442017-07-27 18:28:11 +0200109 # aws api
110 AWS_STACK_REGION:
111 type: string
Tomáš Kukrál1de34e32017-11-29 10:15:37 +0100112 default: "eu-central-1"
Tomáš Kukrále0870442017-07-27 18:28:11 +0200113 AWS_API_CREDENTIALS:
114 type: string
115 default: "aws-credentials"
116 AWS_SSH_KEY:
117 type: string
118 default: "jenkins-mk"
119
120 # heat
121 HEAT_STACK_ENVIRONMENT:
122 type: string
Ales Komarek4d74ebb2017-08-07 12:57:14 +0200123 default: "{{stack_env}}"
Tomáš Kukrále0870442017-07-27 18:28:11 +0200124 HEAT_STACK_ZONE:
125 type: string
126 default: "mcp-mk"
127 HEAT_STACK_PUBLIC_NET:
128 type: string
129 default: "public"
130
Filip Pytloun7af94b32017-03-14 18:38:52 +0100131 # openstack api
132 OPENSTACK_API_URL:
133 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200134 default: "https://cloud-cz.bud.mirantis.net:5000"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100135 OPENSTACK_API_CREDENTIALS:
136 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200137 default: "openstack-devcloud-credentials"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100138 OPENSTACK_API_PROJECT:
139 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200140 default: "mcp-mk"
Tomáš Kukrále0870442017-07-27 18:28:11 +0200141 OPENSTACK_API_PROJECT_DOMAIN:
142 type: string
Tomáš Kukrálb6f15222017-08-02 11:11:56 +0200143 default: "default"
Tomáš Kukrále0870442017-07-27 18:28:11 +0200144 OPENSTACK_API_PROJECT_ID:
145 type: string
146 default: ""
147 OPENSTACK_API_USER_DOMAIN:
148 type: string
149 default: "default"
150
Filip Pytloun7af94b32017-03-14 18:38:52 +0100151 OPENSTACK_API_CLIENT:
152 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200153 default: ""
Filip Pytloun7af94b32017-03-14 18:38:52 +0100154 OPENSTACK_API_VERSION:
155 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200156 default: "3"
Filip Pytloun260a9502017-03-16 12:47:22 +0100157
Tomáš Kukrále15675c2017-08-03 10:54:00 +0200158 # test
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200159 TEST_K8S_API_SERVER:
Filip Pytloun260a9502017-03-16 12:47:22 +0100160 type: string
161 default: "http://127.0.0.1:8080"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200162 TEST_K8S_CONFORMANCE_IMAGE:
Filip Pytloun260a9502017-03-16 12:47:22 +0100163 type: string
vrovachev7e709802017-09-15 20:04:26 +0400164 default: "docker-dev-virtual.docker.mirantis.net/mirantis/kubernetes/k8s-conformance:v1.7.5-2_1504192939316"
Filip Pytloun260a9502017-03-16 12:47:22 +0100165
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200166 TEST_TEMPEST_IMAGE:
Filip Pytloun260a9502017-03-16 12:47:22 +0100167 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +0200168 description: "Tempest docker image"
Oleksandr Kosse05a98112017-09-28 17:38:55 +0300169 default: "docker-prod-local.artifactory.mirantis.com/mirantis/oscore/rally-tempest"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200170 TEST_TEMPEST_TARGET:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300171 type: string
172 description: "Node to run tests"
173 default: ""
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200174 TEST_DOCKER_INSTALL:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300175 type: boolean
176 description: "Install docker on the target if true"
177 default: "true"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200178 TEST_TEMPEST_PATTERN:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300179 type: string
180 description: "Run tests matched to pattern only"
181 default: ""
Filip Pytloun260a9502017-03-16 12:47:22 +0100182
ibumarskova73d7c32018-01-16 11:08:50 +0400183 # TestRail vars
184 TESTRAIL_REPORT:
185 type: boolean
186 description: "Report test results to TestRail if true"
187 default: "false"
188 TESTRAIL_REPORTER_IMAGE:
189 type: string
190 description: "Testrail reporter docker image"
191 default: "alrem/xunit2testrail"
192 TESTRAIL_QA_CREDENTIALS:
193 type: string
194 description: "Credentials for results upload to testrail"
195 default: "oscore-qa-credentials"
196 TESTRAIL_MILESTONE:
197 type: string
198 description: "TestRail milestone"
199 default: "MCP1.1"
200 TESTRAIL_PLAN:
201 type: string
202 description: "TestRail test plan name. Will be generated if missing."
203 default: ""
204 TESTRAIL_GROUP:
205 type: string
206 description: "TestRail test group name."
207 default: "{{stack_name}}"
208 TESTRAIL_SUITE:
209 type: string
210 description: "TestRail test suite name"
211 default: "Tempest 16.0.0 with designate tests"