亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

構建報錯:The recommended git tool is: NONE

Started?by?user?rootRunning?as?SYSTEM
Building?remotely?on?TestEnv?in?workspace?/root/.jenkins/workspace/DeployOrder
The?recommended?git?tool?is:?NONE
using?credential?6d01249a-9773-4e97-b40b-5bab042e231c
?>??/usr/local/bin/git?rev-parse?--resolve-git-dir?/root/.jenkins/workspace/DeployOrder/order/.git?#?timeout=10
ERROR:?Workspace?has?a?.git?repository,?but?it?appears?to?be?corrupt.
hudson.plugins.git.GitException:?Error?performing?git?command:??/usr/local/bin/git?rev-parse?--resolve-git-dir?/root/.jenkins/workspace/DeployOrder/order/.git
	at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2679)
	at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2601)
	at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2597)
	at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1968)
	at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1980)
	at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl.hasGitRepo(CliGitAPIImpl.java:395)
	at?hudson.plugins.git.GitAPI.hasGitRepo(GitAPI.java:241)
	at?sun.reflect.NativeMethodAccessorImpl.invoke0(Native?Method)
	at?sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at?sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at?java.lang.reflect.Method.invoke(Method.java:498)
	at?hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:924)
	at?hudson.remoting.RemoteInvocationHandler$RPCRequest.call(Remo

我做了哪些排查


http://img1.sycdn.imooc.com//625d60970001915311200566.jpg

git 公鑰和私鑰配置是OK的


http://img1.sycdn.imooc.com//625d60eb0001d90311960566.jpg


【我做了哪些嘗試】?

????我按照這篇博客?https://www.cnblogs.com/panda-123/p/14456428.html?操作改成 main 不行


????

??我按照??https://stackoverflow.com/questions/8639501/jenkins-could-not-run-git?這篇提問中解決辦法嘗試


????http://img1.sycdn.imooc.com//625d61530001222220381084.jpg

這是我本地配置


http://img1.sycdn.imooc.com//625d629c0001a65021020738.jpg


這是我TestEnv 環境的


http://img1.sycdn.imooc.com//625d624d00011b7d11940212.jpg



這是我本地Mac

http://img1.sycdn.imooc.com//625d62d80001df2408160294.jpg



正在回答

1 回答

解決方案:你需要配置Git在服務器上的運行地址

具體可參考https://blog.csdn.net/weixin_40816738/article/details/90280863

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

構建報錯:The recommended git tool is: NONE

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號