summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-27 10:17:50 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-27 10:17:50 +0200
commited6d629028bb467a858cdd5338b32e72d0cb57c4 (patch)
tree59984821ae61889f17ae356368b45ff82f56ac03
parent598ecd4864e40d7be41e8adc823b46cdc4fe07c6 (diff)
downloadjenkins.debian.net-ed6d629028bb467a858cdd5338b32e72d0cb57c4.tar.xz
reproducible freebsd: use chflags to make files deletable again
-rwxr-xr-xbin/reproducible_freebsd.sh2
-rw-r--r--hosts/freebsd-jenkins/usr/local/etc/sudoers1
2 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh
index da3009c7..ddc2185d 100755
--- a/bin/reproducible_freebsd.sh
+++ b/bin/reproducible_freebsd.sh
@@ -31,7 +31,7 @@ save_freebsd_results(){
$RSSH "sudo find $TMPDIR -newer $TMPDIR -exec touch -d '$DUMMY_DATE' {} \;"
$RSSH "sudo find $TMPDIR -print0 | LC_ALL=C sort -z | sudo tar --null -T - --no-recursion -cJf $TMPDIR.tar.xz"
$RSCP:$TMPDIR.tar.xz $TMPDIR/$RUN
- $RSSH "sudo rm -r $TMPDIR $TMPDIR.tar.xz ; mkdir $TMPDIR"
+ $RSSH "sudo chflags -R noschg $TMPDIR ; sudo rm -r $TMPDIR $TMPDIR.tar.xz ; mkdir $TMPDIR"
}
#
diff --git a/hosts/freebsd-jenkins/usr/local/etc/sudoers b/hosts/freebsd-jenkins/usr/local/etc/sudoers
index ca84d418..d09b6696 100644
--- a/hosts/freebsd-jenkins/usr/local/etc/sudoers
+++ b/hosts/freebsd-jenkins/usr/local/etc/sudoers
@@ -100,6 +100,7 @@ jenkins ALL= NOPASSWD: /usr/bin/make -j ? buildworld, \
/bin/rm -r /usr/src /usr/obj, \
/bin/rm -r /usr/obj, \
/bin/rm -r /srv/reproducible-results/* /srv/reproducible-results/*.tar.xz, \
+ /bin/chflags -R noschg /srv/reproducible-results/*, \
/bin/mkdir /usr/obj, \
/bin/mkdir /usr/src /usr/obj, \
/usr/sbin/chown jenkins /usr/src /usr/obj, \