More than 1 year has passed since last update.

ERROR: Error fetching remote repo 'origin'

Started by user anonymous
Building in workspace /var/lib/jenkins/workspace/WebDriverTest
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url # timeout=10
Fetching upstream changes from
 > git --version # timeout=10
using GIT_SSH to set credentials 
 > git fetch --tags --progress +refs/heads/*:refs/remotes/origin/* # timeout=30
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from
    at hudson.plugins.git.GitSCM.fetchFrom(
    at hudson.plugins.git.GitSCM.retrieveChanges(
    at hudson.plugins.git.GitSCM.checkout(
    at hudson.scm.SCM.checkout(
    at hudson.model.AbstractProject.checkout(
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(
    at jenkins.scm.SCMCheckoutStrategy.checkout(
    at hudson.model.AbstractBuild$
    at hudson.model.Run.execute(
    at hudson.model.ResourceController.execute(
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stderr: Permission denied (publickey).
fatal: The remote end hung up unexpectedly

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(
    at hudson.plugins.git.GitSCM.fetchFrom(
    ... 11 more
ERROR: Error fetching remote repo 'origin'
Finished: FAILURE



/root/.ssh 配下の鍵を/var/lib/jenkins/.ssh 配下にコピー

[root@tk2-408-45235 /]# ls -la /var/lib/jenkins/.ssh/
total 20
drwxr-xr-x  2 jenkins root    4096 Nov 30 19:50 .
drwxr-xr-x 15 jenkins jenkins 4096 Nov 30 19:50 ..
-rw-------  1 jenkins jenkins 1743 Nov 30 19:50 id_rsa
-rw-r--r--  1 jenkins jenkins  416 Nov 30 19:50
-rw-r--r--  1 jenkins jenkins 1199 Nov 30 15:43 known_hosts