summaryrefslogtreecommitdiffstats
path: root/utils/retention_script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/retention_script.sh')
-rwxr-xr-x[-rw-r--r--]utils/retention_script.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/retention_script.sh b/utils/retention_script.sh
index 9a8986ca5..7e50623ca 100644..100755
--- a/utils/retention_script.sh
+++ b/utils/retention_script.sh
@@ -15,6 +15,8 @@
# 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
@@ -28,9 +30,9 @@ do
daysold=$(($age/86400))
if [[ "$daysold" -gt "10" ]]; then
- echo "$daysold Days old Deleting: $(basename $artifact)"
+ echo "$daysold Days old deleting: $(basename $artifact)"
else
- echo "$daysold Days old Retaining: $(basename $artifact)"
+ echo "$daysold Days old retaining: $(basename $artifact)"
fi
done < <(gsutil ls gs://artifacts.opnfv.org/"$x" |grep -v "/$")