Issue Type: Bug Bug
Affects Versions: current
Assignee: Nicolas De Loof
Components: git
Created: 09/Sep/14 7:55 AM
Description:

Projects are stored in stash and accessed via ssh.

When editing the project I get red text ;
Failed to connect to repository : Command "git ls-remote -h ssh://[email protected]:7999/hi/helloworld.git HEAD" returned status code 128:
stdout:
stderr: Permission denied (publickey).
fatal: The remote end hung up unexpectedly

The selected user has password protected credentials added.

When I first created this project it worked fine, but there have been a number of updates over the past week or so during which time the project wasn't run. I know it worked on whatever version was in the repositories on 1st September.

Trying to build the project, I get the following :

Started by user Administrator
Building in workspace /var/lib/jenkins/jobs/HelloWorld/workspace
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url ssh://[email protected]:7999/hi/helloworld.git # timeout=10
Fetching upstream changes from ssh://[email protected]:7999/hi/helloworld.git
> git --version # timeout=10
using GIT_SSH to set credentials jenkins
> git fetch --tags --progress ssh://[email protected]:7999/hi/helloworld.git +refs/heads/:refs/remotes/origin/
FATAL: Failed to fetch from ssh://[email protected]:7999/hi/helloworld.git
hudson.plugins.git.GitException: Failed to fetch from ssh://[email protected]:7999/hi/helloworld.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:627)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:865)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:890)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1253)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
at hudson.model.Run.execute(Run.java:1745)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress ssh://[email protected]:7999/hi/helloworld.git +refs/heads/:refs/remotes/origin/" returned status code 128:
stdout:
stderr: Permission denied (publickey).
fatal: The remote end hung up unexpectedly

at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:625)
... 10 more

Environment: Debian (stable), installed via repositories.
Project: Jenkins
Labels: git
Priority: Major Major
Reporter: Andy Ruddock
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to