blob: e480d46dc8c8fe3f0bdf94a3a50b4d58f823b341 [file] [log] [blame]
Ann Taradayb69a9612018-04-17 00:26:17 +04001parameters:
2 jenkins:
3 client:
4 plugin:
5 gerrit-trigger: {}
6 job:
7 test_metaswitch_vnf:
8 type: workflow-scm
Anastasia Kuznetsovae21b35f2018-07-10 16:41:31 +04009 name: test_metaswitch_vnf_ee
10 display_name: "Onboarding tests for Metaswitch vSBC VNF against CFY Enterprise Edition"
Ann Taradayb69a9612018-04-17 00:26:17 +040011 discard:
12 build:
13 keep_num: 20
14 scm:
15 type: git
16 url: "${_param:jenkins_gerrit_url}/vnf-onboarding/pipelines"
17 credentials: "${_param:vnf_gerrit_credentials}"
18 script: test_vnf_onboarding.groovy
19 trigger:
20 gerrit:
21 project:
22 "vnf-onboarding/metaswitch-vsbc":
23 branches:
24 - compare_type: "ANT"
25 name: "**"
26 event:
27 patchset:
28 - created:
29 excludeDrafts: false
30 excludeTrivialRebase: false
31 excludeNoCodeChange: false
32 change:
33 - merged
34 comment:
35 - addedContains:
36 commentAddedCommentContains: '(retest|recheck|reverify)'
37 param:
38 DEFAULT_GIT_URL:
39 type: string
40 description: "Run against alternate system reclass"
41 default: "${_param:jenkins_gerrit_url}/vnf-onboarding/metaswitch-vsbc"
42 DEFAULT_GIT_REF:
43 type: string
44 default: master
45 OPENSTACK_API_URL:
46 type: string
47 default: ${_param:vnf_openstack_api_url}"
48 OPENSTACK_API_CREDENTIALS:
49 type: string
50 default: "${_param:vnf_openstack_api_credentials}"
51 OPENSTACK_API_TENANT:
52 type: string
Anastasia Kuznetsovae21b35f2018-07-10 16:41:31 +040053 default: "test-metaswitch"
Ann Taradayb69a9612018-04-17 00:26:17 +040054 GERRIT_CREDENTIALS:
55 type: string
56 default: "${_param:vnf_gerrit_credentials}"
57 ELASTIC_URL:
58 type: string
59 default: "${_param:vnf_elastic_url}"
60 DEBUG_OPTIONS:
61 type: string
62 default: "skip_inspection=1"
63 description: "Example: skip_all=1 skip_deploy=1 skip_inspection=1"
64 NFV_PLATFORM_REPO:
65 type: string
66 description: "Take Cloudify blueprints, Dockerfile and CI scripts from this repo"
67 default: "ssh://mcp-gerrit@gerrit.mcp.mirantis.net:29418/vnf-onboarding/nfv-platform"
68 NFV_PLATFORM_REPO_BRANCH:
69 type: string
70 default: "master"
71 NFV_PLATFORM_REPO_CREDENTIALS:
72 type: string
73 default: "${_param:vnf_gerrit_credentials}"
74 CONTRAIL_ENABLED:
75 type: boolean
76 default: false
77 CONTRAIL_API_URL:
78 type: string
79 default: "${_param:contrail_api_url}"
80 SETUP_OWN_CLOUDIFY:
81 type: boolean
Anastasia Kuznetsovae21b35f2018-07-10 16:41:31 +040082 description: "Use temporary private Cloudify instance. Metaswitch vSBC can work only with its own CFY instance"
83 default: true
Ann Taradayb69a9612018-04-17 00:26:17 +040084 CLOUDIFY_MANAGER_IP:
85 type: string
Anastasia Kuznetsovae21b35f2018-07-10 16:41:31 +040086 description: "IP address of external Cloudify. \"auto\" refers to address of deploy_cloudify_enterprise job Cloudify instance"
Ann Taradayb69a9612018-04-17 00:26:17 +040087 default: "auto"
Ann Kamyshnikova85798ea2018-05-04 17:01:39 +040088 CLOUDIFY_MANAGER_OPTIONS:
89 type: string
90 description: "Parameters for cloudify manager VM. Can be skipped if cloudify predeployed."
91 default: "CFM_IMAGE=cloudify-manager-4.3.1ga CFM_FLAVOR=cfy.mngr CFM_DISK_SIZE=80 CFM_SUBNET_CIDR=10.10.1.1/24 CFM_SUBNET_DNS=172.19.0.6 EXTERNAL_NET=public "
Ann Taradayb69a9612018-04-17 00:26:17 +040092 CFM_SSH_KEY_ID:
93 type: string
94 description: "Credentials ID of ssh key for connection to Cloudify"
95 default: "${_param:vnf_openstack_ssh_key_credentials}"
Ann Kamyshnikova85798ea2018-05-04 17:01:39 +040096 CLOUDIFY_AGENT_OPTIONS:
Ann Taradayb69a9612018-04-17 00:26:17 +040097 type: string
Ann Kamyshnikova85798ea2018-05-04 17:01:39 +040098 description: "Parameters for cloudify agent VMs."
99 default: "CFY_AGENT_NET=cfm-net-shared CFY_AGENT_FLAVOR=cfy.agent CFY_AGENT_BACKEND_FLAVOR=backend.metaswitch CFY_AGENT_IMAGE=agent_vm CFY_AGENT_BASE_IMAGE=base_agent_vm CFY_AGENT_BACKEND_IMAGE=base_backend_vm"
Anastasia Kuznetsovae21b35f2018-07-10 16:41:31 +0400100 CLOUDIFY_MANAGER_VERSION:
101 type: choice
102 choices:
103 - enterprise
104 - community
105 default: "enterprise"
106 description: "CFY edition version, make sure that it is consistent with CFY Manager image"
Ann Taradayb69a9612018-04-17 00:26:17 +0400107 VNF_ARTIFACTORY_URL:
108 type: string
109 default: "${_param:vnf_artifactory_url}"
110 VNF_ARTIFACTORY_PLUGINS_DIR:
111 type: string
112 default: "${_param:vnf_artifactory_url}/cloudify/plugins/"
113 VNF_DOCKER_REGISTRY_PATH:
114 type: string
115 default: "${_param:vnf_docker_registry_path}"
116 VNF_DOCKER_CLI_TAG:
117 type: string
118 default: "latest"
119 VNF_DOCKER_SCRUN_TAG:
120 type: string
121 description: "Not in use for this job"
122 default: "latest"
123 VNF_PLUGINS:
124 type: string
125 description: "Plugins to fetch from artifactory and install during build package step"
Anastasia Kuznetsovae21b35f2018-07-10 16:41:31 +0400126 default: "vnf_onboarding_tools-0.2-py27-none-linux_x86_64_CentOS_Core, cloudify_diamond_plugin-1.3.8-py27-none-linux_x86_64-centos-Core, metaswitch_deployment_plugin-2.1.0-py27-none-linux_x86_64-centos-Core"
Ann Taradayb69a9612018-04-17 00:26:17 +0400127 VNF_OPTIONS:
128 type: string
Anastasia Kuznetsovae21b35f2018-07-10 16:41:31 +0400129 default: "METASWITCH_VSBS_BPS=mirantis-blueprint-insecure-withoutsas-newlicense.tar DCM_IMAGE_NAME=MSwVA-DCM-V3.3 MDM_IMAGE_NAME=MSwVA-MDM-centos PERIMETA_IMAGE_NAME=MSwVA-Perimeta-V4.3.50_SU42_P252"
Ann Taradayb69a9612018-04-17 00:26:17 +0400130 VNF_DOCKER_CLI_PLATFORM:
131 type: string
132 default: "ubuntu"
Anastasia Kuznetsovae21b35f2018-07-10 16:41:31 +0400133 VNF_DEPLOYMENT_TIMEOUT:
Ann Taradayb69a9612018-04-17 00:26:17 +0400134 type: string
135 description: "Set up timeout for cloudify deployment (depends on each VNF specific and network throughput)."
136 default: 7200
137
138
139 platform_validation_pipeline:
140 type: workflow-scm
141 name: platform_validation_pipeline
142 display_name: "Validate OpenStack platform before deploy of VNF"
143 discard:
144 build:
145 keep_num: 20
146 scm:
147 type: git
148 url: "${_param:jenkins_gerrit_url}/vnf-onboarding/pipelines"
149 credentials: "${_param:vnf_gerrit_credentials}"
150 script: test_platform.groovy
151 param:
152 OPENSTACK_API_CREDENTIALS:
153 type: string
154 description: "OpenStack admin user credentials for running tests"
155 default: "${_param:vnf_openstack_api_credentials}"
156 OS_PROJECT_NAME:
157 type: string
158 description: "OpenStack project name for running tests"
159 default: "platform-test"
160 OS_AUTH_URL:
161 type: string
162 description: "OpenStack auth url"
163 default: "http://${_param:openstack_control_address}:35357/v3"
164 IMAGE_ID:
165 type: string
166 description: "Specify image id to execute tests against custom images"
167 default: ""
168 FLAVOR_ID:
169 type: string
170 description: "Specify flavor id to execute tests against custom images"
171 default: ""
172 MIN_COMPUTE_NODES:
173 type: string
174 description: "Specify number of compute nodes of environment"
175 default: '2'
176 FIXED_SHARED_NETWORK_NAME:
177 type: string
178 description: "Shared network that will be used in tests."
179 default: "test-shared"
180 COMPUTE_NODE_HOST_NAME:
181 type: string
182 description: "To run CPU pinning/NUMA topology tests against specific node"
183 default: ''
184 COMPUTE_AVAILABILITY_ZONE:
185 type: string
186 description: "To run CPU pinning/NUMA topology tests against specific node"
187 default: 'nova'
188 COMPUTE_NUMA_NODE_COUNT:
189 type: string
190 description: "Number of NUMA node for NUMA topology testing."
191 default: '2'
192 IMAGE_SSH_USER:
193 type: string
194 description: "Specify user name to login in test OpenStack VMs"
195 default: "cirros"
196 VNF_PLATFORM_TESTS_REPO:
197 type: string
198 description: "Repository with testing framework"
199 default: "${_param:jenkins_gerrit_url}vnf-onboarding/platform-tests"
200 VNF_PLATFORM_TESTS_BRANCH:
201 type: string
202 default: "master"
203 VNF_PLATFORM_TESTS_REPO_CREDENTIALS:
204 type: string
205 default: "${_param:vnf_gerrit_credentials}"
206 TEMPEST_IMAGE_DOCKER_REGISTRY_PATH:
207 type: string
208 description: "Path for docker image with testing tool. If empty, image will be build using VNF_PLATFORM_TESTS_* parameters."
209 default: ${_param:vnf_docker_registry_path}
210 TEMPEST_IMAGE_NAME:
211 type: string
212 description: "Name of docker image with testing tool"
213 default: "platform_tests:latest"
214 ELASTIC_URL:
215 type: string
216 description: "URL to elastic search API"
217 default: "${_param:vnf_elastic_url}"
218 ELASTIC_TRANSFER_REPO:
219 type: string
220 description: "Repository with scripts for transfering test results to elastic search"
221 default: "${_param:jenkins_gerrit_url}/vnf-onboarding/nfv-platform"
222 ELASTIC_TRANSFER_REPO_CREDENTIALS:
223 type: string
224 default: "${_param:vnf_gerrit_credentials}"
225 ELASTIC_TRANSFER_REPO_BRANCH:
226 type: string
227 default: "master"
228 DOCKER_TEMPEST_PARAMS:
229 type: string
230 description: "Pass custom parameters for tempest container"
231 default: ""