diff options
author | Aric Gardner <agardner@linuxfoundation.org> | 2016-07-25 20:43:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-07-25 20:43:49 +0000 |
commit | 569d02f09634c42275898ba198af280cf2008232 (patch) | |
tree | 49c29cdcc60cc963826f0ed885de58b5ba2b5b7f /utils | |
parent | 948f47869a44e06aa026883e9b5085ed25fb5678 (diff) | |
parent | 2fdb87a629ee2193c1880afd946a78c262e25f5b (diff) |
Merge "Enable delete for artifact retention script"
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 |