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