Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete from dev-preview mirror more precisly #4235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions jobs/build/set_client_latest/S3-set-v4-client-latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ for arch in ${ARCHES}; do
# and readability. The check on MAJOR_MINOR is just a sanity check that it starts with a digit (e.g. "4.16")
# so we are deleting only expected items.
echo "Cleaning up old entries in ocp-dev-preview/"
aws s3 rm "s3://art-srv-enterprise/pub/openshift-v4/${arch}/clients/ocp-dev-preview/" --recursive --exclude "*" --include "${PREVIOUS_MAJOR_MINOR}.*"
aws s3 rm "s3://art-srv-enterprise/pub/openshift-v4/${arch}/clients/ocp-dev-preview/" --recursive --exclude "*" --include "${PREVIOUS_MAJOR_MINOR}.*" --profile cloudflare --endpoint-url ${CLOUDFLARE_ENDPOINT}
for kind in ec fc nightly; do
aws s3 rm "s3://art-srv-enterprise/pub/openshift-v4/${arch}/clients/ocp-dev-preview/" --recursive --exclude "*" --include "${PREVIOUS_MAJOR_MINOR}\.[0-9-]*${kind}\..*"
aws s3 rm "s3://art-srv-enterprise/pub/openshift-v4/${arch}/clients/ocp-dev-preview/" --recursive --exclude "*" --include "${PREVIOUS_MAJOR_MINOR}\.[0-9-]*${kind}\..*" --profile cloudflare --endpoint-url ${CLOUDFLARE_ENDPOINT}
done
fi

# List the all the other "latest-4.x" or "stable-4.x" directory names. s3 ls
Expand Down