Jenkinsfile: Mark build as unstable and add warning text if test fails on Linux instead of failing the build.
This commit is contained in:
parent
34950dde3b
commit
0c532c58f5
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -181,8 +181,7 @@ gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"])
|
|||||||
stage("Testing") {
|
stage("Testing") {
|
||||||
gitlabCommitStatus("Testing") {
|
gitlabCommitStatus("Testing") {
|
||||||
executions = [:]
|
executions = [:]
|
||||||
for (int i = 0; i < configurations.size(); i++)
|
for (int i = 0; i < configurations.size(); i++) {
|
||||||
{
|
|
||||||
def configuration = configurations[i]
|
def configuration = configurations[i]
|
||||||
executions["$configuration on Windows"] = {
|
executions["$configuration on Windows"] = {
|
||||||
node("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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user