Set build as FAILURE on any test failure

pull/661/head
cruizba 2021-10-21 16:44:25 +02:00
parent bd74b9b030
commit 79ceed2c45
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ def openViduE2ETest(mediaServer) {
'''.stripIndent()) '''.stripIndent())
} catch (err) { } catch (err) {
echo "Test failed" echo "Test failed"
currentBuild.result = 'FAILURE'
} finally { } finally {
junit 'openvidu/openvidu-test-e2e/**/target/surefire-reports/TEST-*.xml' junit 'openvidu/openvidu-test-e2e/**/target/surefire-reports/TEST-*.xml'
archiveArtifacts artifacts: '**/openvidu-server.log' archiveArtifacts artifacts: '**/openvidu-server.log'