[Qa-jenkins-scm] [jenkins.debian.net] 01/01: chroot-run: export JENKINS_EXPORT_DIR also inside the chroot (i.e. bypass sudo)

Mattia Rizzolo mattia at debian.org
Thu May 18 01:38:32 UTC 2017


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 fb0f91ea2820a4dc311bd4dafc4977f947e45f2b
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Thu May 18 03:38:18 2017 +0200

    chroot-run: export JENKINS_EXPORT_DIR also inside the chroot (i.e. bypass sudo)
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 bin/chroot-run.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bin/chroot-run.sh b/bin/chroot-run.sh
index c26d3bb..abf70f3 100755
--- a/bin/chroot-run.sh
+++ b/bin/chroot-run.sh
@@ -175,6 +175,9 @@ if [ -f debian/control ] ; then
 fi
 EOF
 	fi
+	if [ "$EXPORTS_RESULTS" = "true" ]; then
+		echo "export JENKINS_EXPORTS_DIR=\"$JENKINS_EXPORTS_DIR\"" >> $CHROOT_TARGET/tmp/chroot-testrun
+	fi
 	echo "$*" >> $CHROOT_TARGET/tmp/chroot-testrun
 	chmod +x $CHROOT_TARGET/tmp/chroot-testrun
 	sudo chroot $CHROOT_TARGET /tmp/chroot-testrun

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