Updated Jenkins pipeline file
Change-Id: I15843ca9bf8981dc22c490c34ff5bdd3bd092dd1
diff --git a/Jenkinsfile b/Jenkinsfile
index eb324e6..cba46f6 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -27,8 +27,8 @@
stage 'Build GUI docker container'
sh 'docker build -t xosproject/xos-gui .'
- sh 'docker run -p 4000:4000 -d xosproject/xos-gui'
- sh 'curl 127.0.0.1:4000/spa/'
+ sh 'docker run -p 4000:4000 --net=host -d xosproject/xos-gui'
+ sh 'curl 127.0.0.1:4000/spa/ --write-out %{http_code} --silent --output /dev/null | grep 200'
currentBuild.result = 'SUCCESS'
} catch (err) {