身份验证失败:jenkins部署

时间:2012-04-12 12:56:31

标签: jenkins

我开始使用jenkins,我在部署项目时遇到身份验证问题。我不知道在哪里写凭证。

Authentication failed: The host was not known and was not accepted by the configuration

我在哪里可以写我的凭证?我在配置面板中没有看到这一点。非常感谢!

2 个答案:

答案 0 :(得分:1)

问题来自settings.xml文件(在.m2中),它没有相应的登录名和密码。

答案 1 :(得分:0)

如果您使用ssh密钥进行身份验证,则可以使用此类服务​​器部分:

<server>
 <id>repository-id</id>
   <username>john/username>
   <privateKey>/home/john/.ssh/id_rsa</privateKey>
</server>

你仍然可能在詹金斯遇到麻烦。您可能必须在交互模式下运行maven部署一次以接受例如RSA主机密钥。