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

Multibranch Pipeline with git uses jgit, but should use git installation that is configured

    Details

    • Similar Issues:

      Description

      When I create Multibranch Pipeline and add a git source (which requires a private key to authenticate) branch indexing doesn't work and throws following exception:

      java.lang.IllegalStateException: Cannot open session, connection is not authenticated.
      	at com.trilead.ssh2.Connection.openSession(Connection.java:1127)
      	at org.jenkinsci.plugins.gitclient.trilead.TrileadSession.exec(TrileadSession.java:32)
      	at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:262)
      	at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
      	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)
      	at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:672)
      	at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:171)
      	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:146)
      	at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:296)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:151)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:110)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      

      It looks like jgit is used by default, but I don't have it in "Manage Jenkins" I have only command line git, which should be used.

        Attachments

          Issue Links

            Activity

            krzyk krzyk created issue -
            mjdetullio Matthew DeTullio made changes -
            Field Original Value New Value
            Component/s workflow-plugin [ 18820 ]
            Component/s multi-branch-project-plugin [ 21127 ]
            mjdetullio Matthew DeTullio made changes -
            Assignee Matthew DeTullio [ mjdetullio ] Jesse Glick [ jglick ]
            jglick Jesse Glick made changes -
            Component/s git-plugin [ 15543 ]
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Labels multibranch workflow
            jcechace Jakub Cechacek made changes -
            Assignee Jesse Glick [ jglick ] Jakub Cechacek [ jcechace ]
            jcechace Jakub Cechacek made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jcechace Jakub Cechacek made changes -
            Remote Link This issue links to "Github PR (Web Link)" [ 14641 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 169995 ] JNJira + In-Review [ 185709 ]
            markewaite Mark Waite made changes -
            Link This issue is related to JENKINS-36958 [ JENKINS-36958 ]
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-37297 [ JENKINS-37297 ]
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-35567 [ JENKINS-35567 ]
            abayer Andrew Bayer made changes -
            Labels multibranch workflow multibranch pipeline workflow
            abayer Andrew Bayer made changes -
            Labels multibranch pipeline workflow multibranch pipeline
            markewaite Mark Waite made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]

              People

              • Assignee:
                jcechace Jakub Cechacek
                Reporter:
                krzyk krzyk
              • Votes:
                6 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: