buildcomponent: handle builds without resource_key
This commit is contained in:
parent
d29c8d60c7
commit
cd1b003ca6
4 changed files with 20 additions and 6 deletions
|
@ -93,8 +93,10 @@ class BuildComponent(BaseComponent):
|
|||
self._build_failure('Could not load build job information', irbe)
|
||||
|
||||
base_image_information = {}
|
||||
buildpack_url = self.user_files.get_file_url(build_job.repo_build.resource_key,
|
||||
requires_cors=False)
|
||||
buildpack_url = ""
|
||||
if build_job.repo_build.resource_key is not None:
|
||||
buildpack_url = self.user_files.get_file_url(build_job.repo_build.resource_key,
|
||||
requires_cors=False)
|
||||
|
||||
# Add the pull robot information, if any.
|
||||
if build_job.pull_credentials:
|
||||
|
|
Reference in a new issue