blob: ab84659ccc817e4e39166949fd388f331c0a712f [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
21 HEAT_TEMPLATE_URL:
22 type: string
23 default: "${_param:jenkins_gerrit_url}/mk/heat-templates"
24 HEAT_TEMPLATE_CREDENTIALS:
25 type: string
26 default: "gerrit"
27 HEAT_TEMPLATE_BRANCH:
28 type: string
29 default: "master"
30 HEAT_STACK_NAME:
31 type: string
32 description: Heat stack name. Will be generated if missing.
33 HEAT_STACK_TEMPLATE:
34 type: string
35 default: "{{lab}}"
36 HEAT_STACK_ENVIRONMENT:
37 type: string
38 default: "devcloud"
39 HEAT_STACK_ZONE:
40 type: string
41 default: "mcp-oss"
42 HEAT_STACK_PUBLIC_NET:
43 type: string
44 default: "public"
45 HEAT_STACK_DELETE:
46 type: boolean
47 default: 'true'
48 description: "Delete heat stack at the end of job"
49 HEAT_STACK_REUSE:
50 type: boolean
51 default: 'false'
52 description: "Reuse existing stack and only orchestrate deployment"
53
54 # salt master
55 SALT_MASTER_CREDENTIALS:
56 type: string
57 default: "salt-qa-credentials"
58 SSH_PUBLIC_KEY:
59 type: string
60 description: "User's public SSH key to be able to login when stack is deployed"
61
62 # openstack api
63 OPENSTACK_API_URL:
64 type: string
65 default: "https://cloud-cz.bud.mirantis.net:5000"
66 OPENSTACK_API_CREDENTIALS:
67 type: string
68 default: "openstack-devcloud-credentials"
69 OPENSTACK_API_PROJECT:
70 type: string
71 default: "mcp-oss"
72 OPENSTACK_API_CLIENT:
73 type: string
74 default: ""
75 OPENSTACK_API_VERSION:
76 type: string
77 default: "3"
78 OPENSTACK_API_PROJECT_DOMAIN:
79 type: string
80 default: "default"
81 OPENSTACK_API_USER_DOMAIN_ID:
82 type: string
83 default: "default"
84 OPENSTACK_API_PROJECT_ID:
85 type: string
86 default: ""
87 OPENSTACK_API_USER_DOMAIN:
88 type: string
89 default: "default"
90
91 # devops-portal-tests
92 DEVOPS_PORTAL_TESTS_URL:
93 type: string
94 default: "${_param:jenkins_gerrit_url}/oss/devops-portal-tests"
95 DEVOPS_PORTAL_TESTS_CREDENTIALS:
96 type: string
97 default: "gerrit"
98 DEVOPS_PORTAL_TESTS_BRANCH:
99 type: string
100 default: "master"
101 DEVOPS_PORTAL_TESTS_RUN_LOCAL:
102 type: boolean
103 default: 'true'
104 description: "Run on swarm master node"
105 DEVOPS_PORTAL_TESTS_CONFIG:
106 type: string
107 description: "Path to the service-configuration file in json-format"
108 DEVOPS_PORTAL_TESTS_MARK:
109 type: string
110 default: "ALL"
111 description: "Mark specific tests to run: healthcheck, functional (default = all)"