Skip to content

Commit 7ac6f82

Browse files
Merge pull request #20154 from mahdipub/issue_9829
resolves the fill of space due to docker images pile up
2 parents ba5e3bc + 9e5f8dc commit 7ac6f82

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

buildenv/jenkins/common/build.groovy

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,13 @@ def _build_all() {
817817
// TODO: remove this workaround when https://github.com/adoptium/infrastructure/issues/3597 resolved. related: infra 9292
818818
def create_docker_image_locally()
819819
{
820-
new_image_name=DOCKER_IMAGE.split(':')[0]+'_cuda'
820+
new_image_name = DOCKER_IMAGE.split(':')[0] + '_cuda'
821+
// check and return if image is already exists on node
822+
CUDA_DOCKER_IMAGE_ID = get_docker_image_id(new_image_name)
823+
if (CUDA_DOCKER_IMAGE_ID) {
824+
DOCKER_IMAGE = new_image_name
825+
return
826+
}
821827
sh '''
822828
echo 'ARG image
823829
ARG cuda_ver=12.2.0

0 commit comments

Comments
 (0)