[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible freebsd: use chflags to make files deletable again

Holger Levsen holger at moszumanska.debian.org
Thu Aug 27 08:18:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit ed6d629028bb467a858cdd5338b32e72d0cb57c4
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Aug 27 10:17:50 2015 +0200

    reproducible freebsd: use chflags to make files deletable again
---
 bin/reproducible_freebsd.sh                 | 2 +-
 hosts/freebsd-jenkins/usr/local/etc/sudoers | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh
index da3009c..ddc2185 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 ca84d41..d09b669 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, \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list