[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible arch: add very basic scheduler (currently still disabled)
Holger Levsen
holger at moszumanska.debian.org
Fri Oct 16 17:52:07 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 0192d1df9a69ab11947f6c867f8e0bfcef23f14f
Author: Holger Levsen <holger at layer-acht.org>
Date: Fri Oct 16 19:42:33 2015 +0200
reproducible arch: add very basic scheduler (currently still disabled)
---
bin/reproducible_build_arch_pkg.sh | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/bin/reproducible_build_arch_pkg.sh b/bin/reproducible_build_arch_pkg.sh
index b62a078..e0534fd 100755
--- a/bin/reproducible_build_arch_pkg.sh
+++ b/bin/reproducible_build_arch_pkg.sh
@@ -154,7 +154,27 @@ fi
#
# main - only used in master-mode
#
-SRCPACKAGE=sudo
+# first, we need to choose a package…
+SESSION="arch-scheduler-$RANDOM"
+schroot --begin-session --session-name=$SESSION -c jenkins-reproducible-arch
+PACKAGES="$(schroot --run-session -c $SESSION --directory /var/abs/core -- ls -1|sort -R|xargs echo)"
+schroot --end-session -c $SESSION
+SRCPACKAGE=""
+for PKG in $PACKAGES ; do
+ if [ ! -f $BASE/archlinux/$PKG.html ] ; then
+ SRCPACKAGE=$PKG
+ echo "Would build $PKG now but let's continue testing with sudo…"
+ SRCPACKAGE="sudo"
+ break
+ fi
+done
+if [ -z $SRCPACKAGE ] ; then
+ echo "No package found to be build, sleeping 30m."
+ sleep 30m
+ exec /srv/jenkins/bin/abort.sh
+ exit 0
+fi
+# build package twice
build_rebuild
# run diffoscope on the results
TIMEOUT="30m"
--
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