[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible arch: configure http_proxy for root and jenkins user via .bashrc

Holger Levsen holger at moszumanska.debian.org
Sat Oct 17 02:02:08 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 9d391174901cee1a0d3546c59fafc372bf695b3b
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Oct 17 04:01:16 2015 +0200

    reproducible arch: configure http_proxy for root and jenkins user via .bashrc
---
 bin/reproducible_arch_schroot_setup.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_arch_schroot_setup.sh b/bin/reproducible_arch_schroot_setup.sh
index 87fb4dc..7fdc34c 100755
--- a/bin/reproducible_arch_schroot_setup.sh
+++ b/bin/reproducible_arch_schroot_setup.sh
@@ -60,14 +60,18 @@ USERCMD="schroot --directory /tmp -c source:jenkins-reproducible-arch -u jenkins
 # configure pacman + abs
 $ROOTCMD pacman-key --init
 $ROOTCMD pacman-key --populate archlinux
-echo 'Server = http://mirror.one.com/archlinux/$repo/os/$arch' | sudo tee -a $SCHROOT_BASE/$TARGET/etc/pacman.d/mirrorlist
+echo 'Server = http://mirror.one.com/archlinux/$repo/os/$arch' | tee -a $SCHROOT_BASE/$TARGET/etc/pacman.d/mirrorlist
 $ROOTCMD pacman -Syu --noconfirm
 $ROOTCMD pacman -S --noconfirm base-devel devtools abs
 $ROOTCMD abs core extra
 
+# configure root user
+echo "export http_proxy=$http_proxy" | tee -a $SCHROOT_BASE/$TARGET/root/.bashrc
+
 # configure jenkins user
 $ROOTCMD mkdir /var/lib/jenkins
-$ROOTCMD chown jenkins:jenkins /var/lib/jenkins
+echo "export http_proxy=$http_proxy" | tee -a $SCHROOT_BASE/$TARGET/var/lib/jenkins/.bashrc
+$ROOTCMD chown -R jenkins:jenkins /var/lib/jenkins
 $USERCMD gpg --check-trustdb # first run will create ~/.gnupg/gpg.conf
 $USERCMD gpg --recv-keys 0x091AB856069AAA1C
 

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