From 1ddf78fe313e34b2595db6d5f3b4b980ea1f5594 Mon Sep 17 00:00:00 2001 From: Luiz Carvalho Date: Oct 16 2019 20:48:40 +0000 Subject: Stop pushing image to internal registry The image is already built and pushed to quay.io which is the preferred location for both internal and external use. Signed-off-by: Luiz Carvalho --- diff --git a/Jenkinsfile b/Jenkinsfile index 484c6d9..6e3c7aa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -140,20 +140,6 @@ node('docker') { * the rules in PEP440. But Docker does not let us have + in the tag * name, so let's munge it here. */ appversion = appversion.replace('+', '-') - docker.withRegistry( - 'https://docker-registry.engineering.redhat.com/', - 'docker-registry-factory2-builder-sa-credentials') { - /* Note that the docker.build step has some magic to guess the - * Dockerfile used, which will break if the build directory (here ".") - * is not the final argument in the string. */ - def image = docker.build "factory2/greenwave:internal-${appversion}", "--build-arg cacert_url=https://password.corp.redhat.com/RH-IT-Root-CA.crt ." - /* 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() - } - } /* Build and push the same image with the same tag to quay.io, but without the cacert. */ docker.withRegistry( 'https://quay.io/',