Jenkins You‘re using ‘Known hosts file‘,known_hosts file does not exist
Jenkins环境构建时产生报错:
using GIT_SSH to set credentials ssh
Verifying host key using known hosts file
You’re using ‘Known hosts file’ strategy to verify ssh host keys, but your known_hosts file does not exist, please go to ‘Manage Jenkins’ -> ‘Security’ -> ‘Git Host Key Verification Configuration’ and configure host key verification.
.> git fetch --tags --force --progress – git@codeup.aliyun.com:667e204e71a0b/xjd/learning.git +refs/heads/:refs/remotes/origin/ # timeout=10
ERROR: Error fetching remote repo ‘origin’
hudson.plugins.git.GitException: Failed to fetch from git@codeup.aliyun.com:667e204e2f23b7ceb8971a0b/xjd/learning_teacher.git
解决:参考这篇文章可排查问题
https://blog.csdn.net/admin_233/article/details/143422549