简体   繁体   English

无法将jenkins连接到bitbucket存储库

[英]Cant connect jenkins to bitbucket repository

I have installed Jenkins on a ubuntu server.I tried to integrate a bitbucket repository with Jenkins.but it gives an error appeared in the screenshot.I added the Jenkins server public key to bitbucket access key and also I have read write permission in bitbucket.Can some point out a solution? 我已经在ubuntu服务器上安装了Jenkins,我试图将Bitbucket存储库与Jenkins集成,但是在屏幕截图中却出现了错误。我将Jenkins服务器公钥添加到bitbucket访问密钥中,并且我已经在bitbucket中拥有读写权限。有人可以指出解决方案吗?

在此处输入图片说明

You need to add the SSH host key in your known_host file on the jenkins server: 您需要在jenkins服务器上的known_host文件中添加SSH主机密钥:

 jenkins@jenkins_host $ ssh-keyscan -H bitbucket.com >> ~/.ssh/known_hosts

You can also just try to ssh into bitbucket.com from the jenkins server and then accept the ssh host key. 您也可以尝试从jenkins服务器ssh进入bitbucket.com,然后接受ssh主机密钥。

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

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