我们正在使用CloudBees Jenkins运行Maven作业,并且在尝试将Javadoc部署到我们的私有Javadoc服务器时,构建失败。这是日志中的错误:
The authenticity of host 'javadoc.foo.com' can't be established. RSA key fingerprint is 3e:69:41:8a:ec:d1:4c:d9:75:ef:7d:71:b7:7d:51:d0. Are you sure you want to continue connecting? (yes/no): The authenticity of host 'javadoc.foo.com' can't be established.
我想known_hosts在m1.large和m1.small节点上修改文件,但我不知道如何。
known_hosts
只是想一想,我是否应该有一个预构建步骤可以known_hosts即时修改文件?还是known_hosts在/private目录中复制一个预先构建的文件?
/private
抱歉,这是一个新手问题,但是对于整个“动态创建的构建机器”我还是陌生的…
最安全的方法是使用您期望的值来预配置已知主机-为要连接的服务器添加适当的行。
# Run this manually: ssh -o UserKnownHostsFile=foo javadoc.foo.com # Take that file and put it in your private DAV share, and then ssh -o UserKnownHostsFile=/private/<account>/known_hosts javadoc.foo.com