buildserver: setup env vars using standard script

bash provides a standard file location for a script to be run when the
shell starts: /etc/profile.d/  This converts the scattered bits of code for
making ~/.bsenv into a single provisioning script to generate
/etc/profile.d/bsenv.sh, which gets automatically executed when bash starts
This commit is contained in:
Hans-Christoph Steiner 2016-06-15 13:09:57 +02:00
parent 721b3b79a6
commit e449d2f583
5 changed files with 23 additions and 13 deletions

View file

@ -388,7 +388,7 @@ def build_server(app, build, vcs, build_dir, output_dir, force):
if options.verbose:
cmdline += ' --verbose'
cmdline += " %s:%s" % (app.id, build.vercode)
chan.exec_command('bash -c ". ~/.bsenv && ' + cmdline + '"')
chan.exec_command('bash -c "' + cmdline + '"')
output = bytes()
while not chan.exit_status_ready():
while chan.recv_ready():