X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=utils%2Fretention_script.sh;h=b2177930b646c09bc519510f4bbafff7e98fb6ca;hb=ea41680215f382b1ad70e4dc564529d728665378;hp=1db8055078e21d57a31c473da32c5fd1b0f2e18f;hpb=a095b2e7ffc28779328f0354a5cc97d9e527fd02;p=releng.git diff --git a/utils/retention_script.sh b/utils/retention_script.sh index 1db805507..b2177930b 100755 --- a/utils/retention_script.sh +++ b/utils/retention_script.sh @@ -15,13 +15,14 @@ # limitations under the License. ############################################################################## -PATH=$PATH:/usr/local/bin/gsutil +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 @@ -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