0

I will appreciate if anyone can point me to how to setup Jenkins for Stash repo, no need for webhooks or plugins(I think), its for testing and I'll just like to manually trigger a build. I used stash repo URL ssh://git@stash.xxxxxx:xx/xx/xx.git with my stash credential but got error "stderr: Host key verification failed. "

Edpy
  • 13
  • 3

1 Answers1

0

On your Jenkins master, you need to generate a public key for the jenkins user (or the owner of the jenkins process):

ssh-keygen -t rsa (with no paraphrase)

Next, go to ssh folder ~/.ssh and copy the content of the id_rsa.pub file.

With Stash, go on the relevant project/settings/Access keys.

Paste your public key and choose read or read/write access.

It should solve your issue :)

Bruno Lavit
  • 10,184
  • 2
  • 32
  • 38
  • am using git plugin and its timing out after 10mins just like here: https://issues.jenkins-ci.org/browse/JENKINS-20445 do have any suggestion? – Edpy Jun 30 '15 at 19:11
  • 1
    From the Jenkins server, you must attempt a first SSH access on the Stash server with the terminal (just to add the Stash server in the list of the known hosts). – Bruno Lavit Jul 01 '15 at 07:20