Jenkinsfile: Fix unstable status handling code.
This commit is contained in:
parent
0c532c58f5
commit
a1de01474e
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -192,6 +192,7 @@ gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"])
|
||||
}
|
||||
executions["$configuration on Linux"] = {
|
||||
node("docker && linux && amd64") {
|
||||
try {
|
||||
def image = null
|
||||
dir("src") {
|
||||
checkout scm
|
||||
@ -201,21 +202,20 @@ gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"])
|
||||
image.inside {
|
||||
doUnitTests("IW4x $configuration (unit tests)")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
try {
|
||||
parallel executions
|
||||
} catch (Exception e) {
|
||||
if (isUnix()) {
|
||||
manager.buildUnstable()
|
||||
manager.addWarningBadge "Unit tests failed on Linux"
|
||||
manager.addWarningBadge "$configuration unit test failed on Linux"
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
parallel executions
|
||||
}
|
||||
}
|
||||
|
||||
// Collect all the binaries and give each configuration its own subfolder
|
||||
stage("Archiving") {
|
||||
|
Loading…
Reference in New Issue
Block a user