From 4585c04e4a0e47d8e735221a7f0ff6847c0d51ef Mon Sep 17 00:00:00 2001 From: Stewart X Addison Date: Thu, 2 May 2024 11:02:46 +0100 Subject: [PATCH] don't skip docker SHA collection on RHEL containers Signed-off-by: Stewart X Addison --- pipelines/build/common/openjdk_build_pipeline.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipelines/build/common/openjdk_build_pipeline.groovy b/pipelines/build/common/openjdk_build_pipeline.groovy index 78f12aabf..21a9a6d02 100644 --- a/pipelines/build/common/openjdk_build_pipeline.groovy +++ b/pipelines/build/common/openjdk_build_pipeline.groovy @@ -2009,13 +2009,13 @@ class Build { context.docker.image(buildConfig.DOCKER_IMAGE).pull() } } - // Store the pulled docker image digest as 'buildinfo' - dockerImageDigest = context.sh(script: "docker inspect --format='{{.RepoDigests}}' ${buildConfig.DOCKER_IMAGE}", returnStdout:true) } } catch (FlowInterruptedException e) { throw new Exception("[ERROR] Controller docker image pull timeout (${buildTimeouts.DOCKER_PULL_TIMEOUT} HOURS) has been reached. Exiting...") } } + // Store the pulled docker image digest as 'buildinfo' + dockerImageDigest = context.sh(script: "docker inspect --format='{{.RepoDigests}}' ${buildConfig.DOCKER_IMAGE}", returnStdout:true) // Use our dockerfile if DOCKER_FILE is defined if (buildConfig.DOCKER_FILE) {