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