From 3ef1f4b2fdeaf57d084e97f7c738243562bffad9 Mon Sep 17 00:00:00 2001 From: Dan Callaghan Date: May 31 2018 02:48:09 +0000 Subject: Jenkinsfile: retry pushes to internal registry, to work around "unknown blob" --- diff --git a/Jenkinsfile b/Jenkinsfile index 52783a2..dd8e740 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -221,7 +221,12 @@ node('docker') { 'https://docker-registry.engineering.redhat.com/', 'docker-registry-factory2-builder-sa-credentials') { def image = docker.image("factory2/waiverdb: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/',