Maven Build 无法部署到 Javadoc 服务器:缺少 SSH known_hosts [英] Maven Build cannot deploy to Javadoc server: missing SSH known_hosts

查看:36
本文介绍了Maven Build 无法部署到 Javadoc 服务器:缺少 SSH known_hosts的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用 CloudBees Jenkins 运行 Maven 作业,但在尝试将 Javadoc 部署到我们的私有 Javadoc 服务器时构建失败.这是日志中的错误:

We are using CloudBees Jenkins to run a Maven job and the build is failing when it tries to deploy Javadoc to our private Javadoc server. This is the error in the logs:

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.

我想修改 m1.large 和 m1.small 节点上的 known_hosts 文件,但我不知道如何修改.

I would like to modify the known_hosts file on the m1.large and m1.small nodes but i don't know how.

只是想一想,我是否应该有一个预构建步骤来动态修改 known_hosts 文件?或者复制一个预先构建的 known_hosts 文件到 /private 目录?

Just thinking out loud, should I have a pre-build step that modifies the known_hosts file on the fly? Or perhaps copy a pre-built known_hosts file in the /private directory?

对不起,如果这是一个新手问题,但我是整个动态创建的构建机器"的新手......

Sorry if this is a newbie question, but I am new to this whole "dynamically created build machines"...

推荐答案

最安全的方法是使用您期望的值预先配置已知主机 - 为您要连接的服务器附加适当的行.

The most secure way is to preconfigure known hosts with the values you are expecting - appending the appropriate line for the server you're connecting to.

# 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

这篇关于Maven Build 无法部署到 Javadoc 服务器:缺少 SSH known_hosts的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆