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

Multi-Branch Project Plugin can not sync branches using bitbucket ssh key

    Details

    • Similar Issues:

      Description

      Fetching freestyle project works correctly.

      Fetching particular multi-branch branch subproject works correctly:
      > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > git config remote.origin.url https://bitbucket.org/***.git # timeout=10
      Fetching upstream changes from https://bitbucket.org/***.git
      > git --version # timeout=10
      using .gitcredentials to set credentials
      ...

      Syncing branches does not work:
      Started by user admin
      Setting origin to https://bitbucket.org/***.git
      Fetching origin...
      hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: https://bitbucket.org/geeksoft_team/simplefx-front.git: not authorized
      at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:680)
      at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:174)
      at jenkins.scm.api.SCMSource.fetch(SCMSource.java:146)
      at jenkins.scm.api.SCMSource.retrieve(SCMSource.java:230)
      at jenkins.scm.api.SCMSource.fetch(SCMSource.java:175)
      at com.github.mjdetullio.jenkins.plugins.multibranch.AbstractMultiBranchProject.computeChildren(AbstractMultiBranchProject.java:583)
      at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157)
      at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Caused by: org.eclipse.jgit.api.errors.TransportException: https://bitbucket.org/geeksoft_team/simplefx-front.git: not authorized
      at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
      at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:678)
      ... 9 more
      Caused by: org.eclipse.jgit.errors.TransportException: https://bitbucket.org/***.git: not authorized
      at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:504)
      at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309)
      at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
      at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
      at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
      at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
      ... 10 more
      Finished: FAILURE

        Attachments

          Activity

          Hide
          mjdetullio Matthew DeTullio added a comment -

          Not a bug from what I can see, but may simply require troubleshooting. Try the jenkins-users mailing list.

          Also, the implementation for syncing branches will be changing in version 0.5

          Show
          mjdetullio Matthew DeTullio added a comment - Not a bug from what I can see, but may simply require troubleshooting. Try the jenkins-users mailing list. Also, the implementation for syncing branches will be changing in version 0.5

            People

            • Assignee:
              mjdetullio Matthew DeTullio
              Reporter:
              fantastory Roman Wieczorek
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: