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

git notify commit bug when use credentials

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • git-plugin
    • None
    • JDK8 and git 2.1.1 git plugin 2.2.7 and jenkins 1.583

      using GIT_SSH to set credentials -
      > /usr/bin/git ls-remote -h ssh://git@****.git docker # timeout=10
      FATAL: hudson.plugins.git.GitException: Command "/usr/bin/git ls-remote -h ssh://git@****.git docker" returned status code 128:
      stdout:
      stderr: Permission denied (publickey).
      fatal: Could not read from remote repository.

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

      hudson.util.IOException2: hudson.plugins.git.GitException: Command "/usr/bin/git ls-remote -h ssh://git@****.git docker" returned status code 128:
      stdout:
      stderr: Permission denied (publickey).
      fatal: Could not read from remote repository.

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

      at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:475)
      at hudson.scm.SCM.poll(SCM.java:401)
      at hudson.model.AbstractProject._poll(AbstractProject.java:1429)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1332)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544)
      at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git ls-remote -h ssh://git@****.git docker" returned status code 128:
      stdout:
      stderr: Permission denied (publickey).
      fatal: Could not read from remote repository.

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

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1437)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1225)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1138)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1129)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:2059)
      at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:509)
      at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:473)
      ... 11 more
      Done. Took 73 ms
      No changes

            ndeloof Nicolas De Loof
            oyangch chenghong oyang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: