blob: b2d2cf94071ebcfa4b977691bfca5a2c66d90f75 [file] [log] [blame]
Joey Armstrong518f3572024-02-11 07:56:25 -05001// Copyright 2017-2024 Open Networking Foundation (ONF) and the ONF Contributors
Kailash66c389c2019-04-24 14:56:11 -07002//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// chart-api-test-helm.groovy
16// Checks functionality of the helm-chart, without overriding the version/tag used
17
Matteo Scandolo5c6a4802019-05-14 10:44:21 -070018def serviceName = "${gerritProject}"
Carmelo Cascone2c57fc32020-03-24 17:41:32 -070019def doTest = true
Matteo Scandolo5c6a4802019-05-14 10:44:21 -070020
Kailash66c389c2019-04-24 14:56:11 -070021pipeline {
22
23 /* no label, executor is determined by JJB */
24 agent {
Zack Williamsb3292082019-10-11 17:15:18 -070025 label "${params.buildNode}"
Kailash66c389c2019-04-24 14:56:11 -070026 }
27
28 stages {
29
30 stage('repo') {
31 steps {
32 checkout(changelog: false, \
33 poll: false,
34 scm: [$class: 'RepoScm', \
35 manifestRepositoryUrl: "${params.manifestUrl}", \
36 manifestBranch: "${params.manifestBranch}", \
37 currentBranch: true, \
38 destinationDir: 'cord', \
39 forceSync: true,
40 resetFirst: true, \
41 quiet: true, \
42 jobs: 4, \
43 showAllChanges: true] \
44 )
45 }
46 }
47
Kailash66c389c2019-04-24 14:56:11 -070048 stage('minikube') {
49 steps {
50 /* see https://github.com/kubernetes/minikube/#linux-continuous-integration-without-vm-support */
51 sh '''
52 export MINIKUBE_WANTUPDATENOTIFICATION=false
53 export MINIKUBE_WANTREPORTERRORPROMPT=false
54 export CHANGE_MINIKUBE_NONE_USER=true
55 export MINIKUBE_HOME=$HOME
56 mkdir -p $HOME/.kube || true
57 touch $HOME/.kube/config
58 export KUBECONFIG=$HOME/.kube/config
59 sudo -E /usr/bin/minikube start --vm-driver=none
60 '''
61 script {
62 timeout(3) {
63 waitUntil {
64 sleep 5
Zack Williamsd7af2072020-03-06 13:11:26 -070065 def kc_ret = sh script: "kubectl get pods", returnStatus: true
Kailash66c389c2019-04-24 14:56:11 -070066 return (kc_ret == 0);
67 }
68 }
69 }
70 }
71 }
72
73 stage('helm') {
74 steps {
75 sh '''
76 helm init
77 sleep 60
78 helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
Carmelo Cascone319b34c2020-01-14 16:48:07 -080079 helm repo add cord https://charts.opencord.org
Kailash66c389c2019-04-24 14:56:11 -070080 '''
81 }
82 }
83
Carmelo Cascone43086e12020-03-23 19:29:04 -070084 stage('Verify xos-core version requirements') {
85 steps {
86 script {
87 if (serviceName == "olt-service") {
88 serviceName = "volt"
89 }
Carmelo Cascone43086e12020-03-23 19:29:04 -070090 else if (serviceName == "kubernetes-service") {
91 serviceName = "kubernetes"
92 }
Carmelo Cascone2c57fc32020-03-24 17:41:32 -070093 def result = sh returnStdout: true, script: """
94 #!/usr/bin/env bash
95 set -eu -o pipefail
96
97 # Obtain git tag of the service corresponding to the the docker image
98 # used in the latest released version of the helm chart (i.e., HEAD
99 # of cord/helm-charts master branch, which should be already checked
100 # out by repo).
101 pushd cord/helm-charts
102 export RELEASED_GIT_TAG=\$(echo -e "import yaml\\nwith open('xos-services/${serviceName}/Chart.yaml', 'r') as f: print yaml.safe_load(f)['appVersion']" | python)
103 popd
104
105 # Obtain the xos-core version requirement from the config.yaml of the
106 # released service.
107 pushd cord
108 PROJECT_PATH=\$(xmllint --xpath "string(//project[@name=\\\"${gerritProject}\\\"]/@path)" .repo/manifests/default.xml)
109 pushd \${PROJECT_PATH}
110 git fetch --all --tags
111 git checkout tags/\${RELEASED_GIT_TAG} -b foobar
112 export RELEASED_CORE_VER_REQ=\$(echo -e "import yaml\\nwith open('xos/synchronizer/config.yaml', 'r') as f: print yaml.safe_load(f)['core_version']" | python)
113 popd
114 popd
115
116 # Do the same for the patchset we want to verify.
117 pushd cord
118 repo download "\$PROJECT_PATH" "${gerritChangeNumber}/${gerritPatchsetNumber}"
119 pushd \${PROJECT_PATH}
120 export PATCHSET_CORE_VER_REQ=\$(echo -e "import yaml\\nwith open('xos/synchronizer/config.yaml', 'r') as f: print yaml.safe_load(f)['core_version']" | python)
121 popd
122 popd
123
124 # We need to produce at least one log file so the archiveArtifacts
125 # step later won't complain.
126 echo "RELEASED_CORE_VER_REQ: \${RELEASED_CORE_VER_REQ}" >> $WORKSPACE/version_requirements.log
127 echo "PATCHSET_CORE_VER_REQ: \${PATCHSET_CORE_VER_REQ}" >> $WORKSPACE/version_requirements.log
128
129 if [ "\${PATCHSET_CORE_VER_REQ}" == "\${RELEASED_CORE_VER_REQ}" ]; then
130 echo 0
131 else
132 # versionMismatch is true
133 echo 1
134 fi
135 """
136 def versionMismatch = result.readLines().last().toBoolean()
137 if (versionMismatch) {
138 echo "Detected xos-core version requirements mismatch. Will skip the rest of the pipeline and return SUCCESS"
139 }
140 doTest = !versionMismatch
Carmelo Cascone43086e12020-03-23 19:29:04 -0700141 }
Carmelo Cascone43086e12020-03-23 19:29:04 -0700142 }
143 }
144
Carmelo Cascone43086e12020-03-23 19:29:04 -0700145 // The patchset should be already checked out, but for consistency with
146 // other pipeline jobs, we re-do the same here.
147 stage('patch') {
Carmelo Cascone2c57fc32020-03-24 17:41:32 -0700148 when {
149 expression { doTest }
150 }
Carmelo Cascone43086e12020-03-23 19:29:04 -0700151 steps {
152 sh '''
153 pushd cord
Carmelo Cascone2c57fc32020-03-24 17:41:32 -0700154 PROJECT_PATH=\$(xmllint --xpath "string(//project[@name=\\\"${gerritProject}\\\"]/@path)" .repo/manifests/default.xml)
Carmelo Cascone43086e12020-03-23 19:29:04 -0700155 repo download "\$PROJECT_PATH" "${gerritChangeNumber}/${gerritPatchsetNumber}"
156 popd
157 '''
158 }
159 }
160
Kailash66c389c2019-04-24 14:56:11 -0700161 stage('Install XOS w/Service') {
Carmelo Cascone2c57fc32020-03-24 17:41:32 -0700162 when {
163 expression { doTest }
164 }
Kailash66c389c2019-04-24 14:56:11 -0700165 steps {
Carmelo Cascone43086e12020-03-23 19:29:04 -0700166 script {
Kailash5f300b92019-05-21 14:04:19 -0700167 if (serviceName == "olt-service") {
168 serviceName = "volt"
169 }
Kailash5f300b92019-05-21 14:04:19 -0700170 else if (serviceName == "kubernetes-service") {
171 serviceName = "kubernetes"
172 }
173 }
Kailash66c389c2019-04-24 14:56:11 -0700174 sh """
175 #!/usr/bin/env bash
176 set -eu -o pipefail
177
178 pushd cord/helm-charts
179 helm dep update xos-core
180 helm install xos-core -n xos-core
181
Kailash66c389c2019-04-24 14:56:11 -0700182 helm-repo-tools/wait_for_pods.sh
183
184 #install service
Kailash5f300b92019-05-21 14:04:19 -0700185 helm dep update xos-services/${serviceName}
186 helm install xos-services/${serviceName} -n ${serviceName}
Kailash66c389c2019-04-24 14:56:11 -0700187 popd
188 """
189 }
190 }
191 stage('Verify') {
Carmelo Cascone2c57fc32020-03-24 17:41:32 -0700192 when {
193 expression { doTest }
194 }
Kailash66c389c2019-04-24 14:56:11 -0700195 steps {
Matteo Scandolo5c6a4802019-05-14 10:44:21 -0700196 echo "serviceName: ${serviceName}"
Kailash66c389c2019-04-24 14:56:11 -0700197 sh """
198 #!/usr/bin/env bash
199 set -ex -o pipefail
200 export DOCKER_TAG=\$(cat $WORKSPACE/cord/orchestration/xos/VERSION)
201
202 #wait for xos-core and models to be loaded
203 timeout 300 bash -c "until http -a admin@opencord.org:letmein GET http://127.0.0.1:30001/xosapi/v1/dynamicload/load_status | jq '.services[] | select(.name==\\"core\\").state'| grep -q present; do echo 'Waiting for Core to be loaded'; sleep 5; done"
Matteo Scandolo5c6a4802019-05-14 10:44:21 -0700204 timeout 300 bash -c "until http -a admin@opencord.org:letmein GET http://127.0.0.1:30001/xosapi/v1/dynamicload/load_status | jq '.services[] | select(.name==\\"${serviceName}\\").state'| grep -q present; do echo 'Waiting for Core to be loaded'; sleep 5; done"
Kailash66c389c2019-04-24 14:56:11 -0700205
206 ## get pod logs
207 for pod in \$(kubectl get pods --no-headers | awk '{print \$1}');
208 do
Daniele Moroa5f00782020-02-24 11:23:46 -0800209 kubectl logs \${pod} > $WORKSPACE/\${pod}_pre.log;
Kailash66c389c2019-04-24 14:56:11 -0700210 done
211 """
212 }
213 }
Kailashf5c3f2b2019-04-30 08:58:49 -0700214 stage('Generate Model API Tests') {
Carmelo Cascone2c57fc32020-03-24 17:41:32 -0700215 when {
216 expression { doTest }
217 }
Kailashf5c3f2b2019-04-30 08:58:49 -0700218 steps {
219 sh """
220 CORE_CONTAINER=\$(docker ps | grep k8s_xos-core | awk '{print \$1}')
221 cd $WORKSPACE/cord/test/cord-tester
Kailashf5c3f2b2019-04-30 08:58:49 -0700222 docker cp $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests/targets/xosserviceupgradetest.xtarget \$CORE_CONTAINER:/opt/xos/lib/xos-genx/xosgenx/targets/xosserviceupgradetest.xtarget
223 docker cp $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests/targets/xosstaticlibrary.xtarget \$CORE_CONTAINER:/opt/xos/lib/xos-genx/xosgenx/targets/xosstaticlibrary.xtarget
224
225 export testname=_service_api.robot
226 export library=_library.robot
227
228 SERVICES=\$(docker exec -i \$CORE_CONTAINER /bin/bash -c "cd /opt/xos/dynamic_services/;find -name '*.xproto'" | awk -F[//] '{print \$2}')
229 echo \$SERVICES
230
231 for i in \$SERVICES; do bash -c "docker exec -i \$CORE_CONTAINER /bin/bash -c 'xosgenx --target /opt/xos/lib/xos-genx/xosgenx/targets/./xosserviceupgradetest.xtarget /opt/xos/dynamic_services/\$i/\$i.xproto /opt/xos/core/models/core.xproto'" > $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests/\$i\$testname; done
232
233 for i in \$SERVICES; do bash -c "docker exec -i \$CORE_CONTAINER /bin/bash -c 'xosgenx --target /opt/xos/lib/xos-genx/xosgenx/targets/./xosstaticlibrary.xtarget /opt/xos/dynamic_services/\$i/\$i.xproto /opt/xos/core/models/core.xproto'" > $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests/\$i\$library; done
234 ls -al $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests/
235 """
236 }
237 }
238
239 stage('Test Pre-Upgrade') {
Carmelo Cascone2c57fc32020-03-24 17:41:32 -0700240 when {
241 expression { doTest }
242 }
Kailashf5c3f2b2019-04-30 08:58:49 -0700243 steps {
244 sh """
Zack Williamsd7af2072020-03-06 13:11:26 -0700245 #!/usr/bin/env bash
246 set -ex -o pipefail
247
248 pushd cord/test/cord-tester
249 make venv_cord
250 source venv_cord/bin/activate
251 cd src/test/cord-api/Tests
Kailashf5c3f2b2019-04-30 08:58:49 -0700252
253 CORE_CONTAINER=\$(docker ps | grep k8s_xos-core | awk '{print \$1}')
254 CHAM_CONTAINER=\$(docker ps | grep k8s_xos-chameleon | awk '{print \$1}')
255 XOS_CHAMELEON=\$(docker exec \$CHAM_CONTAINER ip a | grep -oE "([0-9]{1,3}\\.){3}[0-9]{1,3}\\b" | grep 172)
256
257 cd $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Properties/
258 sed -i \"s/^\\(SERVER_IP = \\).*/\\1\'\$XOS_CHAMELEON\'/\" RestApiProperties.py
259 sed -i \"s/^\\(SERVER_PORT = \\).*/\\1\'9101\'/\" RestApiProperties.py
260 sed -i \"s/^\\(XOS_USER = \\).*/\\1\'admin@opencord.org\'/\" RestApiProperties.py
261 sed -i \"s/^\\(XOS_PASSWD = \\).*/\\1\'letmein\'/\" RestApiProperties.py
262 sed -i \"s/^\\(PASSWD = \\).*/\\1\'letmein\'/\" RestApiProperties.py
263
264 export testname=_service_api.robot
265 export library=_library.robot
266 SERVICES=\$(docker exec -i \$CORE_CONTAINER /bin/bash -c "cd /opt/xos/dynamic_services/;find -name '*.xproto'" | awk -F[//] '{print \$2}')
267 echo \$SERVICES
268
269 cd $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests
Matteo Scandolo5c6a4802019-05-14 10:44:21 -0700270 for i in \$SERVICES; do bash -c "robot -v SETUP_FLAG:Setup -i create -d Log -T -v TESTLIBRARY:${serviceName}_library.robot \$i\$testname"; sleep 2; done || true
Kailashf5c3f2b2019-04-30 08:58:49 -0700271
272 popd
273 """
274 }
275 }
Kailash66c389c2019-04-24 14:56:11 -0700276
277 stage('Build/Install New Service') {
Carmelo Cascone2c57fc32020-03-24 17:41:32 -0700278 when {
279 expression { doTest }
280 }
Kailash66c389c2019-04-24 14:56:11 -0700281 steps {
282 sh """
283 #!/usr/bin/env bash
284 set -eu -o pipefail
Zack Williamsd7af2072020-03-06 13:11:26 -0700285
Kailash66c389c2019-04-24 14:56:11 -0700286 pushd $WORKSPACE/cord/orchestration/xos-services/${gerritProject}
287 export DOCKER_TAG=\$(cat VERSION)-test
288 export DOCKER_REPOSITORY=xosproject/
289 export DOCKER_BUILD_ARGS=--no-cache
Kailash66c389c2019-04-24 14:56:11 -0700290 echo "\$(cat VERSION)-test" > VERSION
291 make docker-build
292
293 #install newservice
294 cd $WORKSPACE/cord/helm-charts
295 helm upgrade --set image.tag=\$DOCKER_TAG \
296 --set image.pullPolicy=Never \
Kailash5f300b92019-05-21 14:04:19 -0700297 --recreate-pods ${serviceName} xos-services/${serviceName}
Kailash66c389c2019-04-24 14:56:11 -0700298 popd
299 """
300 }
301 }
Kailash44fd62c2019-04-30 10:26:31 -0700302
Kailash66c389c2019-04-24 14:56:11 -0700303 stage('Verify Service Upgrade') {
Carmelo Cascone2c57fc32020-03-24 17:41:32 -0700304 when {
305 expression { doTest }
306 }
Kailash66c389c2019-04-24 14:56:11 -0700307 steps {
308 sh """
309 #!/usr/bin/env bash
310 set -ex -o pipefail
311 DOCKER_TAG=\$(cat $WORKSPACE/cord/orchestration/xos-services/${gerritProject}/VERSION)
312
313 #wait for xos-core and models to be loaded
314 timeout 300 bash -c "until http -a admin@opencord.org:letmein GET http://127.0.0.1:30001/xosapi/v1/dynamicload/load_status | jq '.services[] | select(.name==\\"core\\").state'| grep -q present; do echo 'Waiting for Core to be loaded'; sleep 5; done"
Matteo Scandolo5c6a4802019-05-14 10:44:21 -0700315 timeout 300 bash -c "until http -a admin@opencord.org:letmein GET http://127.0.0.1:30001/xosapi/v1/dynamicload/load_status | jq '.services[] | select(.name==\\"${serviceName}\\").state'| grep -q present; do echo 'Waiting for New Service to be loaded'; sleep 5; done"
316 timeout 300 bash -c "until http -a admin@opencord.org:letmein GET http://127.0.0.1:30001/xosapi/v1/dynamicload/load_status | jq '.services[] | select(.name==\\"${serviceName}\\").version'| grep -q \$DOCKER_TAG; do echo 'Waiting for New Service Version Check'; sleep 5; done"
Kailash4590ca12019-04-30 14:49:22 -0700317 sleep 120
Kailash66c389c2019-04-24 14:56:11 -0700318 """
319 }
320 }
Kailash44fd62c2019-04-30 10:26:31 -0700321
Kailashf5c3f2b2019-04-30 08:58:49 -0700322 stage('Test Post-Upgrade') {
Carmelo Cascone2c57fc32020-03-24 17:41:32 -0700323 when {
324 expression { doTest }
325 }
Kailashf5c3f2b2019-04-30 08:58:49 -0700326 steps {
327 sh """
Zack Williamsd7af2072020-03-06 13:11:26 -0700328 #!/usr/bin/env bash
329 set -ex -o pipefail
330
331 cd cord/test/cord-tester
332 make venv_cord
333 source venv_cord/bin/activate
334 cd src/test/cord-api/Tests
335
Kailashf5c3f2b2019-04-30 08:58:49 -0700336 CORE_CONTAINER=\$(docker ps | grep k8s_xos-core | awk '{print \$1}')
337
338 export testname=_service_api.robot
339 export library=_library.robot
340 SERVICES=\$(docker exec -i \$CORE_CONTAINER /bin/bash -c "cd /opt/xos/dynamic_services/;find -name '*.xproto'" | awk -F[//] '{print \$2}')
341 echo \$SERVICES
Matteo Scandolo5c6a4802019-05-14 10:44:21 -0700342 for i in \$SERVICES; do bash -c "robot -v SETUP_FLAG:Setup -i get -d Log -T -v TESTLIBRARY:${serviceName}_library.robot \$i\$testname"; sleep 2; done || true
Kailash44fd62c2019-04-30 10:26:31 -0700343 """
344 }
345 }
346
Andy Baviere053ad32019-05-09 13:58:34 -0700347 /* Disable the downgrade step because the core doesn't support reverse migrations
Kailash44fd62c2019-04-30 10:26:31 -0700348 stage('Downgrade Service') {
Carmelo Cascone2c57fc32020-03-24 17:41:32 -0700349 when {
350 expression { doTest }
351 }
Kailash44fd62c2019-04-30 10:26:31 -0700352 steps {
353 sh """
354 #!/usr/bin/env bash
355 set -eu -o pipefail
356
357 pushd cord/helm-charts
358 #delete service
359 helm delete --purge ${gerritProject}
360
361 #re-install service with previous version
362 helm dep update xos-services/${gerritProject}
363 helm install xos-services/${gerritProject} -n ${gerritProject}
364
365 #wait for xos-core and models to be loaded
366 timeout 300 bash -c "until http -a admin@opencord.org:letmein GET http://127.0.0.1:30001/xosapi/v1/dynamicload/load_status | jq '.services[] | select(.name==\\"core\\").state'| grep -q present; do echo 'Waiting for Core to be loaded'; sleep 5; done"
367 timeout 300 bash -c "until http -a admin@opencord.org:letmein GET http://127.0.0.1:30001/xosapi/v1/dynamicload/load_status | jq '.services[] | select(.name==\\"${gerritProject}\\").state'| grep -q present; do echo 'Waiting for Service to be loaded'; sleep 5; done"
Kailash4590ca12019-04-30 14:49:22 -0700368 sleep 120
Zack Williamsd7af2072020-03-06 13:11:26 -0700369
370 cd $WORKSPACE/cord/test/cord-tester
371 make venv_cord
372 source venv_cord/bin/activate
373 cd src/test/cord-api/Tests
Kailash44fd62c2019-04-30 10:26:31 -0700374
375 CORE_CONTAINER=\$(docker ps | grep k8s_xos-core | awk '{print \$1}')
376
377 export testname=_service_api.robot
378 export library=_library.robot
379 SERVICES=\$(docker exec -i \$CORE_CONTAINER /bin/bash -c "cd /opt/xos/dynamic_services/;find -name '*.xproto'" | awk -F[//] '{print \$2}')
Zack Williamsd7af2072020-03-06 13:11:26 -0700380
Kailash44fd62c2019-04-30 10:26:31 -0700381 echo \$SERVICES
382 for i in \$SERVICES; do bash -c "robot -v SETUP_FLAG:Setup -i get -d Log -T -v TESTLIBRARY:${gerritProject}_library.robot \$i\$testname"; sleep 2; done || true
383
384 ## get pod logs
385 for pod in \$(kubectl get pods --no-headers | awk '{print \$1}');
386 do
387 kubectl logs \$pod> $WORKSPACE/\$pod.log;
388 done || true
389
390 popd
Kailashf5c3f2b2019-04-30 08:58:49 -0700391 """
392 }
393 }
Andy Baviere053ad32019-05-09 13:58:34 -0700394 */
Kailashf5c3f2b2019-04-30 08:58:49 -0700395
Kailash66c389c2019-04-24 14:56:11 -0700396 }
Kailash44fd62c2019-04-30 10:26:31 -0700397
Kailash66c389c2019-04-24 14:56:11 -0700398 post {
399 always {
400 sh """
Daniele Moroa5f00782020-02-24 11:23:46 -0800401 ## get pod logs
402 for pod in \$(kubectl get pods --no-headers | awk '{print \$1}');
403 do
404 kubectl logs \${pod} > $WORKSPACE/\${pod}_post.log;
405 done
406
Kailashf5c3f2b2019-04-30 08:58:49 -0700407 # copy robot logs
408 if [ -d RobotLogs ]; then rm -r RobotLogs; fi; mkdir RobotLogs
Carmelo Cascone2c57fc32020-03-24 17:41:32 -0700409 cp -r $WORKSPACE/cord/test/cord-tester/src/test/cord-api/Tests/Log/*ml ./RobotLogs || true
410 # Workaorund for when doTest is false and there's no Robot output to
411 # process. Without this file, RobotPublisher below will fail marking
412 # the build as FAILED.
413 if [ ! -f RobotLogs/output.xml ]; then echo '<xml></xml>' > RobotLogs/output.xml; fi;
Kailash66c389c2019-04-24 14:56:11 -0700414 kubectl get pods --all-namespaces
415 kubectl describe pods
Carmelo Cascone2c57fc32020-03-24 17:41:32 -0700416 http -a admin@opencord.org:letmein GET http://127.0.0.1:30001/xosapi/v1/dynamicload/load_status || true
Kailash66c389c2019-04-24 14:56:11 -0700417 echo "# removing helm deployments"
418 kubectl get pods
419 helm list
420
421 for hchart in \$(helm list -q);
422 do
423 echo "## Purging chart: \${hchart} ##"
424 helm delete --purge "\${hchart}"
425 done
426
427 sudo minikube delete
428 """
Kailashf5c3f2b2019-04-30 08:58:49 -0700429 step([$class: 'RobotPublisher',
430 disableArchiveOutput: false,
431 logFileName: 'RobotLogs/log*.html',
432 otherFiles: '',
433 outputFileName: 'RobotLogs/output*.xml',
434 outputPath: '.',
435 passThreshold: 100,
436 reportFileName: 'RobotLogs/report*.html',
437 unstableThreshold: 0]);
Kailash66c389c2019-04-24 14:56:11 -0700438 archiveArtifacts artifacts: '*.log'
Zack Williamsd7af2072020-03-06 13:11:26 -0700439 step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "scottb@opennetworking.org", sendToIndividuals: false])
Kailash66c389c2019-04-24 14:56:11 -0700440 }
441 }
442}