From b334b221dbd1078a87315b4cbc9e8280de30ed2d Mon Sep 17 00:00:00 2001 From: Andrii Ostapenko Date: Wed, 12 Aug 2020 12:23:59 -0500 Subject: [PATCH] Add retry for curling cfssl.org We observe SSL related errors rarely in jobs. Change-Id: Ia5569f411abd2828c6ab289e3942e3a7dabf2d46 Signed-off-by: Andrii Ostapenko --- tools/scripts/tls/cert-manager.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/scripts/tls/cert-manager.sh b/tools/scripts/tls/cert-manager.sh index 42463be12a..a3ab4a1cb4 100755 --- a/tools/scripts/tls/cert-manager.sh +++ b/tools/scripts/tls/cert-manager.sh @@ -28,8 +28,8 @@ else temp_bin=$(mktemp --directory) cd $temp_bin CFSSLURL=https://pkg.cfssl.org/R1.2 - curl -sSL -o cfssl $CFSSLURL/cfssl_linux-amd64 - curl -sSL -o cfssljson $CFSSLURL/cfssljson_linux-amd64 + curl --retry 3 --retry-connrefused -sSL -o cfssl $CFSSLURL/cfssl_linux-amd64 + curl --retry 3 --retry-connrefused -sSL -o cfssljson $CFSSLURL/cfssljson_linux-amd64 chmod +x {cfssl,cfssljson} export PATH=$PATH:$temp_bin fi