Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove Xtesting MTS in gates
[releng.git]
/
utils
/
retention_script.sh
diff --git
a/utils/retention_script.sh
b/utils/retention_script.sh
old mode 100644
(file)
new mode 100755
(executable)
index
9a8986c
..
3d0673a
--- a/
utils/retention_script.sh
+++ b/
utils/retention_script.sh
@@
-15,11
+15,11
@@
# limitations under the License.
##############################################################################
# limitations under the License.
##############################################################################
-#These are the only projects that generate artifacts
-for x in armband ovsnfv fuel apex compass4nfv
+for x in airship apex armband compass4nfv fuel ovsnfv
do
echo "Looking at artifacts for project $x"
do
echo "Looking at artifacts for project $x"
+ echo "In path gs://artifacts.opnfv.org/$x"
while IFS= read -r artifact; do
while IFS= read -r artifact; do
@@
-28,9
+28,10
@@
do
daysold=$(($age/86400))
if [[ "$daysold" -gt "10" ]]; then
daysold=$(($age/86400))
if [[ "$daysold" -gt "10" ]]; then
- echo "$daysold Days old Deleting: $(basename $artifact)"
+ echo "$daysold Days old deleting: $(basename $artifact)"
+ gsutil rm "$artifact"
else
else
- echo "$daysold Days old
R
etaining: $(basename $artifact)"
+ echo "$daysold Days old
r
etaining: $(basename $artifact)"
fi
done < <(gsutil ls gs://artifacts.opnfv.org/"$x" |grep -v "/$")
fi
done < <(gsutil ls gs://artifacts.opnfv.org/"$x" |grep -v "/$")