Closed andrew-m-leonard closed 2 months ago
Took me a bit of time to understand the specific problem here, but for historic reference it is because docker image ls
gives lines like this:
adoptopenjdk/ubuntu2004_build_image linux-riscv64 d7f86236b5fd 5 days ago 3.01GB
which the grep with the colon separation between image and tag will not pick up.
PR: https://github.com/adoptium/ci-jenkins-pipelines/pull/1076 added a patch to tag using the docker_image to handle scenario when using a dockerRegistry. However, it searches the image ls using the docker_image, which may contain a :tag or @digest, which will not match... eg: https://ci.adoptium.net/job/build-scripts/job/jobs/job/jdk23/job/jdk23-linux-riscv64-temurin/9/console
docker ls returns the "Repository", you can't locate the entry you need from that list using the plain DOCKER_IMAGE string