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
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.ValidApiTokenNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected WebHookPayloadcreatePushNotification(net.sf.json.JSONObject payload) voidHelper for development without Dockerub integration.protected voidtrigger(org.kohsuke.stapler.StaplerResponse2 response, PushNotification pushNotification) Methods inherited from class org.jenkinsci.plugins.registry.notification.webhook.JSONWebHook
doIndex, doNotify, getDetails, getDisplayName, getDynamic, getIconFileName
-
Field Details
-
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.StaplerResponse2 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.StaplerResponse2 response, PushNotification pushNotification) throws IOException - Overrides:
triggerin classJSONWebHook- Throws:
IOException
-
createPushNotification
- Specified by:
createPushNotificationin classJSONWebHook
-
getUrlName
-