Add retry for curling cfssl.org
We observe SSL related errors rarely in jobs. Change-Id: Ia5569f411abd2828c6ab289e3942e3a7dabf2d46 Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
This commit is contained in:
parent
5dfb1ec9ee
commit
b334b221db
@ -28,8 +28,8 @@ else
|
|||||||
temp_bin=$(mktemp --directory)
|
temp_bin=$(mktemp --directory)
|
||||||
cd $temp_bin
|
cd $temp_bin
|
||||||
CFSSLURL=https://pkg.cfssl.org/R1.2
|
CFSSLURL=https://pkg.cfssl.org/R1.2
|
||||||
curl -sSL -o cfssl $CFSSLURL/cfssl_linux-amd64
|
curl --retry 3 --retry-connrefused -sSL -o cfssl $CFSSLURL/cfssl_linux-amd64
|
||||||
curl -sSL -o cfssljson $CFSSLURL/cfssljson_linux-amd64
|
curl --retry 3 --retry-connrefused -sSL -o cfssljson $CFSSLURL/cfssljson_linux-amd64
|
||||||
chmod +x {cfssl,cfssljson}
|
chmod +x {cfssl,cfssljson}
|
||||||
export PATH=$PATH:$temp_bin
|
export PATH=$PATH:$temp_bin
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user