[CORD-1133] E2E GUI Tests
Change-Id: I521d0cc068a3e328f3d4f421ba4b342bea167e19
diff --git a/Jenkinsfile b/Jenkinsfile
index 3036c3a..cadc328 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -30,10 +30,19 @@
sh 'docker tag nginx nginx:candidate'
sh 'docker build --no-cache -t xosproject/xos-gui .'
sh 'docker run -p 4000:4000 --net=host --name xos-gui -d xosproject/xos-gui'
-
+ } catch (err) {
+ currentBuild.result = 'FAILURE'
+ step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'teo@onlab.us', sendToIndividuals: true])
+ }
+ }
+ dir('build/platform-install') {
+ stage 'Build Mock R-CORD Config'
+ sh `ansible-playbook -i inventory/mock-rcord deploy-xos-playbook.yml`
+ }
+ dir('orchestration/xos-gui') {
+ try {
stage 'Run E2E Tests'
- sh 'curl 127.0.0.1:4000/spa/ --write-out %{http_code} --silent --output /dev/null | grep 200'
-
+ sh 'UI_URL=127.0.0.1:4000/spa/#' protractor conf/protractor.conf.js
currentBuild.result = 'SUCCESS'
} catch (err) {
currentBuild.result = 'FAILURE'
@@ -46,8 +55,10 @@
sh 'docker rmi -f nginx:candidate'
sh 'docker rmi -f nginx:latest'
}
+ }
+ dir('build/platform-install') {
+ sh `ansible-playbook -i inventory/mock-rcord teardown-playbook.yml`
echo "RESULT: ${currentBuild.result}"
}
-
}
}
\ No newline at end of file