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