From fb0f91ea2820a4dc311bd4dafc4977f947e45f2b Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Thu, 18 May 2017 03:38:18 +0200 Subject: chroot-run: export JENKINS_EXPORT_DIR also inside the chroot (i.e. bypass sudo) Signed-off-by: Mattia Rizzolo --- bin/chroot-run.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin/chroot-run.sh') diff --git a/bin/chroot-run.sh b/bin/chroot-run.sh index c26d3bb7..abf70f31 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 -- cgit v1.2.3-54-g00ecf