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

HTTPS URLs to Git repositories fail with 1.3.0

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • git-plugin
    • None

      After upgrading to 'Jenkins Git Plugin' version 1.3.0, my jobs that specify an HTTPS URL to GitHub fail to clone the repository; changing the URL to the Git protocol solves the issue. The error produced with an HTTPS URL is this:

      git version 1.7.9.5
      ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
      hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
      at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:212)
      at hudson.plugins.git.GitAPI.fetch(GitAPI.java:230)
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:793)
      at hudson.plugins.git.GitSCM.access$000(GitSCM.java:57)
      at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1018)
      at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942)
      at hudson.FilePath.act(FilePath.java:865)
      at hudson.FilePath.act(FilePath.java:838)
      at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:942)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1353)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588)
      at hudson.model.Run.execute(Run.java:1567)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:237)
      Caused by: org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
      at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:134)
      at org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:208)
      ... 17 more
      Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException: https://github.com/bloomberg/ci-slave-recipes: https://github.com/bloomberg/ci-slave-recipes/info/refs?service=git-upload-pack not found
      at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:465)
      at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:305)
      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:1104)
      at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
      ... 18 more
      ERROR: Could not fetch from any repository
      FATAL: Could not fetch from any repository
      hudson.plugins.git.GitException: Could not fetch from any repository
      at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1023)
      at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942)
      at hudson.FilePath.act(FilePath.java:865)
      at hudson.FilePath.act(FilePath.java:838)
      at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:942)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1353)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:683)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:588)
      at hudson.model.Run.execute(Run.java:1567)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:237)

            ndeloof Nicolas De Loof
            kpfleming Kevin Fleming
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: