1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-03 15:02:35 +02:00

refactor(go): increase retry time for piper binary download (#1591)

* increase retry time

* Update src/com/sap/piper/PiperGoUtils.groovy

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
This commit is contained in:
Christopher Fenner 2020-05-28 09:28:31 +02:00 committed by GitHub
parent 3992f17b32
commit 65a3ecd208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,13 +55,12 @@ class PiperGoUtils implements Serializable {
//Inform that no Piper binary is available for used library branch
steps.echo("Not able to download go binary of Piper for version ${version}")
//Fallback to master version & throw error in case this fails
steps.retry(5) {
steps.retry(12) {
if (!downloadGoBinary(fallbackUrl)) {
steps.sleep(2)
steps.sleep(10)
steps.error("Download of Piper go binary failed.")
}
}
}
}
try {