You‘re using ‘Known hosts file‘ strategy to verify ssh host keys, but your known_hosts file does not

在这里插入图片描述
问题:
      提示known_hosts文件不存在,也就是说jenkins找不到这个文件,我也不知道为什么jenkins找不到这个文件。
处理:
      我按照内容提示直接把known_hosts的文件内容复制了一份,粘到了jenkins的安全全局设置里,就好了。
在这里插入图片描述
在这里插入图片描述

Started by user Fly Running as SYSTEM Building in workspace C:\ProgramData\Jenkins\.jenkins\workspace\ZrLog项目 The recommended git tool is: NONE using credential ca305872-f337-4105-ba2c-b97a40bbfb4e > git.exe rev-parse --resolve-git-dir C:\ProgramData\Jenkins\.jenkins\workspace\ZrLog项目\.git # timeout=10 Fetching changes from the remote Git repository > git.exe config remote.origin.url [email protected]:hu-jia-san-shao/zr-log.git # timeout=10 Fetching upstream changes from [email protected]:hu-jia-san-shao/zr-log.git > git.exe --version # timeout=10 > git --version # 'git version 2.48.1.windows.1' using GIT_SSH to set credentials 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.exe fetch --tags --force --progress -- [email protected]:hu-jia-san-shao/zr-log.git +refs/heads/*:refs/remotes/origin/* # timeout=10 ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from [email protected]:hu-jia-san-shao/zr-log.git at PluginClassLoader for git//hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999) at PluginClassLoader for git//hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1240) at PluginClassLoader for git//hudson.plugins.git.GitSCM._checkout(GitSCM.java:1311) at PluginClassLoader for git//hudson.plugins.git.GitSCM.checkout(GitSCM.java:1278) at hudson.scm.SCM.checkout(SCM.java:540) at hudson.model.AbstractProject.checkout(AbstractProject.java:1250) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:649) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:522) at hudson.model.Run.execute(Run.java:1833) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hud
最新发布
03-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值