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

Merging on BitBucket doesn't work after upgrade of BitBucket from 6.3 to 7.7

    XMLWordPrintable

Details

    • Bug
    • Status: Reopened (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • Red Hat Enterprise Linux Server release 7.8
      Java 1.8.0_202-b08
      Jenkins 2.263.3
      Stash Pullrequest Builder Plugin 1.17

    Description

      After upgrade of BitBucket from 6.3 to 7.7 merging on BitBucket no longer works:

       

      Cloning the remote Git repository
      Cloning repository https://XXX.git
       > git init /XXX # timeout=10
      Fetching upstream changes from https://XXX.git
       > git --version # timeout=10
       > git --version # 'git version 1.8.3.1'
      using GIT_ASKPASS to set credentials Technical user for tools accessing XXX in XXX
       > git fetch --tags --progress https://XXX.git +refs/heads/*:refs/remotes/origin/* # timeout=10
       > git config remote.origin.url https://XXX.git # timeout=10
       > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
       > git config remote.origin.url https://XXX.git # timeout=10
      Fetching upstream changes from https://XXX.git
      using GIT_ASKPASS to set credentials XXX
       > git fetch --tags --progress https://XXX.git +refs/heads/*:refs/remotes/origin/* +refs/pull-requests/*:refs/remotes/origin/pr/* # timeout=10
       > git rev-parse refs/remotes/origin/pr/10050/merge^{commit} # timeout=10
       > git rev-parse origin/pr/10050/merge^{commit} # timeout=10
      ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

      Local merging works.

       

       

      Attachments

        Issue Links

          Activity

            jbochenski Jakub Bochenski added a comment - See JENKINS-63802

            Could you please elaborate a little more? Documentation for this plugin (https://plugins.jenkins.io/stash-pullrequest-builder/#documentation) instructs to use this branch specifier: origin/pr/${pullRequestId}/merge.

            But with recent versions of Bitbucket this specifier doesn't work any more.

            Either this plugin or it's documentation is outdated.

            mkochano Michał Kochanowicz added a comment - Could you please elaborate a little more? Documentation for this plugin ( https://plugins.jenkins.io/stash-pullrequest-builder/#documentation ) instructs to use this branch specifier: origin/pr/${pullRequestId}/merge . But with recent versions of Bitbucket this specifier doesn't work any more. Either this plugin or it's documentation is outdated.

            PRs to update the documentation are welcome

            jbochenski Jakub Bochenski added a comment - PRs to update the documentation are welcome

            In case this is useful: the refspecs got removed in 7.x versions without notice since they were never supported https://community.atlassian.com/t5/Bitbucket-questions/Re-Difference-of-refs-pull-requests-lt-ID-gt-merge-and-refs/qaq-p/775578/comment-id/26251#M26251

            You probably want to use e.g. `${sourceBranch}` to checkout the branch directly instead

            jbochenski Jakub Bochenski added a comment - In case this is useful: the refspecs got removed in 7.x versions without notice since they were never supported https://community.atlassian.com/t5/Bitbucket-questions/Re-Difference-of-refs-pull-requests-lt-ID-gt-merge-and-refs/qaq-p/775578/comment-id/26251#M26251 You probably want to use e.g. `${sourceBranch}` to checkout the branch directly instead

            People

              jbochenski Jakub Bochenski
              mkochano Michał Kochanowicz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: