Vladislav Naumov | dd7bd92 | 2017-07-19 16:54:50 +0300 | [diff] [blame] | 1 | parameters: |
| 2 | jenkins: |
| 3 | client: |
| 4 | job_template: |
Jakub Josef | 79b84d5 | 2017-07-19 16:49:24 +0200 | [diff] [blame] | 5 | deploy_heat_test_cicd: |
Vladislav Naumov | dd7bd92 | 2017-07-19 16:54:50 +0300 | [diff] [blame] | 6 | name: deploy-heat-{{name}} |
| 7 | jobs: |
Jakub Josef | 686ee5d | 2017-07-19 17:19:16 +0200 | [diff] [blame] | 8 | - name: test-cicd-lab-dev |
Vladislav Naumov | dd7bd92 | 2017-07-19 16:54:50 +0300 | [diff] [blame] | 9 | lab: cicd_lab_dev |
| 10 | template: |
| 11 | type: workflow-scm |
| 12 | concurrent: true |
| 13 | display_name: "Deploy {{name}} heat stack" |
| 14 | scm: |
| 15 | type: git |
Vladislav Naumov | 3d3deeb | 2017-07-20 12:33:07 +0300 | [diff] [blame] | 16 | url: "${_param:jenkins_gerrit_url}/oss/jenkins/pipelines" |
Vladislav Naumov | dd7bd92 | 2017-07-19 16:54:50 +0300 | [diff] [blame] | 17 | credentials: "gerrit" |
Vladislav Naumov | 3d3deeb | 2017-07-20 12:33:07 +0300 | [diff] [blame] | 18 | script: test-func-devops-portal-pipeline.groovy |
Vladislav Naumov | dd7bd92 | 2017-07-19 16:54:50 +0300 | [diff] [blame] | 19 | param: |
| 20 | # heat |
Vladislav Naumov | 5cb31ca | 2017-08-10 17:36:51 +0300 | [diff] [blame] | 21 | HEAT_STACK_DELETE: |
| 22 | type: boolean |
| 23 | default: 'true' |
| 24 | description: "Delete heat stack at the end of job" |
| 25 | HEAT_STACK_REUSE: |
| 26 | type: boolean |
| 27 | default: 'false' |
| 28 | description: "Reuse existing stack and only orchestrate deployment" |
| 29 | HEAT_STACK_KEEP_INTACT: |
| 30 | type: boolean |
| 31 | default: 'false' |
| 32 | description: "Save current deployment status without re-orchestrating" |
Vladislav Naumov | dd7bd92 | 2017-07-19 16:54:50 +0300 | [diff] [blame] | 33 | HEAT_TEMPLATE_URL: |
| 34 | type: string |
| 35 | default: "${_param:jenkins_gerrit_url}/mk/heat-templates" |
| 36 | HEAT_TEMPLATE_CREDENTIALS: |
| 37 | type: string |
| 38 | default: "gerrit" |
| 39 | HEAT_TEMPLATE_BRANCH: |
| 40 | type: string |
| 41 | default: "master" |
| 42 | HEAT_STACK_NAME: |
| 43 | type: string |
| 44 | description: Heat stack name. Will be generated if missing. |
| 45 | HEAT_STACK_TEMPLATE: |
| 46 | type: string |
| 47 | default: "{{lab}}" |
| 48 | HEAT_STACK_ENVIRONMENT: |
| 49 | type: string |
| 50 | default: "devcloud" |
| 51 | HEAT_STACK_ZONE: |
| 52 | type: string |
| 53 | default: "mcp-oss" |
| 54 | HEAT_STACK_PUBLIC_NET: |
| 55 | type: string |
| 56 | default: "public" |
Vladislav Naumov | dd7bd92 | 2017-07-19 16:54:50 +0300 | [diff] [blame] | 57 | |
| 58 | # salt master |
| 59 | SALT_MASTER_CREDENTIALS: |
| 60 | type: string |
| 61 | default: "salt-qa-credentials" |
| 62 | SSH_PUBLIC_KEY: |
| 63 | type: string |
| 64 | description: "User's public SSH key to be able to login when stack is deployed" |
| 65 | |
| 66 | # openstack api |
| 67 | OPENSTACK_API_URL: |
| 68 | type: string |
| 69 | default: "https://cloud-cz.bud.mirantis.net:5000" |
| 70 | OPENSTACK_API_CREDENTIALS: |
| 71 | type: string |
| 72 | default: "openstack-devcloud-credentials" |
| 73 | OPENSTACK_API_PROJECT: |
| 74 | type: string |
| 75 | default: "mcp-oss" |
| 76 | OPENSTACK_API_CLIENT: |
| 77 | type: string |
| 78 | default: "" |
| 79 | OPENSTACK_API_VERSION: |
| 80 | type: string |
| 81 | default: "3" |
| 82 | OPENSTACK_API_PROJECT_DOMAIN: |
| 83 | type: string |
| 84 | default: "default" |
| 85 | OPENSTACK_API_USER_DOMAIN_ID: |
| 86 | type: string |
| 87 | default: "default" |
| 88 | OPENSTACK_API_PROJECT_ID: |
| 89 | type: string |
| 90 | default: "" |
| 91 | OPENSTACK_API_USER_DOMAIN: |
| 92 | type: string |
| 93 | default: "default" |
| 94 | |
| 95 | # devops-portal-tests |
| 96 | DEVOPS_PORTAL_TESTS_URL: |
| 97 | type: string |
| 98 | default: "${_param:jenkins_gerrit_url}/oss/devops-portal-tests" |
| 99 | DEVOPS_PORTAL_TESTS_CREDENTIALS: |
| 100 | type: string |
| 101 | default: "gerrit" |
| 102 | DEVOPS_PORTAL_TESTS_BRANCH: |
| 103 | type: string |
| 104 | default: "master" |
| 105 | DEVOPS_PORTAL_TESTS_RUN_LOCAL: |
| 106 | type: boolean |
| 107 | default: 'true' |
| 108 | description: "Run on swarm master node" |
| 109 | DEVOPS_PORTAL_TESTS_CONFIG: |
| 110 | type: string |
| 111 | description: "Path to the service-configuration file in json-format" |
| 112 | DEVOPS_PORTAL_TESTS_MARK: |
| 113 | type: string |
| 114 | default: "ALL" |
| 115 | description: "Mark specific tests to run: healthcheck, functional (default = all)" |