From e933f948e44b7f1d320c4b97e3f55b46e337f6d8 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Jun 19 2018 13:06:20 +0000 Subject: Retry pushes of the latest tag. ... just in case. We already retry pushes of the image layers itself earlier in the pipeline. This last push should just be a tiny label push, but it can't hurt to retry it too. --- diff --git a/Jenkinsfile b/Jenkinsfile index 4f2e0dd..c14b947 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -230,7 +230,12 @@ node('docker') { 'https://docker-registry.engineering.redhat.com/', 'docker-registry-factory2-builder-sa-credentials') { def image = docker.image("factory2/greenwave:internal-${appversion}") - image.push('latest') + /* Pushes to the internal registry can sometimes randomly fail + * with "unknown blob" due to a known issue with the registry + * storage configuration. So we retry up to 3 times. */ + retry(3) { + image.push('latest') + } } docker.withRegistry( 'https://quay.io/',