Set build to unstable if tests fail.

This commit is contained in:
/dev/root 2017-05-31 23:00:56 +02:00
parent 5327a4f272
commit 7805d7f356

5
Jenkinsfile vendored
View File

@ -241,6 +241,7 @@ gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"])
stage("Testing") {
gitlabCommitStatus("Testing") {
executions = [:]
try {
timeout(10) {
for (int i = 0; i < testing.size(); i++) {
def entry = testing.get(i)
@ -282,6 +283,10 @@ gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"])
}
parallel executions
}
} catch (Exception e) {
manager.buildUnstable()
manager.addWarningBadge "Tests ran too long."
}
}
}