[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: maintenance: check for files with bad permissions (!=644) and chmod them. currently unknown the cause of these bad perms (only for very few files

Holger Levsen holger at moszumanska.debian.org
Thu Apr 9 15:35:03 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 ef2d4975ae9b7572a777faea97fec4f5e5a63903
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Wed Apr 8 22:36:21 2015 +0200

    reproducible: maintenance: check for files with bad permissions (!=644) and chmod them. currently unknown the cause of these bad perms (only for very few files
---
 bin/reproducible_maintenance.sh | 11 +++++++++++
 logparse/reproducible.rules     |  1 +
 2 files changed, 12 insertions(+)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index efdd998..01c5f88 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -218,6 +218,17 @@ if [ ! -z "$ARTIFACTS" ] ; then
 	echo
 fi
 
+# find + chmod files with bad permissions
+BADPERMS=$(find /var/lib/jenkins/userContent/{buildinfo,dbd,rbuild,artifacts,unstable,experimental,testing,rb-pkg} ! -perm 644 -type f)
+if [ ! -x "$BADPERMS" ] ; then
+    DIRTY=true
+    echo
+    echo "Warning: Found files with bad permissions (!=644):"
+    echo "Please fix permission manually"
+    echo "$BADPERMS" | xargs echo chmod -v 644
+    echo
+fi
+
 if ! $DIRTY ; then
 	echo "Everything seems to be fine."
 	echo
diff --git a/logparse/reproducible.rules b/logparse/reproducible.rules
index 7c83ce3..50c4691 100644
--- a/logparse/reproducible.rules
+++ b/logparse/reproducible.rules
@@ -8,6 +8,7 @@ warning /Warning: old temp directories found in .+/
 warning /Warning: lock .+ still exists, exiting./
 warning /Warning: processes found which should not be there/
 warning /Warning: packages found where the build was started more than 24h ago:/
+warning /Warning: Found files with bad permissions.+/
 warning /Warning: .+ could not be fully removed./
 warning /Warning: could not download.+/
 warning /Warning: the following failed builds have been found/

-- 
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