Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 1 | parameters: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 2 | _param: |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 3 | jenkins_deploy_jobs: [] |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 4 | jenkins: |
5 | client: | ||||
6 | job_template: | ||||
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 7 | deploy_template: |
8 | name: deploy-{{stack_type}}-{{stack_name}} | ||||
9 | jobs: ${_param:jenkins_deploy_jobs} | ||||
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 10 | template: |
11 | type: workflow-scm | ||||
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 12 | discard: |
13 | build: | ||||
14 | keep_num: 20 | ||||
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 15 | concurrent: true |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 16 | display_name: "Deploy - {{stack_name}} {{stack_type}}" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 17 | scm: |
18 | type: git | ||||
19 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" | ||||
20 | credentials: "gerrit" | ||||
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 21 | script: cloud-deploy-pipeline.groovy |
Tomáš Kukrál | 903a7f6 | 2017-04-13 13:21:30 +0200 | [diff] [blame] | 22 | trigger: |
23 | timer: | ||||
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 24 | spec: "{{job_timer}}" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 25 | param: |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 26 | # general parameters |
27 | ASK_ON_ERROR: | ||||
28 | type: boolean | ||||
29 | default: 'false' | ||||
Oleg Grigorov | 7aee358 | 2017-10-31 16:02:19 +0200 | [diff] [blame] | 30 | SLAVE_NODE: |
31 | type: string | ||||
32 | default: 'python' | ||||
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 33 | |
34 | # deployments | ||||
35 | STACK_NAME: | ||||
36 | type: string | ||||
37 | description: Heat stack name. Will be generated if missing. | ||||
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 38 | STACK_TYPE: |
39 | type: string | ||||
40 | default: "{{stack_type}}" | ||||
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 41 | STACK_INSTALL: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 42 | type: string |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 43 | default: "{{stack_install}}" |
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 44 | STACK_TEST: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 45 | type: string |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 46 | default: "{{stack_test}}" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 47 | STACK_REUSE: |
48 | type: boolean | ||||
49 | default: 'false' | ||||
50 | STACK_DELETE: | ||||
51 | type: boolean | ||||
52 | default: 'true' | ||||
53 | description: "Don't enable it if you need to use the lab after" | ||||
54 | STACK_COMPUTE_COUNT: | ||||
55 | type: string | ||||
56 | default: '2' | ||||
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 57 | |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 58 | STACK_TEMPLATE: |
59 | type: string | ||||
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 60 | default: "{{stack_name}}" |
Jakub Josef | 43f3443 | 2017-05-23 19:16:49 +0200 | [diff] [blame] | 61 | STACK_TEMPLATE_URL: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 62 | type: string |
Tomáš Kukrál | cf72c8d | 2017-04-19 21:50:05 +0200 | [diff] [blame] | 63 | default: "${_param:jenkins_gerrit_url}/mk/heat-templates" |
Jakub Josef | 43f3443 | 2017-05-23 19:16:49 +0200 | [diff] [blame] | 64 | STACK_TEMPLATE_CREDENTIALS: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 65 | type: string |
66 | default: "gerrit" | ||||
Jakub Josef | 43f3443 | 2017-05-23 19:16:49 +0200 | [diff] [blame] | 67 | STACK_TEMPLATE_BRANCH: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 68 | type: string |
Tomáš Kukrál | 394cdbf | 2017-03-29 16:35:37 +0200 | [diff] [blame] | 69 | default: "master" |
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 70 | STACK_CLEANUP_JOB: |
71 | type: string | ||||
Jakub Josef | 1c27123 | 2017-06-05 11:39:34 +0200 | [diff] [blame] | 72 | default: 'deploy-stack-cleanup' |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 73 | |
ibumarskov | ff68f41 | 2017-09-11 13:20:15 +0400 | [diff] [blame] | 74 | STACK_RECLASS_BRANCH: |
75 | type: string | ||||
76 | default: "" | ||||
77 | |||||
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 78 | # salt |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 79 | SALT_MASTER_CREDENTIALS: |
80 | type: string | ||||
81 | default: "salt-qa-credentials" | ||||
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 82 | SALT_MASTER_URL: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 83 | type: string |
Filip Pytloun | aa45601 | 2017-03-24 12:49:25 +0100 | [diff] [blame] | 84 | default: "" |
Vasyl Saienko | bfe884f | 2017-07-27 14:50:23 +0300 | [diff] [blame] | 85 | SALT_OVERRIDES: |
Vasyl Saienko | 47f2347 | 2017-07-27 14:19:00 +0300 | [diff] [blame] | 86 | type: text |
87 | default: "" | ||||
88 | description: "YAML with overrides for Salt deployment" | ||||
Mykyta Karpin | 4659084 | 2017-10-03 11:34:02 +0300 | [diff] [blame] | 89 | FORMULA_PKG_REVISION: |
90 | type: string | ||||
91 | default: "" | ||||
92 | description: "Formulas revision to install on Salt Master bootstrap stage" | ||||
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 93 | |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 94 | # aws api |
95 | AWS_STACK_REGION: | ||||
96 | type: string | ||||
97 | default: "us-west-2" | ||||
98 | AWS_API_CREDENTIALS: | ||||
99 | type: string | ||||
100 | default: "aws-credentials" | ||||
101 | AWS_SSH_KEY: | ||||
102 | type: string | ||||
103 | default: "jenkins-mk" | ||||
104 | |||||
105 | # heat | ||||
106 | HEAT_STACK_ENVIRONMENT: | ||||
107 | type: string | ||||
Ales Komarek | 4d74ebb | 2017-08-07 12:57:14 +0200 | [diff] [blame] | 108 | default: "{{stack_env}}" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 109 | HEAT_STACK_ZONE: |
110 | type: string | ||||
111 | default: "mcp-mk" | ||||
112 | HEAT_STACK_PUBLIC_NET: | ||||
113 | type: string | ||||
114 | default: "public" | ||||
115 | |||||
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 116 | # openstack api |
117 | OPENSTACK_API_URL: | ||||
118 | type: string | ||||
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 119 | default: "https://cloud-cz.bud.mirantis.net:5000" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 120 | OPENSTACK_API_CREDENTIALS: |
121 | type: string | ||||
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 122 | default: "openstack-devcloud-credentials" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 123 | OPENSTACK_API_PROJECT: |
124 | type: string | ||||
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 125 | default: "mcp-mk" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 126 | OPENSTACK_API_PROJECT_DOMAIN: |
127 | type: string | ||||
Tomáš Kukrál | b6f1522 | 2017-08-02 11:11:56 +0200 | [diff] [blame] | 128 | default: "default" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 129 | OPENSTACK_API_PROJECT_ID: |
130 | type: string | ||||
131 | default: "" | ||||
132 | OPENSTACK_API_USER_DOMAIN: | ||||
133 | type: string | ||||
134 | default: "default" | ||||
135 | |||||
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 136 | OPENSTACK_API_CLIENT: |
137 | type: string | ||||
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 138 | default: "" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 139 | OPENSTACK_API_VERSION: |
140 | type: string | ||||
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 141 | default: "3" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 142 | |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 143 | # test |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 144 | TEST_K8S_API_SERVER: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 145 | type: string |
146 | default: "http://127.0.0.1:8080" | ||||
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 147 | TEST_K8S_CONFORMANCE_IMAGE: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 148 | type: string |
vrovachev | 7e70980 | 2017-09-15 20:04:26 +0400 | [diff] [blame] | 149 | default: "docker-dev-virtual.docker.mirantis.net/mirantis/kubernetes/k8s-conformance:v1.7.5-2_1504192939316" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 150 | |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 151 | TEST_TEMPEST_IMAGE: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 152 | type: string |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 153 | description: "Tempest docker image" |
Oleksandr Kosse | 05a9811 | 2017-09-28 17:38:55 +0300 | [diff] [blame] | 154 | default: "docker-prod-local.artifactory.mirantis.com/mirantis/oscore/rally-tempest" |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 155 | TEST_TEMPEST_TARGET: |
Vasyl Saienko | 68f2e4b | 2017-07-20 12:40:24 +0300 | [diff] [blame] | 156 | type: string |
157 | description: "Node to run tests" | ||||
158 | default: "" | ||||
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 159 | TEST_DOCKER_INSTALL: |
Vasyl Saienko | 68f2e4b | 2017-07-20 12:40:24 +0300 | [diff] [blame] | 160 | type: boolean |
161 | description: "Install docker on the target if true" | ||||
162 | default: "true" | ||||
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 163 | TEST_TEMPEST_PATTERN: |
Vasyl Saienko | 68f2e4b | 2017-07-20 12:40:24 +0300 | [diff] [blame] | 164 | type: string |
165 | description: "Run tests matched to pattern only" | ||||
166 | default: "" | ||||
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 167 |