[Qa-jenkins-scm] [jenkins.debian.net] 02/02: d-i: use a long-lived schroot session for those multiple commands

Mattia Rizzolo mattia at debian.org
Wed Apr 4 10:27:54 UTC 2018


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

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

commit e79606e6bc312d9d8b96a15eb1810747fa0c0fab
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Wed Apr 4 12:26:15 2018 +0200

    d-i: use a long-lived schroot session for those multiple commands
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 bin/d-i_manual.sh | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/bin/d-i_manual.sh b/bin/d-i_manual.sh
index bdb8098..b8c3c4d 100755
--- a/bin/d-i_manual.sh
+++ b/bin/d-i_manual.sh
@@ -1,6 +1,8 @@
 #!/bin/bash
+# vim: set noexpandtab:
 
 # Copyright 2012,2014 Holger Levsen <holger at layer-acht.org>
+#           © 2018 Mattia Rizzolo <mattia at debian.org>
 # released under the GPLv=2
 
 DEBUG=false
@@ -66,11 +68,14 @@ po2xml() {
 	# build-depends for the installation-guide package installed.
 	# The d-i_schroot-sid-create job creates it.
 	#
-	schroot --directory $BUILDDIR/manual -c chroot:jenkins-d-i-sid sh ./scripts/merge_xml en
-	schroot --directory $BUILDDIR/manual -c chroot:jenkins-d-i-sid sh ./scripts/update_pot
-	schroot --directory $BUILDDIR/manual -c chroot:jenkins-d-i-sid sh ./scripts/update_po $1
-	schroot --directory $BUILDDIR/manual -c chroot:jenkins-d-i-sid sh ./scripts/revert_pot
-	schroot --directory $BUILDDIR/manual -c chroot:jenkins-d-i-sid sh ./scripts/create_xml $1
+	local SESSION="d-i-manual-$RANDOM"
+	schroot --begin-session "--session-name=$SESSION" -c jenkins-d-i-sid
+	schroot --directory "$BUILDDIR/manual" --run-session -c "$SESSION" sh ./scripts/merge_xml en
+	schroot --directory "$BUILDDIR/manual" --run-session -c "$SESSION" sh ./scripts/update_pot
+	schroot --directory "$BUILDDIR/manual" --run-session -c "$SESSION" sh ./scripts/update_po $1
+	schroot --directory "$BUILDDIR/manual" --run-session -c "$SESSION" sh ./scripts/revert_pot
+	schroot --directory "$BUILDDIR/manual" --run-session -c "$SESSION" sh ./scripts/create_xml $1
+	schroot --end-session -c "$SESSION"
 }
 
 build_language() {

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