Class DockerHubWebHook
- 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jenkinsci.plugins.registry.notification.webhook.JSONWebHook
JSONWebHook.ValidApiToken
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description DockerHubWebHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WebHookPayload
createPushNotification(net.sf.json.JSONObject payload)
void
doDebug(String image, org.kohsuke.stapler.StaplerResponse response)
Helper for development without Dockerub integration.String
getUrlName()
protected void
trigger(org.kohsuke.stapler.StaplerResponse response, PushNotification pushNotification)
-
Methods inherited from class org.jenkinsci.plugins.registry.notification.webhook.JSONWebHook
doIndex, doNotify, getDetails, getDisplayName, getDynamic, getIconFileName
-
-
-
-
Field Detail
-
URL_NAME
public static final String URL_NAME
The namespace under Jenkins context path that this Action is bound to.- See Also:
- Constant Field Values
-
-
Method Detail
-
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 triggerresponse
- 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 classJSONWebHook
- Throws:
IOException
-
createPushNotification
protected WebHookPayload createPushNotification(net.sf.json.JSONObject payload)
- Specified by:
createPushNotification
in classJSONWebHook
-
getUrlName
public String getUrlName()
-
-