Add a temporary HACK to work around bad path logic in trigger

This commit is contained in:
Joseph Schorr 2017-03-07 23:34:39 -05:00
parent 873cda982e
commit 59cd244837

View file

@ -126,6 +126,14 @@ class BuildComponent(BaseComponent):
subdir, dockerfile_name = os.path.split(build_config.get('build_subdir', '/Dockerfile'))
# HACK HACK HACK HACK HACK HACK HACK
# TODO: FIX THIS in the database and then turn the split back on.
if dockerfile_name.find('Dockerfile') < 0:
# This is a *HACK* for the broken path handling. To be fixed ASAP.
subdir = build_config.get('build_subdir') or '/'
dockerfile_name = 'Dockerfile'
# /HACK HACK HACK HACK HACK HACK HACK
build_arguments = {
'build_package': build_job.get_build_package_url(self.user_files),
'sub_directory': subdir,