openvidu-test-e2e: Jenkinsfile logs and archives openvidu-server output

pull/370/head
pabloFuente 2019-12-10 17:19:29 +01:00
parent 23fc6815b6
commit 79e8b6ace1
1 changed files with 9 additions and 2 deletions

View File

@ -71,11 +71,18 @@ node('container') {
}
stage ('E2E tests') {
try {
sh 'cd openvidu/openvidu-test-e2e && sudo mvn --batch-mode -DAPP_URL=https://172.17.0.1:4200/ -DOPENVIDU_URL=https://172.17.0.1:4443/ -DREMOTE_URL_CHROME=http://172.17.0.1:6666/wd/hub/ -DREMOTE_URL_FIREFOX=http://172.17.0.1:6667/wd/hub/ test'
sh(script: '''#!/bin/bash
cd openvidu/openvidu-test-e2e && sudo mvn --batch-mode -DAPP_URL=https://172.17.0.1:4200/ -DOPENVIDU_URL=https://172.17.0.1:4443/ -DREMOTE_URL_CHROME=http://172.17.0.1:6666/wd/hub/ -DREMOTE_URL_FIREFOX=http://172.17.0.1:6667/wd/hub/ test
if [[ "$?" -ne 0 ]] ; then
echo "ERROR RUNNING TESTS"
echo "/openvidu-server.log"
fi
'''.stripIndent())
}
finally {
junit "openvidu/openvidu-test-e2e/**/target/surefire-reports/TEST-*.xml"
}
archive "/openvidu-server.log"
}
}
}
}