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) {
diff --git a/package.json b/package.json
index 152c4a0..98f6686 100644
--- a/package.json
+++ b/package.json
@@ -92,7 +92,6 @@
"typings": "typings install",
"serve:dist": "gulp serve:dist",
"serve:dist:watch": "gulp serve:dist:watch",
- "pretest": "npm run lint",
"test": "gulp test",
"test:auto": "gulp test:auto",
"config": "gulp config",