diff --git a/endpoints/api/trigger.py b/endpoints/api/trigger.py index 9b0b1de64..564bbd618 100644 --- a/endpoints/api/trigger.py +++ b/endpoints/api/trigger.py @@ -373,6 +373,10 @@ class BuildTriggerAnalyze(RepositoryParamResource): 'status': 'error', 'message': rre.message } + except NotImplementedError: + return { + 'status': 'notimplemented', + } raise NotFound() diff --git a/endpoints/trigger.py b/endpoints/trigger.py index 01c5145aa..2a4fda5e3 100644 --- a/endpoints/trigger.py +++ b/endpoints/trigger.py @@ -66,14 +66,14 @@ class BuildTrigger(object): """ Returns the URL at which the Dockerfile for the trigger is found or None if none/not applicable. """ - return None + raise NotImplementedError def load_dockerfile_contents(self, auth_token, config): """ Loads the Dockerfile found for the trigger's config and returns them or None if none could be found/loaded. """ - return None + raise NotImplementedError def list_build_sources(self, auth_token): """ diff --git a/static/directives/setup-trigger-dialog.html b/static/directives/setup-trigger-dialog.html index d3fe653bb..87c921ece 100644 --- a/static/directives/setup-trigger-dialog.html +++ b/static/directives/setup-trigger-dialog.html @@ -35,11 +35,17 @@
+ For {{ TriggerService.getTitle(trigger.service) }} triggers, we are unable to determine dependencies automatically. + If the git repository being built depends on a private base image, you must manually select a robot account with the proper permissions. +
Because Dockerfiles may depend on other private images, you may need to use a robot account to build this repository.
Please select the credentials to use when pulling the base image: