Added E2E and cleanup step
Change-Id: I9dacfc7b0d38da6983f38b6bb943487711d98a92
diff --git a/Jenkinsfile b/Jenkinsfile
index 4144c24..91821c7 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -28,6 +28,8 @@
stage 'Build GUI docker container'
sh 'docker build --no-cache -t xosproject/xos-gui .'
sh 'docker run -p 4000:4000 --net=host --name xos-gui -d xosproject/xos-gui'
+
+ stage 'Run E2E Tests'
sh 'curl 127.0.0.1:4000/spa/ --write-out %{http_code} --silent --output /dev/null | grep 200'
currentBuild.result = 'SUCCESS'
@@ -35,6 +37,7 @@
currentBuild.result = 'FAILURE'
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'teo@onlab.us', sendToIndividuals: true])
} finally {
+ stage 'Clean'
sh 'docker stop xos-gui'
sh 'docker rm xos-gui'
sh 'docker rmi xosproject/xos-gui'