bitbucket-push-and-pull-request-plugin
bitbucket-push-and-pull-request-plugin copied to clipboard
Triggering build works but Jenkins does not decline PR on failed build
After making a PR on bitbucket, the plugin successfully starts a new build on Jenkins. After the build fails, the PR should be declined because I have ticked the box that says "Let Jenkins decline the pull request on BitBucket if the build fails".
The log shows that the webhook is working from bitbucket and then shows the payload that was received by Jenkins. Then it shows the following...
Nov 04, 2022 11:29:56 PM FINE io.jenkins.plugins.bitbucketpushandpullrequest.observer.BitBucketPPRObserverFactory
Add BitBucketPPRPullRequestCloudObserver for {}
Nov 04, 2022 11:29:56 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.processor.BitBucketPPRPayloadProcessorFactory createProcessor
Create BitBucketPPRPullRequestCloudPayloadProcessor
Nov 04, 2022 11:29:56 PM FINE io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRJobProbe
Trigger not set
Nov 04, 2022 11:29:56 PM FINE io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRJobProbe
Trigger not set
Nov 04, 2022 11:29:56 PM FINE io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRJobProbe
Trigger not set
And it repeats "Trigger not set" many many times.
I have stored my OAuth consumer key as Secret Text, and selected it as the Credentials.
What more can I try?