[Qa-jenkins-scm] [jenkins.debian.net] 02/04: reproducible arch: implement simple locking so this script can run in parallel
Holger Levsen
holger at moszumanska.debian.org
Sun Oct 18 16:07:34 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 87ea4ff1ddf0d8333f65b2a193f2aac058e2ca24
Author: Holger Levsen <holger at layer-acht.org>
Date: Sun Oct 18 18:02:52 2015 +0200
reproducible arch: implement simple locking so this script can run in parallel
---
bin/reproducible_build_arch_pkg.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bin/reproducible_build_arch_pkg.sh b/bin/reproducible_build_arch_pkg.sh
index ed45880..fd01cd4 100755
--- a/bin/reproducible_build_arch_pkg.sh
+++ b/bin/reproducible_build_arch_pkg.sh
@@ -185,6 +185,9 @@ for PKG in $PACKAGES ; do
if [ ! -d $BASE/archlinux/$PKG ] || [ ! -z $(find $BASE/archlinux/ -name $PKG -mtime +6) ] ; then
SRCPACKAGE=$PKG
echo "Building $PKG now..."
+ # very simple locking…
+ mkdir -p $BASE/archlinux/$PKG
+ touch $BASE/archlinux/$PKG
break
fi
done
@@ -214,13 +217,11 @@ if [ ! -z "$(ls $TMPDIR/b1/$SRCPACKAGE/*.pkg.tar.xz 2>/dev/null|| true)" ] ; the
call_diffoscope $SRCPACKAGE $ARTIFACT
# publish page
if [ -f $TMPDIR/$SRCPACKAGE/$ARTIFACT.html ] ; then
- mkdir -p $BASE/archlinux/$SRCPACKAGE/
cp $TMPDIR/$SRCPACKAGE/$ARTIFACT.html $BASE/archlinux/$SRCPACKAGE/
fi
done
fi
# publish logs
-mkdir -p $BASE/archlinux/$SRCPACKAGE/
cd $TMPDIR/b1/$SRCPACKAGE
cp build1.log $BASE/archlinux/$SRCPACKAGE/
[ ! -f $TMPDIR/b2/$SRCPACKAGE/build2.log ] || cp $TMPDIR/b2/$SRCPACKAGE/build2.log $BASE/archlinux/$SRCPACKAGE/
--
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