diff options
author | Aric Gardner <agardner@linuxfoundation.org> | 2016-07-21 12:22:27 -0400 |
---|---|---|
committer | Aric Gardner <agardner@linuxfoundation.org> | 2016-07-25 16:33:08 -0400 |
commit | 2fdb87a629ee2193c1880afd946a78c262e25f5b (patch) | |
tree | 05dc5fab7cca0f44c3db08989196a36e8a1ede54 /utils | |
parent | b565c489fcec77fe4a75797bed0fbfafcccc9969 (diff) |
Enable delete for artifact retention script
To see what will be deleted:
https://build.opnfv.org/ci/view/All/job/artifact-cleanup-daily-master/18/console
Checked with ovs team, and we are good to remove their
varied rpms.
No reponse from the apex, compas, armband or fuel leads, but nothing wierd
being deleted there, just old isos
Change-Id: If4e7592192dcc80388aa872633d1fcca6442186f
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/retention_script.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/retention_script.sh b/utils/retention_script.sh index 7e50623ca..b2177930b 100755 --- a/utils/retention_script.sh +++ b/utils/retention_script.sh @@ -22,6 +22,7 @@ for x in armband ovsnfv fuel apex compass4nfv do echo "Looking at artifacts for project $x" + echo "In path gs://artifacts.opnfv.org/$x" while IFS= read -r artifact; do @@ -31,6 +32,7 @@ do if [[ "$daysold" -gt "10" ]]; then echo "$daysold Days old deleting: $(basename $artifact)" + gsutil rm "$artifact" else echo "$daysold Days old retaining: $(basename $artifact)" fi |