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"] = {
|
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") {
|
||||||
|
Loading…
Reference in New Issue
Block a user