Comments (14)
Similarities with this issue?
#99
from bitbucket-push-and-pull-request-plugin.
Discovered this article and realized that as of Bitbucket 5.4, native build triggering webhooks are supported, so I no longer need this plugin:
Got that working pretty quickly. We can probably close this ticket unless someone feels highly motivated to get this fixed.
from bitbucket-push-and-pull-request-plugin.
A bit more detail:
I do also have the older Bitbucket plugin installed, but I took the necessary workaround step to change the hook URL for this to be bitbucket-ppp-hook
The sending of the information over that webhook appears to be working fine, it's some issue with when it gets received on the Jenkins side and gets dropped for some reason.
from bitbucket-push-and-pull-request-plugin.
My URL looks like this on the bitbucket side for the webhook:
https://[my jenkins server]/bitbucket-ppp-hook/
from bitbucket-push-and-pull-request-plugin.
If I look at the Bitbucket Push and Pull request Hook log in the view of the branch job that should have run, I see:
from bitbucket-push-and-pull-request-plugin.
And this is how I've configured the URL
from bitbucket-push-and-pull-request-plugin.
In my Multibranch Pipeline configuration I have these checked:
from bitbucket-push-and-pull-request-plugin.
I realized that the manage hooks option is not selected for this Bitbucket endpoint. Should it be?
from bitbucket-push-and-pull-request-plugin.
I added some more logging to the logger and I can see that it's receiving the payload correctly:
Dec 12, 2023 12:21:26 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.receiver.BitBucketPPRHookReceiver doIndex
Received POST request over Bitbucket hook
Dec 12, 2023 12:21:26 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.receiver.BitBucketPPRHookReceiver
the payload is: {"actor":{"name":"[REDACTED]","emailAddress":"[REDACTED]","id":"2553","displayName":"[REDACTED]","active":true,"slug":"[REDACTED]","type":"NORMAL","links":{"clone":[],"self":[{"href":"http://[REDACTED]"}]}},"repository":{"slug":"[REDACTED]","id":"125","name":"[REDACTED]"scmId":"git","state":"AVAILABLE","statusMessage":"Available","forkable":true,"project":{"key":"DEV","id":"103","name":"[REDACTED]","links":{"clone":[],"self":[{"href":"http://[REDACTED]"}]},"public":false,"type":"NORMAL"},"links":{"clone":[{"href":"ssh://git@[REDACTED].git","name":"ssh"},{"href":"http://[REDACTED].git","name":"http"}],"self":[{"href":"http://[REDACTED]"}]},"public":false},"changes":[{"ref":{"id":"refs/heads/jenkins-prod-test1","displayId":"jenkins-prod-test1","type":"BRANCH"},"refId":"refs/heads/jenkins-prod-test1","fromHash":"[REDACTED]","toHash":"[REDACTED]","type":"UPDATE"}]}
Dec 12, 2023 12:21:26 PM FINE io.jenkins.plugins.bitbucketpushandpullrequest.observer.BitBucketPPRObserverFactory
Add BitBucketPPRPushServerObserver for {}
Dec 12, 2023 12:21:26 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.action.BitBucketPPRServerRepositoryAction
Received commit hook notification from server for destination branch: jenkins-prod-test1
Dec 12, 2023 12:21:26 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.action.BitBucketPPRServerRepositoryAction
Received commit hook type from server: BRANCH
from bitbucket-push-and-pull-request-plugin.
One of the classes I've specified in my logger is io.jenkins.plugins.bitbucketpushandpullrequest.filter.repository.BitBucketPPRServerRepositoryPushActionFilter
But I'm not seeing any messages related to that one when I check the logger log. Does that mean the trigger is just not firing at all for some reason?
from bitbucket-push-and-pull-request-plugin.
@mpschmitt thank you,
Happy to read that you have found a solution!
Iām going to analyze the problem. I hope, I can replicate it, that is the hard part.
from bitbucket-push-and-pull-request-plugin.
Hi team, I have the same issue and can assist with troubleshooting if required. I'd prefer to use this plugin because I want access to the payload to do interesting things with the pipeline.
Having the exact same behaviour. When configured using multibranch pipeline, the jobs don't fire but when configured as a single pipeline job on the same Jenkins server, it all works fine.
Interestingly, when you "View Configuration" on the branch, it has the configuration for the Push Pull Request plugin (under build triggers) all properly configured but the jobs just never actually get fired.
I'm just using the default webhook configuration with the BitBucket plugin disabled however, I do have the BitBucket Branch Source plugin enabled which is required for BlueOcean so cannot disable if it's required to be.
from bitbucket-push-and-pull-request-plugin.
Related Issues (20)
- NullPointerException occurs when webhook triggered HOT 4
- "Single triggered job" option. How does it work? HOT 7
- Pipeline executed from wrong branch when using Lightweight checkout HOT 4
- "Single triggered job" and local option "Single trigged repository" HOT 3
- NullPointerException: BitBucketPPRAction.getType() is null HOT 3
- can't get trigger on push to two branches
- [Request] Documentation on Bitbucket Cloud integration for build status propagation back to BB-cloud HOT 2
- bitbucket-push-and-pull-request-plugin stopped working with Bitbucket cloud HOT 8
- bitBucketPPRPluginConfig configuration as code
- Can not checkout merge commit in Jenkins Pipeline HOT 2
- Error making a pull request and the webhook it is trigger
- Upgrading from 2.8.3 to 3.0.2
- Cloud push trigger missing credentials when checking for changes
- ERROR: Could not find credentials entry with ID 'SOME_PIPELINE_PARAM_ID'
- Empty env BITBUCKET_PULL_REQUEST_LINK
- Build Status not propagating to Bitbucket On Prem HOT 3
- what is the issue am getting "trigger not set" HOT 1
- Some log messages don't print their parameters anymore HOT 1
- Add examples to help / readme HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitbucket-push-and-pull-request-plugin.