詹金斯存储与ssh的集成(Jenkins stash integration with ssh)

编程入门 行业动态 更新时间:2024-10-28 20:20:21
金斯存储与ssh的集成(Jenkins stash integration with ssh)

我将不胜感激,如果有人能指出我如何设置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 :)

更多推荐

本文发布于:2023-08-07 13:53:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1464744.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:金斯   ssh   Jenkins   stash   integration

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!