Add retry blocks.
This commit is contained in:
parent
4beab1ea12
commit
035aa56f8c
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@ -100,7 +100,9 @@ def getIW4xExecutable() {
|
|||||||
def doBuild(cfg) {
|
def doBuild(cfg) {
|
||||||
node("windows") {
|
node("windows") {
|
||||||
jobWorkspace(cfg.WorkspaceID) {
|
jobWorkspace(cfg.WorkspaceID) {
|
||||||
checkout scm
|
retry(5) {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
|
||||||
useShippedPremake {
|
useShippedPremake {
|
||||||
def outputDir = pwd()
|
def outputDir = pwd()
|
||||||
@ -151,10 +153,12 @@ def doUnitTests(name) {
|
|||||||
|
|
||||||
// Run tests
|
// Run tests
|
||||||
getIW4xExecutable()
|
getIW4xExecutable()
|
||||||
if (isUnix()) {
|
retry(5) {
|
||||||
sh "WINEDEBUG=warn+all wine-wrapper iw4x.exe -tests"
|
if (isUnix()) {
|
||||||
} else {
|
sh "WINEDEBUG=warn+all wine-wrapper iw4x.exe -tests"
|
||||||
bat "iw4x.exe -tests"
|
} else {
|
||||||
|
bat "iw4x.exe -tests"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
@ -190,7 +194,9 @@ gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"])
|
|||||||
gitlabCommitStatus("Checkout & Versioning") {
|
gitlabCommitStatus("Checkout & Versioning") {
|
||||||
node("windows") {
|
node("windows") {
|
||||||
jobWorkspace("versioning") {
|
jobWorkspace("versioning") {
|
||||||
checkout scm
|
retry(5) {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
|
||||||
useShippedPremake {
|
useShippedPremake {
|
||||||
def version = bat(returnStdout: true, script: '@premake5 version').split("\r?\n")[1]
|
def version = bat(returnStdout: true, script: '@premake5 version').split("\r?\n")[1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user