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:
parent
3992f17b32
commit
65a3ecd208
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user