Class BitbucketSCMSourcePushHookReceiver
java.lang.Object
hudson.security.csrf.CrumbExclusion
com.cloudbees.jenkins.plugins.bitbucket.hooks.BitbucketSCMSourcePushHookReceiver
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,RootAction,UnprotectedRootAction
@Extension
public class BitbucketSCMSourcePushHookReceiver
extends CrumbExclusion
implements UnprotectedRootAction
Process Bitbucket push and pull requests creations/updates hooks.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponsedoNotify(org.kohsuke.stapler.StaplerRequest2 req) Receives Bitbucket push notifications.booleanprocess(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, jakarta.servlet.FilterChain chain) Methods inherited from class hudson.security.csrf.CrumbExclusion
all, process
-
Field Details
-
FULL_PATH
- See Also:
-
-
Constructor Details
-
BitbucketSCMSourcePushHookReceiver
public BitbucketSCMSourcePushHookReceiver()
-
-
Method Details
-
process
public boolean process(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Overrides:
processin classCrumbExclusion- Throws:
IOExceptionjakarta.servlet.ServletException
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
doNotify
public org.kohsuke.stapler.HttpResponse doNotify(org.kohsuke.stapler.StaplerRequest2 req) throws IOException Receives Bitbucket push notifications.- Parameters:
req- Stapler request. It contains the payload in the body content and a header param "X-Event-Key" pointing to the event type.- Returns:
- the HTTP response object
- Throws:
IOException- if there is any issue reading the HTTP content payload.
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-