Set build to unstable if tests fail.
This commit is contained in:
parent
5327a4f272
commit
7805d7f356
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -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."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user