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

Bitbucket Server Integration webhook marks branches as deleted in a multibranch project that is not using this plugin

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
       2.1.1

      Description

      I set up two multibranch projects in the same Jenkins instance. Both of them refer to the same repository in Bitbucket Server, but one of them is using Bitbucket Branch Source Plugin and the other is using Bitbucket Server Integration. Each of them has its own webhook in Bitbucket Server. The "Bitbucket Server trigger scan after push" option is checked only in the multibranch project that uses Bitbucket Server Integration.

      Now when I push commits to the repository, the webhooks correctly trigger a build in each multibranch project. However, the build using Bitbucket Branch Source Plugin fails: the multibranch project somehow believes that the branch has been deleted, so it does not clone the repository at all. If I click "Scan Multibranch Pipeline Now", then Jenkins realizes that the branch exists, and immediately builds it; but the next push will again mark the branch as deleted.

      If I disable the webhook that has been set by Bitbucket Server Integration, and push again, then Jenkins understands that the branch exists, and further pushes do not change that. Therefore, it seems that the webhook handler in Bitbucket Server Integration is messing up the branch in the multibranch project that is using Bitbucket Branch Source Plugin.

        Attachments

          Issue Links

            Activity

            kon Kalle Niemitalo created issue -
            kon Kalle Niemitalo made changes -
            Field Original Value New Value
            Summary Bitbucket Server Integration webhook breaks branches in a multibranch project that is not using this plugin Bitbucket Server Integration webhook marks branches as deleted in a multibranch project that is not using this plugin
            mhenschke_atlassian Martin Henschke made changes -
            Assignee Kristy Hughes [ khughes ]
            mhenschke_atlassian Martin Henschke made changes -
            Labels tracked-by-atlassian
            kon Kalle Niemitalo made changes -
            Link This issue relates to JENKINS-63815 [ JENKINS-63815 ]
            kon Kalle Niemitalo made changes -
            Released As  2.1.1
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
            kon Kalle Niemitalo made changes -
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              kon Kalle Niemitalo
              Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: