Skip to content
Snippets Groups Projects
Commit d82efd87 authored by Stanley Cheung's avatar Stanley Cheung
Browse files

use HOME env var

parent 31cb8668
No related branches found
No related tags found
No related merge requests found
...@@ -535,10 +535,10 @@ def build_interop_image_jobspec(language, tag=None): ...@@ -535,10 +535,10 @@ def build_interop_image_jobspec(language, tag=None):
env['TTY_FLAG'] = '-t' env['TTY_FLAG'] = '-t'
# This env variable is used to get around the github rate limit # This env variable is used to get around the github rate limit
# error when running the PHP `composer install` command # error when running the PHP `composer install` command
# TODO(stanleycheung): find a more elegant way to do this host_file = '%s/.composer/auth.json' % os.environ['HOME']
if language.safename == 'php' and os.path.exists('/home/jenkins/.composer/auth.json'): if language.safename == 'php' and os.path.exists(host_file):
env['BUILD_INTEROP_DOCKER_EXTRA_ARGS'] = \ env['BUILD_INTEROP_DOCKER_EXTRA_ARGS'] = \
'-v /home/jenkins/.composer/auth.json:/root/.composer/auth.json:ro' '-v %s:/root/.composer/auth.json:ro' % host_file
build_job = jobset.JobSpec( build_job = jobset.JobSpec(
cmdline=['tools/jenkins/build_interop_image.sh'], cmdline=['tools/jenkins/build_interop_image.sh'],
environ=env, environ=env,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment