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

add check to see if file exists

parent 22b6bed4
Branches
Tags
No related merge requests found
...@@ -481,7 +481,7 @@ def build_interop_image_jobspec(language, tag=None): ...@@ -481,7 +481,7 @@ def build_interop_image_jobspec(language, tag=None):
# 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 # TODO(stanleycheung): find a more elegant way to do this
if language.safename == 'php': if language.safename == 'php' and os.path.exists('/var/local/.composer/auth.json'):
env['BUILD_INTEROP_DOCKER_EXTRA_ARGS'] = \ env['BUILD_INTEROP_DOCKER_EXTRA_ARGS'] = \
"-v /var/local/.composer/auth.json:/root/.composer/auth.json:ro" "-v /var/local/.composer/auth.json:/root/.composer/auth.json:ro"
build_job = jobset.JobSpec( build_job = jobset.JobSpec(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment