Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55896

Jenkins is not triggering build on any pullrequest created in bitbucket repo

    XMLWordPrintable

Details

    Description

      I am using Bitbucket cloud service for repositories and Jenkins for builds. I am able to run my pipeline and trigger automatically when a new push chnages to a specified branch and have multiple jobs. E.g I have dev, stage, production environments for android builds. Whenever some one push to those branches in Bitbucket cloud, so jenkins is able to trigger build automatically against its branches. But I have another job in jenkins which is created for developers to test their code before merging it into other branch.  It is pr job which must execute when someone created any pull request then it should trigger build against it but it is not working.

      I have installed all the plugins mentioned above to fulfill my requirement but jenkins is not able to trigger build when someone created a pull request from any branch to any branch.

      Please suggest some configurations on jenkins side so that it will be able to trigger build when a new pr created or updated.

      Attachments

        Activity

          ok thats cool. But once question you still didn't answer, is it matter to see payload of pull request in jenkins logs or not? Because I am only receiving on push, so most probably the problem should be at Bitbucket end, or it is not like that?

          hassaancarry Hassaan Sohail added a comment - ok thats cool. But once question you still didn't answer, is it matter to see payload of pull request in jenkins logs or not? Because I am only receiving on push, so most probably the problem should be at Bitbucket end, or it is not like that?

          Yes, it matters... Actually I tested the payload you sent with I'm the mantainer of the  https://plugins.jenkins.io/bitbucket-push-and-pull-request and I can see it coming.

          But, in this case, you are using the Bitbucket Pull request Builder, so, you need to configure the logger to see the logs of this plugin.

          Sorry for the misunderstandment

          cdelmonte Christian Del Monte added a comment - Yes, it matters... Actually I tested the payload you sent with I'm the mantainer of the   https://plugins.jenkins.io/bitbucket-push-and-pull-request and I can see it coming. But, in this case, you are using the Bitbucket Pull request Builder, so, you need to configure the logger to see the logs of this plugin. Sorry for the misunderstandment

          cdelmonte I tried same your suggestion but it is not working. I am waiting from Bitbucket side if they answer because I am not receiving payload on pr but I am receiving on push.

          hassaancarry Hassaan Sohail added a comment - cdelmonte I tried same your suggestion but it is not working. I am waiting from Bitbucket side if they answer because I am not receiving payload on pr but I am receiving on push.

          cdelmonte great to see this fixed.

          macghriogair Claas Gunarson added a comment - cdelmonte great to see this fixed.
          jeankhoury jean added a comment -

          Any updates from Bitbucket side? I am facing the same issue, only receiving the payload on push and not receiving it on pull request.

          jeankhoury jean added a comment - Any updates from Bitbucket side? I am facing the same issue, only receiving the payload on push and not receiving it on pull request.

          People

            cdelmonte Christian Del Monte
            hassaancarry Hassaan Sohail
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: