Hi,

I am going round in circles trying to track down what is causing Jenkins 
giving the following error:



Started by user neils
Building remotely on Project_BA (project) in workspace c:\BuildAgent\
workspace\Project_BA QA Test 1
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url g...@codebasehq.com:company/project/repo.git # 
timeout=10
Fetching upstream changes from g...@codebasehq.com:company/project/repo.git
 > git --version # timeout=10
using GIT_ASKPASS to set credentials 
 > git fetch --tags --progress g...@codebasehq.com:company/project/repo.git +
refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from 
g...@codebasehq.com:company/project/repo.git
 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:797)
 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1051)
 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1082)
 at hudson.scm.SCM.checkout(SCM.java:495)
 at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
 at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
 at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
 at hudson.model.Run.execute(Run.java:1720)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
 at hudson.model.ResourceController.execute(ResourceController.java:98)
 at hudson.model.Executor.run(Executor.java:401)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags 
--progress g...@codebasehq.com:company/project/repo.git 
+refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: Host key verification failed.
fatal: Could not read from remote repository.


When using the Jenkins CI credentials I get the expected
jenkins@sgpjenkins:~/tmp/palintestvero$ git fetch --tags --progress 
g...@codebasehq.com:company/project/repo.git + refs/heads
/*:refs/remotes/origin/*
>From codebasehq.com:company/project/repo
 * branch            HEAD       -> FETCH_HEAD


I can also successfully pull projects from the codebasehq servers.

I must be missing something really obvious, but can't spot what.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/75e3f384-9cf1-411b-ab01-8eaf3d38de9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to