-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webhook not triggering #19
Comments
Could you provide the payload being sent by Bitbucket, please? |
Payload:
|
Hm, that's strange. After testing with the exact same payload on a local jenkins instance the job gets triggered indeed. Are you using version 1.5.0 of the plugin? (you can check at For further debugging: What do you mean by "there are no logs"? Have you checked the Jenkins system logs? Also, you could try to add a custom log recorder for |
I am using plugin version 1.5. Is there anything else you can think of to diagnose this? Is it possible that another plugin is consuming the payload (im not familiar with how jenkins plugins work) ? |
@chickenpie3 did you resolved your issue.. in my case also exactly facing the same thing.. when I used plugin when a change is pushed to bitbucket my job is triggering in a second.. |
Hi @chickenpie3 and @chris248570 |
@cdelmonte-zg but that Jenkins job is not using that plugin... is there any reason behind that.. eventhough job is not using that plugin ??.. |
@chris248570 also if the old Bitbucket plugin is only installed but never used in a job, it is always active. So, as soon as a payload is sent to the endpoint http://a-jenkins-server.xxx/bitbucket-hook/ , the old plugin will consume it before the Bitbucket Push And Pull Request Plugin, which will be not triggered. Obviously nothing happens, because the old Bitbucket plugin is not used in whatever job... |
@cdelmonte-zg thanks my job is triggering now..but the problem is after job completed my bitbucket Pullrequest page is not displaying the Builds.. build results is not displaying in the bitbucket.. |
@chris248570 Regarding your second question, if I understand it in the right way, this would be a new feature of the plugin. We opened a new ticket to integrate it. Thank you for your suggestion. If you mean something else, please open a new issue, following the instructions of the related template. Thanks. |
@chickenpie3 is this issue solved also for you? |
Hi, I was not able to make that plugin (1.6.0) work on my jenkins pipeline. I've even tried to manually configure a webhook on my bitbucket repo (which a step that is not necessary on github for example; there the setup of the webhook is automatically done): I set the webhook's address to Then, what happens is the following: upon PR creation, bitbucket's hook gets triggered: Even though the response is 200, nothing special happened in my Jenkins. I was e.g. expecting to see a triggered job --> nothing happened. Then, I tried to gather information on that and I clicked here (BitBucket Hook Log): and here's the feedback I got: Apparently, I must be missing a configuration somewhere. Can someone help me out? The request body is:
You can also find below the list of plugins installed on my jenkins:
I have jenkins version 2.164.2 |
Hi @zadigus , just two question:
For the logging, the link that you sent, is actually not working and it will be probably removed in the next release. |
I cant simply remove the existing bitbucket plugin as it will affect dozens of jobs. From what you say though, it makes sense that this is my problem. |
@cdelmonte-zg Regarding question 1.: I know it is working because I've already tested that configuration. Regarding question 2.: no, I haven't triggered the first job manually. Let me try to trigger it once and I'll post the result back here. |
Hmmm it is now working: the jenkins job gets triggered upon PR creation. Is there a way to get the jenkins job's result back to bitbucket's PR? |
I've disabled the previous bitbucket plugin and confirmed that jobs get triggered on PR and Push. But i have a different problem now. |
@zadigus I also asked the same questions this plugin will make it work in next features.. currently to make it work I am using other plugin which does for us.. @cdelmonte-zg and how can I set build name as PullrequestId what's the variable I can make build name as Pullrequestid... |
@chris248570 if I understand you properly my best option is to migrate my repos to github ... |
Hi @chris248570 did you try to see if what you need is already between the environment variables of Jenkins? |
@chickenpie3 For issue related to environment variables please open a new issue, I'm going to close the present one. |
Hi @chris248570 |
@chris248570 @chickenpie3 for env vars please use the new release bitbucket-push-and-pull-request-1.6.1 |
Webhook for pull requests or push are simply not triggering from Bitbucket cloud.
I can see in the Bitbucket webhook logs that the request is sent to jenkins.
I have previously tried a different Bitbucket Push plugin and it triggers properly so I know the webhook url is correct.
I have manually run the job once.
There are no logs that appear in the jenkins console!! Using Jenkins 2.164.1.
Any ideas?
The text was updated successfully, but these errors were encountered: