When configuring Jenkins Bitbucket plugin to build "Both the current pull request revision and the pull request merged with the current target branch revision", the -head build starts successfully, but the -merge build fails when fetching the source from git. 

      I've attached both logs (head and merge), and simply redacted some sensitive information from them, like team name, repo name and branch name, and have surrounded it with <>.

      We're using Bitbucket Cloud.

          [JENKINS-49479] Bitbucket merge builds fail fetching git repo

          Tzach Solomon added a comment -

          apneves are you sure the plugin bitbucket-plugin is the correct one?

          Tzach Solomon added a comment - apneves are you sure the plugin bitbucket-plugin is the correct one?

          André Pacheco Neves added a comment - - edited

          hi tzach_solomon

          I think you're right - the correct plugin is in fact bitbucket-branch-source-plugin.

          I haven't touched this in a while now (2 years ) , but I've since tried again and it now appears to be working (bitbucket-branch-source-plugin 2.7.0). 

          Will close this issue.

          André Pacheco Neves added a comment - - edited hi tzach_solomon I think you're right - the correct plugin is in fact bitbucket-branch-source-plugin. I haven't touched this in a while now (2 years ) , but I've since tried again and it now appears to be working (bitbucket-branch-source-plugin 2.7.0).  Will close this issue.

          André Pacheco Neves added a comment - - edited

          Confirmed to be working with bitbucket-branch-source-plugin v2.7.0

          (Jenkins v2.222.1)

          André Pacheco Neves added a comment - - edited Confirmed to be working with bitbucket-branch-source-plugin v2.7.0 (Jenkins v2.222.1)

          Tzach Solomon added a comment -

          Thanks apneves and thanks contacting back

          Tzach Solomon added a comment - Thanks apneves and thanks contacting back

            Unassigned Unassigned
            apneves André Pacheco Neves
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: