Class BitbucketSCMSourcePushHookReceiver

    • Constructor Detail

      • BitbucketSCMSourcePushHookReceiver

        public BitbucketSCMSourcePushHookReceiver()
    • Method Detail

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