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
-
Constructor Summary
-
Method Summary
Methods inherited from class hudson.security.csrf.CrumbExclusion
all
-
Field Details
-
FULL_PATH
- See Also:
-
-
Constructor Details
-
BitbucketSCMSourcePushHookReceiver
public BitbucketSCMSourcePushHookReceiver()
-
-
Method Details
-
process
public boolean process(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException - Specified by:
process
in classCrumbExclusion
- Throws:
IOException
javax.servlet.ServletException
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
doNotify
public org.kohsuke.stapler.HttpResponse doNotify(org.kohsuke.stapler.StaplerRequest 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:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-