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.
  • Field Details

  • 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 class CrumbExclusion
      Throws:
      IOException
      javax.servlet.ServletException
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • 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

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject