Uploaded image for project: 'Webhook To Jenkins for Bitbucket'
  1. JENK-291

Branches parameter is incorrect if cross-repository PR is created

    Details

    • Type: Bug
    • Status: Done
    • Priority: Lowest
    • Resolution: Done
    • Labels:
      None
    • Sprint:
      Development Sprint 22, Development Sprint 23

      Description

      Steps to reproduce

      1. fork repository
      2. create new branch
      3. commit changes to that branch
      4. make PR to original repository
      5. enable web hook for forked repository
      6. add some new changes
      7. plugin will make request with branches parameter that includes only PR ref (and branch ref)

      Example:

      'http://localhost:8080/jenkins/git/notifyCommit?url=http://localhost:7990/bitbucket/scm/~user/rep_1.git&branches=refs/pull-requests/4/from&sha1=4c6d97b43b9f8e40e12adc159e1b8538350f07e5
      

      Expected behavior: PR is not required here - only original branch name

        Attachments

          Activity

            People

            • Assignee:
              andrey1 Andrey Levchenko
              Reporter:
              andrey1 Andrey Levchenko
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Upwork Job Post