我将不胜感激,如果有人能指出我如何设置Jenkins for Stash repo,不需要webhooks或插件(我认为),它用于测试,我只想手动触发构建。 我使用stash repo URL ssh://git@stash.xxxxxx:xx / xx / xx.git使用我的存储凭据,但收到错误“stderr:主机密钥验证失败”。
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. "
最满意答案
在Jenkins主服务器上,您需要为jenkins用户(或jenkins进程的所有者)生成公钥:
ssh-keygen -t rsa (with no paraphrase)接下来,转到ssh文件夹〜/ .ssh并复制id_rsa.pub文件的内容。
使用Stash,进入相关的项目/设置/访问键。
粘贴您的公钥并选择读取或读/写访问权限。
它应该解决你的问题:)
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 :)
更多推荐
发布评论