diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-03-20 20:22:34 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-20 20:52:52 +0100 |
commit | ba94d6f11d5f3e5e92755d14272aeef35b156429 (patch) | |
tree | 506afaf0ec93ab5667c975e1fef11f59b999a4c0 /bin/reproducible_maintainance.sh | |
parent | 7e1e04e2a1b18b4c83b094da19143bd7d4d6a6ca (diff) | |
download | jenkins.debian.net-ba94d6f11d5f3e5e92755d14272aeef35b156429.tar.xz |
eproducible: support for saving artifacts from the builds. use 'artifacts' as the first package when manual scheduling and packages will save files!
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 |