Cannot Clone from Git/Stash [message #1723129] |
Thu, 11 February 2016 17:37  |
Eclipse User |
|
|
|
Hi,
We are trying to set up a job in Hudson that does a pull from a Git/Stash repository. I created an ssh key for the hudson user (had to set the it to have a shell as by default it doesn't) and copied the key to the Stash project's access keys. When I run the job, I get the error below. On the server, I manually did an ssh to the Stash server to ensure that it was added to the known_hosts file and ran the job again, but got the same error.
Can somebody help me setting up the server/job so that it can clone from Git/Stash?
Hudson 3.3.2
Hudson Git Plugin 2.2.14
Stash 3.5.1
Started by user myuser
Cleaning the workspace because project is configured to clean the workspace before each build.
Checkout:workspace / /var/lib/hudson/teams/MyTeam/jobs/MyTeam.MyProject/workspace - hudson.remoting.LocalChannel@22f26736
Using strategy: Default
Git Exe: /usr/bin/git
Checkout:workspace / /var/lib/hudson/teams/MyTeam/jobs/MyTeam.MyProject/workspace - hudson.remoting.LocalChannel@22f26736
Cloning the remote Git repository
Cloning repository origin
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Could not clone ssh://git@my.stash.net:7999/mru/myproject.git
at hudson.plugins.git.GitAPI.clone(GitAPI.java:306)
at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:1082)
at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:1024)
at hudson.FilePath.act(FilePath.java:793)
at hudson.FilePath.act(FilePath.java:775)
at hudson.plugins.git.GitSCM.gerRevisionToBuild(GitSCM.java:1024)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:793)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1558)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:607)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:518)
at hudson.model.Run.run(Run.java:1495)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:82)
at hudson.model.Executor.run(Executor.java:137)
Caused by: hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: ssh://git@my.stash.net:7999/project/myproject.git: UnknownHostKey: my.stash.net. RSA key fingerprint is 82:87:9f:ef:21:7b:60:9c:de:38:11:1f:54:11:a1:02
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.29258 seconds