Jenkinsfile: Mark build as unstable and add warning text if test fails on Linux instead of failing the build.

This commit is contained in:
/dev/urandom 2016-09-15 22:06:29 +02:00
parent 34950dde3b
commit 0c532c58f5
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

14
Jenkinsfile vendored
View File

@ -181,8 +181,7 @@ gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"])
stage("Testing") {
gitlabCommitStatus("Testing") {
executions = [:]
for (int i = 0; i < configurations.size(); i++)
{
for (int i = 0; i < configurations.size(); i++) {
def configuration = configurations[i]
executions["$configuration on Windows"] = {
node("windows") {
@ -205,7 +204,16 @@ gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"])
}
}
}
parallel executions
try {
parallel executions
} catch (Exception e) {
if (isUnix()) {
manager.buildUnstable()
manager.addWarningBadge "Unit tests failed on Linux"
} else {
throw e
}
}
}
}