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

Impossible to clone git repo

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • git-plugin
    • None
    • Jenkins: 1.607
      Git-Plugin: 2.3.5
      Jenkins Slave Type: JNLP

      I can't clone git repo on Jenkins Slave node via "ssh+git" protocol.
      Error:
      Building remotely on uk-world-jenk03 in workspace C:\Jenkins\workspace\project_win32
      > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > git config remote.origin.url git@gitlab.company.local:world/project.git # timeout=10
      Fetching upstream changes from git@gitlab.company.local:world/project.git
      > git --version # timeout=10
      using GIT_SSH to set credentials uk-world-jenk03
      > git -c core.askpass=true fetch --tags --progress git@gitlab.company.local:world/project.git +refs/heads/:refs/remotes/origin/
      ERROR: Error fetching remote repo 'origin'
      hudson.plugins.git.GitException: Failed to fetch from git@gitlab.company.local:world/project.git
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016)
      at org.jenkinsci.plugins.multiplescms.MultiSCM.checkout(MultiSCM.java:122)
      at hudson.scm.SCM.checkout(SCM.java:484)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1270)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:609)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:531)
      at hudson.model.Run.execute(Run.java:1741)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:374)
      Caused by: hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch --tags --progress git@gitlab.company.local:world/project.git +refs/heads/:refs/remotes/origin/" returned status code 128:
      stdout:
      stderr: plink: unknown option "-o"
      fatal: Could not read from remote repository.

      Please make sure you have the correct access rights
      and the repository exists.

      plink really don't have option "-o".

            ndeloof Nicolas De Loof
            undergreen Sergei Antipov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: