blob: 8dfc70ec34ffc2c76eeb3614ebe6af220b2fcdcc [file] [log] [blame]
Vladislav Naumovdd7bd922017-07-19 16:54:50 +03001parameters:
2 jenkins:
3 client:
4 job_template:
Jakub Josef79b84d52017-07-19 16:49:24 +02005 deploy_heat_test_cicd:
Vladislav Naumovdd7bd922017-07-19 16:54:50 +03006 name: deploy-heat-{{name}}
7 jobs:
Jakub Josef686ee5d2017-07-19 17:19:16 +02008 - name: test-cicd-lab-dev
Vladislav Naumovdd7bd922017-07-19 16:54:50 +03009 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 Naumov3d3deeb2017-07-20 12:33:07 +030016 url: "${_param:jenkins_gerrit_url}/oss/jenkins/pipelines"
Vladislav Naumovdd7bd922017-07-19 16:54:50 +030017 credentials: "gerrit"
Vladislav Naumov3d3deeb2017-07-20 12:33:07 +030018 script: test-func-devops-portal-pipeline.groovy
Vladislav Naumovdd7bd922017-07-19 16:54:50 +030019 param:
20 # heat
Vladislav Naumov5cb31ca2017-08-10 17:36:51 +030021 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 Naumovdd7bd922017-07-19 16:54:50 +030033 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 Naumovdd7bd922017-07-19 16:54:50 +030057
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)"