diff --git a/buildman/jobutil/buildjob.py b/buildman/jobutil/buildjob.py index 63d544790..d5514a958 100644 --- a/buildman/jobutil/buildjob.py +++ b/buildman/jobutil/buildjob.py @@ -62,9 +62,8 @@ class BuildJob(object): # For each cache comment, find a child image that matches the command. for cache_command in cache_commands: - print current_image.docker_image_id - - current_image = model.find_child_image(repository, current_image, cache_command) + full_command = '["/bin/sh", "-c", "%s"]' % cache_command + current_image = model.find_child_image(repository, current_image, full_command) if current_image is None: return None