summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-16 14:05:10 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-16 14:05:10 +0200
commit2ea8c692b68c3a3e8ff13c768056ef017922226d (patch)
tree4e8fe37bc7117aff5927d9701fcdb70ae36ac3d8
parentf1309f6585014b2fbeb1e16873ee1ccdd003ac97 (diff)
downloadjenkins.debian.net-2ea8c692b68c3a3e8ff13c768056ef017922226d.tar.xz
reproducible: only keep artifacts for 2 days (instead of 3)
-rwxr-xr-xbin/reproducible_build.sh2
-rwxr-xr-xbin/reproducible_maintenance.sh8
2 files changed, 5 insertions, 5 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index c3e9d551..c88c64a4 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -53,7 +53,7 @@ save_artifacts() {
mkdir -p $BASE/$ARTIFACTS
cp -r $TMPDIR/* $BASE/$ARTIFACTS/
echo | tee -a ${RBUILDLOG}
- local msg="Artifacts from this build have been preserved. They will be available for 72h only, so download them now.\n"
+ local msg="Artifacts from this build have been preserved. They will be available for 48h only, so download them now.\n"
msg="${msg}WARNING: You shouldn't trust packages downloaded from this host, they can contain malware or the worst of your fears, packaged nicely in debian format.\n"
msg="${msg}If you are not afraid facing your fears while helping the world by investigating reproducible build issues, you can download the artifacts from the following location: $URL\n"
printf "$msg" | tee -a $BUILDLOG
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 6a3cffee..84e1b836 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -305,13 +305,13 @@ if [ ! -z "$PSCALL" ] ; then
fi
-# remove artifacts older than 3 days
-echo "$(date -u) - Checking for artifacts older than 3 days."
-ARTIFACTS=$(find $BASE/artifacts/* -maxdepth 1 -type d -mtime +3 -exec ls -lad {} \; 2>/dev/null|| true)
+# remove artifacts older than 2 days
+echo "$(date -u) - Checking for artifacts older than 2 days."
+ARTIFACTS=$(find $BASE/artifacts/* -maxdepth 1 -type d -mtime +2 -exec ls -lad {} \; 2>/dev/null|| true)
if [ ! -z "$ARTIFACTS" ] ; then
echo
echo "Removed old artifacts:"
- find $BASE/artifacts/* -maxdepth 1 -type d -mtime +3 -exec rm -rv {} \;
+ find $BASE/artifacts/* -maxdepth 1 -type d -mtime +2 -exec rm -rv {} \;
echo
fi