X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=utils%2Fretention_script.sh;h=b2177930b646c09bc519510f4bbafff7e98fb6ca;hb=df1b5e6fc42bf2d9642163736c597cdfb064b1c5;hp=36dd537e9e07038e69ab38d6cceb6c8d86d6ea7b;hpb=8c758635ce4664e7c2368248ef3be4a642ebb0dd;p=releng.git diff --git a/utils/retention_script.sh b/utils/retention_script.sh index 36dd537e9..b2177930b 100755 --- a/utils/retention_script.sh +++ b/utils/retention_script.sh @@ -15,11 +15,14 @@ # limitations under the License. ############################################################################## +PATH=$PATH:/usr/local/bin/ + #These are the only projects that generate artifacts 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 @@ -29,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