java.lang.Object
org.jenkinsci.plugins.registry.notification.webhook.JSONWebHook
org.jenkinsci.plugins.registry.notification.webhook.dockerhub.DockerHubWebHook
All Implemented Interfaces:
ExtensionPoint, Action, ModelObject, RootAction, UnprotectedRootAction

@Extension public class DockerHubWebHook extends JSONWebHook
The terminal point for the DockerHub web hook. See Reference
  • Field Details

    • URL_NAME

      public static final String URL_NAME
      The namespace under Jenkins context path that this Action is bound to.
      See Also:
  • Constructor Details

    • DockerHubWebHook

      public DockerHubWebHook()
  • Method Details

    • doDebug

      public void doDebug(@QueryParameter(required=true) String image, org.kohsuke.stapler.StaplerResponse response) throws IOException
      Helper for development without Dockerub integration.
      Parameters:
      image - the docker image to trigger
      response - to send a redirect to
      Throws:
      IOException - if so
    • trigger

      protected void trigger(org.kohsuke.stapler.StaplerResponse response, PushNotification pushNotification) throws IOException
      Overrides:
      trigger in class JSONWebHook
      Throws:
      IOException
    • createPushNotification

      protected WebHookPayload createPushNotification(net.sf.json.JSONObject payload)
      Specified by:
      createPushNotification in class JSONWebHook
    • getUrlName

      public String getUrlName()