blob: 8720fb17ce00cfc858ec1da00906ddc2e3b6a4d1 [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
9 name: test_metaswitch_vnf
10 display_name: "Onboarding tests for Metaswitch vSBC VNF"
11 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
53 default: "test"
54 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
82 description: "Use temporary private Cloudify instance"
83 default: false
84 CLOUDIFY_MANAGER_IP:
85 type: string
86 description: "IP address of extrenal Cloudify. \"auto\" refers to address of deploy_cloudify job Cloudify instance"
87 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"
Ann Taradayb69a9612018-04-17 00:26:17 +0400100 VNF_ARTIFACTORY_URL:
101 type: string
102 default: "${_param:vnf_artifactory_url}"
103 VNF_ARTIFACTORY_PLUGINS_DIR:
104 type: string
105 default: "${_param:vnf_artifactory_url}/cloudify/plugins/"
106 VNF_DOCKER_REGISTRY_PATH:
107 type: string
108 default: "${_param:vnf_docker_registry_path}"
109 VNF_DOCKER_CLI_TAG:
110 type: string
111 default: "latest"
112 VNF_DOCKER_SCRUN_TAG:
113 type: string
114 description: "Not in use for this job"
115 default: "latest"
116 VNF_PLUGINS:
117 type: string
118 description: "Plugins to fetch from artifactory and install during build package step"
119 default: "vnf_onboarding_tools-0.1-py27-none-linux_x86_64_Ubuntu_xenial"
120 VNF_OPTIONS:
121 type: string
122 default: ""
123 VNF_DOCKER_CLI_PLATFORM:
124 type: string
125 default: "ubuntu"
126 CLOUDIFY_DEPLOYMENT_TIMEOUT:
127 type: string
128 description: "Set up timeout for cloudify deployment (depends on each VNF specific and network throughput)."
129 default: 7200
130
131
132 platform_validation_pipeline:
133 type: workflow-scm
134 name: platform_validation_pipeline
135 display_name: "Validate OpenStack platform before deploy of VNF"
136 discard:
137 build:
138 keep_num: 20
139 scm:
140 type: git
141 url: "${_param:jenkins_gerrit_url}/vnf-onboarding/pipelines"
142 credentials: "${_param:vnf_gerrit_credentials}"
143 script: test_platform.groovy
144 param:
145 OPENSTACK_API_CREDENTIALS:
146 type: string
147 description: "OpenStack admin user credentials for running tests"
148 default: "${_param:vnf_openstack_api_credentials}"
149 OS_PROJECT_NAME:
150 type: string
151 description: "OpenStack project name for running tests"
152 default: "platform-test"
153 OS_AUTH_URL:
154 type: string
155 description: "OpenStack auth url"
156 default: "http://${_param:openstack_control_address}:35357/v3"
157 IMAGE_ID:
158 type: string
159 description: "Specify image id to execute tests against custom images"
160 default: ""
161 FLAVOR_ID:
162 type: string
163 description: "Specify flavor id to execute tests against custom images"
164 default: ""
165 MIN_COMPUTE_NODES:
166 type: string
167 description: "Specify number of compute nodes of environment"
168 default: '2'
169 FIXED_SHARED_NETWORK_NAME:
170 type: string
171 description: "Shared network that will be used in tests."
172 default: "test-shared"
173 COMPUTE_NODE_HOST_NAME:
174 type: string
175 description: "To run CPU pinning/NUMA topology tests against specific node"
176 default: ''
177 COMPUTE_AVAILABILITY_ZONE:
178 type: string
179 description: "To run CPU pinning/NUMA topology tests against specific node"
180 default: 'nova'
181 COMPUTE_NUMA_NODE_COUNT:
182 type: string
183 description: "Number of NUMA node for NUMA topology testing."
184 default: '2'
185 IMAGE_SSH_USER:
186 type: string
187 description: "Specify user name to login in test OpenStack VMs"
188 default: "cirros"
189 VNF_PLATFORM_TESTS_REPO:
190 type: string
191 description: "Repository with testing framework"
192 default: "${_param:jenkins_gerrit_url}vnf-onboarding/platform-tests"
193 VNF_PLATFORM_TESTS_BRANCH:
194 type: string
195 default: "master"
196 VNF_PLATFORM_TESTS_REPO_CREDENTIALS:
197 type: string
198 default: "${_param:vnf_gerrit_credentials}"
199 TEMPEST_IMAGE_DOCKER_REGISTRY_PATH:
200 type: string
201 description: "Path for docker image with testing tool. If empty, image will be build using VNF_PLATFORM_TESTS_* parameters."
202 default: ${_param:vnf_docker_registry_path}
203 TEMPEST_IMAGE_NAME:
204 type: string
205 description: "Name of docker image with testing tool"
206 default: "platform_tests:latest"
207 ELASTIC_URL:
208 type: string
209 description: "URL to elastic search API"
210 default: "${_param:vnf_elastic_url}"
211 ELASTIC_TRANSFER_REPO:
212 type: string
213 description: "Repository with scripts for transfering test results to elastic search"
214 default: "${_param:jenkins_gerrit_url}/vnf-onboarding/nfv-platform"
215 ELASTIC_TRANSFER_REPO_CREDENTIALS:
216 type: string
217 default: "${_param:vnf_gerrit_credentials}"
218 ELASTIC_TRANSFER_REPO_BRANCH:
219 type: string
220 default: "master"
221 DOCKER_TEMPEST_PARAMS:
222 type: string
223 description: "Pass custom parameters for tempest container"
224 default: ""