Ignore errors on remove images from local registry
Ignore errors when we go through all images with trying remove them from local registry and some of them from some reasons wasn't uploaded to registry. Change-Id: Ica0f4771071b48d4d0a17091487892c3becd40b1
This commit is contained in:
parent
c57639455f
commit
5862046cf1
|
@ -136,9 +136,11 @@ ${SSH_COMMAND} "pushd fuel-ccp && APT_CACHE_SERVER=http://${APT_CACHE_SERVER_IP}
|
|||
docker exec "${REGISTRY_HASH}" chgrp -R "${JENKINS_GID}" /var/lib/registry
|
||||
docker exec "${REGISTRY_HASH}" chmod -R g+w /var/lib/registry
|
||||
|
||||
set +e
|
||||
for i in `curl http://${REGISTRY_IP}:${REGISTRY_PORT}/v2/_catalog | jq -r '.repositories[]'`; do
|
||||
REGISTRY_DATA_DIR=/home/jenkins/registry/data/docker/registry/v2/ /home/jenkins/registry/delete_docker_registry_image.py --image "${i}":"${ZUUL_CHANGE}"
|
||||
done
|
||||
set -e
|
||||
|
||||
# Revert to fresh to decrease image size
|
||||
dos.py revert "${FUEL_DEVOPS_ENV_NAME}" "${FUEL_DEVOPS_SNAPSHOT_NAME}"
|
||||
|
|
Loading…
Reference in New Issue