Fix API exception in trigger setup due to invalid Dockerfile path
This commit is contained in:
parent
04c9b6568c
commit
a15abd3b5c
5 changed files with 10 additions and 4 deletions
|
@ -371,6 +371,9 @@ class GithubBuildTrigger(BuildTriggerHandler):
|
|||
raise RepositoryReadException(message)
|
||||
|
||||
path = self.get_dockerfile_path()
|
||||
if not path:
|
||||
return None
|
||||
|
||||
try:
|
||||
file_info = repo.get_file_contents(path)
|
||||
except GithubException as ghe:
|
||||
|
|
Reference in a new issue