Jenkinsfile: Fix unstable status handling code.

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

12
Jenkinsfile vendored
View File

@ -192,6 +192,7 @@ gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"])
} }
executions["$configuration on Linux"] = { executions["$configuration on Linux"] = {
node("docker && linux && amd64") { node("docker && linux && amd64") {
try {
def image = null def image = null
dir("src") { dir("src") {
checkout scm checkout scm
@ -201,21 +202,20 @@ gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"])
image.inside { image.inside {
doUnitTests("IW4x $configuration (unit tests)") doUnitTests("IW4x $configuration (unit tests)")
} }
}
}
}
try {
parallel executions
} catch (Exception e) { } catch (Exception e) {
if (isUnix()) { if (isUnix()) {
manager.buildUnstable() manager.buildUnstable()
manager.addWarningBadge "Unit tests failed on Linux" manager.addWarningBadge "$configuration unit test failed on Linux"
} else { } else {
throw e throw e
} }
} }
} }
} }
}
parallel executions
}
}
// Collect all the binaries and give each configuration its own subfolder // Collect all the binaries and give each configuration its own subfolder
stage("Archiving") { stage("Archiving") {