[JIRA] [branch-api-plugin] (JENKINS-35565) multibranch project and git broken

6 views
Skip to first unread message

jenkins@fd.mytrap.de (JIRA)

unread,
Jun 10, 2016, 6:08:01 AM6/10/16
to jenkinsc...@googlegroups.com
Florian Doersch created an issue
 
Jenkins / Bug JENKINS-35565
multibranch project and git broken
Issue Type: Bug Bug
Assignee: stephenconnolly
Components: branch-api-plugin, git-plugin
Created: 2016/Jun/10 10:07 AM
Environment: debian, jenkins-2.8
Priority: Major Major
Reporter: Florian Doersch

Hi,

I try to create a pipeline project, but get always this error:

{{Started
Creating git repository in /var/lib/jenkins/caches/git-a2d04db821719ce9bac0f9be2f320f58
Setting origin to https://mygithost/repo.git
Fetching origin...

FATAL: Failed to recompute children of MyTestProject
hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: https://mygithost/repo.git: cannot open git-upload-pack
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.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:294)
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://mygithost/repo.git: cannot open git-upload-pack
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)
at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:678)
... 7 more
Caused by: org.eclipse.jgit.errors.TransportException: https://mygithost/repo.git: cannot open git-upload-pack
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:524)
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)
... 8 more
Caused by: java.net.ConnectException: Connection refused mygithost
at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:175)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:475)
... 13 more
Finished: FAILURE
}}

the (jenkins-)user can clone the repo via "git clone https://mygithost/repo.git" on the command line.

the ssl certifacte was added to the default truststore

If I try to use plain http, it still creates the above error.

Whats wrong in there?

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

jenkins@fd.mytrap.de (JIRA)

unread,
Jun 10, 2016, 6:09:02 AM6/10/16
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Jun 11, 2016, 10:55:01 AM6/11/16
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-35565
 
Re: multibranch project and git broken

It may be that you've not enabled JGit on your Jenkins installation.

From "Manage Jenkins", "Configure System" there is a button "Add Git". You may need to press that button and add JGit as a valid git implementation to your system.

jenkins@fd.mytrap.de (JIRA)

unread,
Jul 28, 2016, 6:49:02 AM7/28/16
to jenkinsc...@googlegroups.com
Florian Doersch updated an issue
Change By: Florian Doersch
Component/s: multi-branch-project-plugin
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

jenkins@fd.mytrap.de (JIRA)

unread,
Jul 28, 2016, 6:49:02 AM7/28/16
to jenkinsc...@googlegroups.com
Florian Doersch commented on Bug JENKINS-35565
 
Re: multibranch project and git broken

jgit is enabled, it seems its only a multi-branch-project bug: see https://issues.jenkins-ci.org/browse/JENKINS-35567

jglick@cloudbees.com (JIRA)

unread,
Aug 17, 2016, 3:17:13 PM8/17/16
to jenkinsc...@googlegroups.com
Jesse Glick assigned an issue to Unassigned
 

Wrong component.

Change By: Jesse Glick
Component/s: branch-api-plugin
Component/s: multi-branch-project-plugin
Labels: multibranch
Assignee: stephenconnolly

mark.earl.waite@gmail.com (JIRA)

unread,
Sep 2, 2016, 2:54:07 PM9/2/16
to jenkinsc...@googlegroups.com
Mark Waite resolved as Fixed
 

Included in git plugin 2.6.0, released 2 Sep 2016.

Change By: Mark Waite
Status: Open Resolved
Resolution: Fixed

mark.earl.waite@gmail.com (JIRA)

unread,
Oct 22, 2019, 9:33:30 PM10/22/19
to jenkinsc...@googlegroups.com
Mark Waite closed an issue as Fixed
Change By: Mark Waite
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages