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

No Bitbucket Notification when PR Build is triggered

    Details

    • Similar Issues:

      Description

      I'm using Jenkins 2.159 and bitbucket-branch-source-plugin 2.4.0.

      My Multibranch Pipeline Configuration is as followed:

      • Discover Branches - Exclude branches that are also filed as PRs
      • Discover pull requests from origin - The current pull reequest version
      • Periodically scan multibranch pipeline triggers - Interval 2 minutes

      Let's assume I push a Feature branch to Bitbucket which causes the BRANCH to be build.
      When I create a Pull-Request on this branch the PR is also triggered as Job on Jenkins running on the same Git Commit ID.

      This leads on Bitbucket Side to 2 "Job Status" Informations

      The Problem now is, that the BRANCH Job is being disabled on Jenkins and NO Bitbucket Notification is send anymore - The Status remains on "In Progress".

      Now we can't merge our Pull Requests as Bitbucket says, that there is still a Build in Progress.

      This can only be solved by pushing another change to the branch so that the PR Job is getting retriggered.

        Attachments

          Activity

          Hide
          forster_ch Christoph Forster added a comment -

          When configuring "Discover Branches - All Braches" the problem can be avoided.
          Nevertheless it's not the desired behaviour (as I don't want branches to be listed when a PR exists)

          Show
          forster_ch Christoph Forster added a comment - When configuring "Discover Branches - All Braches" the problem can be avoided. Nevertheless it's not the desired behaviour (as I don't want branches to be listed when a PR exists)
          Hide
          quas Jakub Pawlinski added a comment -

          We are affected as well.

          I intentionally postponed 2.4.0 update as we are using bitbucket/stash 4.5.2, but this problem exists on 2.2.16.

          It wasn't happening in 2.2.13 that we upgraded from.

          Thanks for workaround.

          Show
          quas Jakub Pawlinski added a comment - We are affected as well. I intentionally postponed 2.4.0 update as we are using bitbucket/stash 4.5.2, but this problem exists on 2.2.16. It wasn't happening in 2.2.13 that we upgraded from. Thanks for workaround.
          Hide
          tkucorporate Thomas Kuchel added a comment - - edited

          We were also running into this issue and can't merge PRs if the PR was created before the branch build has finished.
          In addition, all builds of branches created from this PR branch are also added to this build list of the PR which totally crashes our development process (might link to https://issues.jenkins-ci.org/browse/JENKINS-55404).

           

          We are using Jenkins 2.164.1 and BB branch source plugin 2.4.2 and BB 6.1.2 with "Webhook to Jenkins for Bitbucket Server" Plugin

          Thank you in advance for the fix!

          Show
          tkucorporate Thomas Kuchel added a comment - - edited We were also running into this issue and can't merge PRs if the PR was created before the branch build has finished. In addition , all builds of branches created from this PR branch are also added to this build list of the PR which totally crashes our development process (might link to https://issues.jenkins-ci.org/browse/JENKINS-55404 ).   We are using Jenkins 2.164.1 and BB branch source plugin 2.4.2 and BB 6.1.2 with "Webhook to Jenkins for Bitbucket Server" Plugin Thank you in advance for the fix!
          Hide
          tkucorporate Thomas Kuchel added a comment -

          I think this has been fixed with v2.4.4 release. PR was https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/172

          Show
          tkucorporate Thomas Kuchel added a comment - I think this has been fixed with v2.4.4 release. PR was https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/172
          Hide
          quas Jakub Pawlinski added a comment -

          Oh, I added similar issue to https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/189 will update to v2.4.4 and confirm, thanks

          Show
          quas Jakub Pawlinski added a comment - Oh, I added similar issue to  https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/189  will update to v2.4.4 and confirm, thanks
          Hide
          bseebeck Björn Seebeck added a comment -

          We get the same issue after updating from 2.2.12 to v2.4.4 of BB branch source plugin

          Show
          bseebeck Björn Seebeck added a comment - We get the same issue after updating from 2.2.12 to v2.4.4 of BB branch source plugin
          Hide
          forster_ch Christoph Forster added a comment - - edited

          Tested with Jenkins 2.174, BB 5.9.1 and bitbucket-branch-source-plugin 2.4.4 - works as expected.

          Show
          forster_ch Christoph Forster added a comment - - edited Tested with Jenkins 2.174, BB 5.9.1 and bitbucket-branch-source-plugin 2.4.4 - works as expected.
          Hide
          bseebeck Björn Seebeck added a comment -

          Our Jenkins is at 2.164.2, BB 5.9.1

          Show
          bseebeck Björn Seebeck added a comment - Our Jenkins is at  2.164.2 , BB 5.9.1

            People

            • Assignee:
              Unassigned
              Reporter:
              forster_ch Christoph Forster
            • Votes:
              6 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: