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: |
| 3 | jenkins_deploy_lab_mk_jobs: [] |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 4 | jenkins: |
| 5 | client: |
| 6 | job_template: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 7 | deploy_heat_template: |
| 8 | name: deploy-{{stack_type}}-{{lab}} |
| 9 | jobs: ${_param:jenkins_deploy_lab_mk_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 |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 16 | display_name: "Deploy - {{lab}} {{stack_type}} lab" |
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: |
| 24 | spec: "{{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' |
| 30 | |
| 31 | # deployments |
| 32 | STACK_NAME: |
| 33 | type: string |
| 34 | description: Heat stack name. Will be generated if missing. |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 35 | STACK_TYPE: |
| 36 | type: string |
| 37 | default: "{{stack_type}}" |
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 38 | STACK_INSTALL: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 39 | type: string |
| 40 | default: "{{install}}" |
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 41 | STACK_TEST: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 42 | type: string |
Victor Ryzhenkin | 6670f05 | 2017-03-22 14:59:18 +0400 | [diff] [blame] | 43 | default: "{{test}}" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame^] | 44 | STACK_REUSE: |
| 45 | type: boolean |
| 46 | default: 'false' |
| 47 | STACK_DELETE: |
| 48 | type: boolean |
| 49 | default: 'true' |
| 50 | description: "Don't enable it if you need to use the lab after" |
| 51 | STACK_COMPUTE_COUNT: |
| 52 | type: string |
| 53 | default: '2' |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 54 | |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame^] | 55 | STACK_TEMPLATE: |
| 56 | type: string |
| 57 | default: "{{lab}}" |
Jakub Josef | 43f3443 | 2017-05-23 19:16:49 +0200 | [diff] [blame] | 58 | STACK_TEMPLATE_URL: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 59 | type: string |
Tomáš Kukrál | cf72c8d | 2017-04-19 21:50:05 +0200 | [diff] [blame] | 60 | default: "${_param:jenkins_gerrit_url}/mk/heat-templates" |
Jakub Josef | 43f3443 | 2017-05-23 19:16:49 +0200 | [diff] [blame] | 61 | STACK_TEMPLATE_CREDENTIALS: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 62 | type: string |
| 63 | default: "gerrit" |
Jakub Josef | 43f3443 | 2017-05-23 19:16:49 +0200 | [diff] [blame] | 64 | STACK_TEMPLATE_BRANCH: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 65 | type: string |
Tomáš Kukrál | 394cdbf | 2017-03-29 16:35:37 +0200 | [diff] [blame] | 66 | default: "master" |
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 67 | STACK_CLEANUP_JOB: |
| 68 | type: string |
Jakub Josef | 1c27123 | 2017-06-05 11:39:34 +0200 | [diff] [blame] | 69 | default: 'deploy-stack-cleanup' |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 70 | |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame^] | 71 | # salt |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 72 | SALT_MASTER_CREDENTIALS: |
| 73 | type: string |
| 74 | default: "salt-qa-credentials" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 75 | SALT_MASTER_URL: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 76 | type: string |
Filip Pytloun | aa45601 | 2017-03-24 12:49:25 +0100 | [diff] [blame] | 77 | default: "" |
Vasyl Saienko | bfe884f | 2017-07-27 14:50:23 +0300 | [diff] [blame] | 78 | SALT_OVERRIDES: |
Vasyl Saienko | 47f2347 | 2017-07-27 14:19:00 +0300 | [diff] [blame] | 79 | type: text |
| 80 | default: "" |
| 81 | description: "YAML with overrides for Salt deployment" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 82 | |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame^] | 83 | # aws api |
| 84 | AWS_STACK_REGION: |
| 85 | type: string |
| 86 | default: "us-west-2" |
| 87 | AWS_API_CREDENTIALS: |
| 88 | type: string |
| 89 | default: "aws-credentials" |
| 90 | AWS_SSH_KEY: |
| 91 | type: string |
| 92 | default: "jenkins-mk" |
| 93 | |
| 94 | # heat |
| 95 | HEAT_STACK_ENVIRONMENT: |
| 96 | type: string |
| 97 | default: "devcloud" |
| 98 | HEAT_STACK_ZONE: |
| 99 | type: string |
| 100 | default: "mcp-mk" |
| 101 | HEAT_STACK_PUBLIC_NET: |
| 102 | type: string |
| 103 | default: "public" |
| 104 | |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 105 | # openstack api |
| 106 | OPENSTACK_API_URL: |
| 107 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 108 | default: "https://cloud-cz.bud.mirantis.net:5000" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 109 | OPENSTACK_API_CREDENTIALS: |
| 110 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 111 | default: "openstack-devcloud-credentials" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 112 | OPENSTACK_API_PROJECT: |
| 113 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 114 | default: "mcp-mk" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame^] | 115 | OPENSTACK_API_PROJECT_DOMAIN: |
| 116 | type: string |
| 117 | default: "" |
| 118 | OPENSTACK_API_PROJECT_ID: |
| 119 | type: string |
| 120 | default: "" |
| 121 | OPENSTACK_API_USER_DOMAIN: |
| 122 | type: string |
| 123 | default: "default" |
| 124 | |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 125 | OPENSTACK_API_CLIENT: |
| 126 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 127 | default: "" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 128 | OPENSTACK_API_VERSION: |
| 129 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 130 | default: "3" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 131 | |
| 132 | # k8s setttings |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 133 | TEST_K8S_API_SERVER: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 134 | type: string |
| 135 | default: "http://127.0.0.1:8080" |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 136 | TEST_K8S_CONFORMANCE_IMAGE: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 137 | type: string |
| 138 | default: "docker-dev-virtual.docker.mirantis.net/mirantis/kubernetes/k8s-conformance:v1.5.1-3_1482332392819" |
| 139 | |
| 140 | # Tempest settings |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 141 | TEST_TEMPEST_IMAGE: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 142 | type: string |
Vasyl Saienko | 68f2e4b | 2017-07-20 12:40:24 +0300 | [diff] [blame] | 143 | description: "Tempest image link" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 144 | default: "sandbox-docker-prod-local.docker.mirantis.net/mirantis/rally_tempest:0.1" |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 145 | TEST_TEMPEST_TARGET: |
Vasyl Saienko | 68f2e4b | 2017-07-20 12:40:24 +0300 | [diff] [blame] | 146 | type: string |
| 147 | description: "Node to run tests" |
| 148 | default: "" |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 149 | TEST_DOCKER_INSTALL: |
Vasyl Saienko | 68f2e4b | 2017-07-20 12:40:24 +0300 | [diff] [blame] | 150 | type: boolean |
| 151 | description: "Install docker on the target if true" |
| 152 | default: "true" |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 153 | TEST_TEMPEST_PATTERN: |
Vasyl Saienko | 68f2e4b | 2017-07-20 12:40:24 +0300 | [diff] [blame] | 154 | type: string |
| 155 | description: "Run tests matched to pattern only" |
| 156 | default: "" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 157 | |