身份验证失败:jenkins部署
我开始使用jenkins,在部署项目时,我遇到了身份验证问题。我不知道在哪里写凭据身份验证失败:jenkins部署,jenkins,Jenkins,我开始使用jenkins,在部署项目时,我遇到了身份验证问题。我不知道在哪里写凭据 Authentication failed: The host was not known and was not accepted by the configuration 我在哪里可以写我的证书?我在配置面板中看不到这一点。非常感谢 问题出现在settings.xml文件(in.m2)上,该文件没有相应的登录名和密码。如果使用ssh密钥进行身份验证,则可以使用如下服务器部分: <server>
Authentication failed: The host was not known and was not accepted by the configuration
我在哪里可以写我的证书?我在配置面板中看不到这一点。非常感谢 问题出现在settings.xml文件(in.m2)上,该文件没有相应的登录名和密码。如果使用ssh密钥进行身份验证,则可以使用如下服务器部分:
<server>
<id>repository-id</id>
<username>john/username>
<privateKey>/home/john/.ssh/id_rsa</privateKey>
</server>
存储库id
约翰/用户名>
/home/john/.ssh/id\u rsa
但你可能会在詹金斯遇到麻烦。您可能需要在交互模式下运行maven deploy一次,以接受例如RSA主机密钥 是的,我写了一个答案。问题是我需要在settings.xml中声明登录数据