-
Bug
-
Resolution: Not A Defect
-
Major
-
Debian (stable), installed via repositories.
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://git@stash.rainydayz.org: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://git@stash.rainydayz.org:7999/hi/helloworld.git # timeout=10
Fetching upstream changes from ssh://git@stash.rainydayz.org:7999/hi/helloworld.git
> git --version # timeout=10
using GIT_SSH to set credentials jenkins
> git fetch --tags --progress ssh://git@stash.rainydayz.org:7999/hi/helloworld.git +refs/heads/:refs/remotes/origin/
FATAL: Failed to fetch from ssh://git@stash.rainydayz.org:7999/hi/helloworld.git
hudson.plugins.git.GitException: Failed to fetch from ssh://git@stash.rainydayz.org: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://git@stash.rainydayz.org: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