diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-10-16 19:42:33 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-10-16 19:47:49 +0200 |
commit | 0192d1df9a69ab11947f6c867f8e0bfcef23f14f (patch) | |
tree | 656260c0f5c559f046a9f86f562cb42b1d8f2af2 | |
parent | b25ebe1f3b1e1a9ef6e335ccf42118cb666c1f73 (diff) | |
download | jenkins.debian.net-0192d1df9a69ab11947f6c867f8e0bfcef23f14f.tar.xz |
reproducible arch: add very basic scheduler (currently still disabled)
-rwxr-xr-x | bin/reproducible_build_arch_pkg.sh | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/bin/reproducible_build_arch_pkg.sh b/bin/reproducible_build_arch_pkg.sh index b62a0780..e0534fd2 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" |