diff options
Diffstat (limited to 'bin/reproducible_maintainance.sh')
-rwxr-xr-x | bin/reproducible_maintainance.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh index 84624bb6..97e588d2 100755 --- a/bin/reproducible_maintainance.sh +++ b/bin/reproducible_maintainance.sh @@ -101,7 +101,8 @@ if [ ! -z "$FAILED_BUILDS" ] ; then check_candidates if [ $TOTAL -ne 0 ] ; then echo " - in $SUITE: $CANDIDATES" - schedule_packages $PACKAGE_IDS + # '0' here means the artifacts will not be saved + schedule_packages 0 $PACKAGE_IDS fi done DIRTY=true @@ -200,6 +201,15 @@ if [ ! -z "$OLDSTUFF" ] ; then echo fi +# remove artifacts older than 3 days +mkdir -p /var/lib/jenkins/userContent/artifacts +ARTIFACTS=$(find /var/lib/jenkins/userContent/artifacts -maxdepth 1 -type d -mtime +3 -exec rm -rv {} \;) +if [ ! -z "$ARTIFACTS" ] ; then + echo + echo "Removed $ARTIFACTS artifacts." + echo +fi + if ! $DIRTY ; then echo "Everything seems to be fine." echo |