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.ValidApiToken
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected WebHookPayload
createPushNotification
(net.sf.json.JSONObject payload) void
Helper for development without Dockerub integration.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 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.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
- Specified by:
createPushNotification
in classJSONWebHook
-
getUrlName
-