简体   繁体   English

Jenkins和Git由于id_rsa的密码短语而从bitbucket挂起同步

[英]Jenkins and Git hanging on sync from bitbucket due to passphrase for id_rsa

I'm pushing an ASP WebApi project to BitBucket. 我正在将ASP WebApi项目推到BitBucket。 I have Jenkins setup to watch the repository of BitBucket. 我有Jenkins安装程序来观看BitBucket的存储库。

When I trigger a build manually, it hangs for 10 minutes then times out. 当我手动触发构建时,它将挂起10分钟,然后超时。 If I log into my VM and run the command manually: 如果我登录到虚拟机并手动运行命令:

git.exe -c core.askpass=true fetch --tags --progress git@bitbucket.org:user/project.git +refs/heads/*:refs/remotes/origin/*

It then prompts me to enter a passphrase for key /c/Users/webmaster/.ssh/id_rsa 然后,它提示我输入密钥/c/Users/webmaster/.ssh/id_rsa的密码

I'm assuming this is why the build is hanging, since the process is is prompting for a password. 我假设这就是构建挂起的原因,因为该过程正在提示输入密码。

I've added the public rsa key to my bitbucket, but I'm sure I'm missing something simple. 我已经将公共rsa密钥添加到了我的位桶中,但是我确定我缺少一些简单的东西。 Any pointers? 有指针吗?

Have you tried to generate key with empty passphrase? 您是否尝试使用空密码生成密钥? It seems Jenkins doesn't support SSH keys which require a passphrase yet. 这似乎詹金斯不支持需要一个密码尚未SSH密钥。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM