jenkins部署代码时+refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: remote: Enumerating objects: 104, done.
时间: 2024-04-18 18:32:09 浏览: 221
这个输出结果显示了在 Jenkins 部署代码时执行的 Git 命令 "+refs/heads/*:refs/remotes/origin/*" 返回了状态码 128。stdout 中没有输出内容,而 stderr 中显示了一条信息 "remote: Enumerating objects: 104, done."。根据这个信息,命令执行了一个远程操作,正在枚举对象,总共有 104 个对象。
状态码 128 表示命令执行时发生了错误。根据你提供的信息,很难确定具体的错误原因。可能的原因包括网络连接问题、权限问题、仓库不存在等。建议你检查网络连接是否正常、确认 Jenkins 的权限足够执行该操作,并且确保远程仓库存在。
如果问题仍然存在,你可以提供更多的上下文信息,例如完整的命令执行输出、Jenkins 的配置或者其他相关信息,这样我可以更好地帮助你分析和解决问题。
相关问题
Fetching upstream changes from git@github. com:a792883583/treeHoleScore.git > /usr/bin/git --version # timeout=10 > git --version # 'git version 1.8.3.1' using GIT _ASKPASS to set credentials github > /usr/bin/git fetch --tags --progress git@github. com:a792883583/treeHoleScore.git +refs/heads/*:refs/remotes/origin/* # timeout=10 ERROR: Error fetching remote repo 'origin' hudson. plugins.git.GitException: Failed to fetch from git@github. com:a792883583/treeHoleScore.git at hudson. plugins . git .GitSCM. fetchFrom(GitSCM. java:1003) at hudson. plugins .git .GitSCM. retrieveChanges(GitSCM. java:1245) at hudson.plugins.git.GitsCM. checkout(GitSCM. java:1309) at hudson.scm. SCM. checkout(SCM. java:540) at hudson. mode1. AbstractProject . checkout(AbstractProject . java:1240) at hudson. model AbstractBuild$AbstractBuildExecution. def aultCheckout (AbstractBuild. java:649) at jenkins .scm. SCMCheckoutStrategy . checkout(SCMCheckoutStrategy . java:85) at hudson . model. AbstractBuild$AbstractBuildExecution. run(AbstractBuild. java:521) at hudson.model . Run. execute(Run. java:1900) at hudson.model. FreeSty1eBuild.run(FreeStyleBuild.java:44) at hudson. model. ResourceController . execute(ResourceController . java:101) at hudson. model. Executor .run(Executor. java:442) Caused by: hudson. plugins.git .GitException: Command "/usr/bin/git fetch --tags --progress git@github . com: a792883583/treeHoleScore.git +refs/heads/* :refs/remotes/origin/*" returned status code 128: stdout: stderr: Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. at org.jenkinsci .plugins.gitclient .CliGitAPIImp1.1aunchCommandIn(CliGitAPImp1.java:2734) at org.jenkinsci .plugins.gitclient .CliGitAPIImp1.1aunchCommandWithCredentials(CliGitAPIImpl.java:2111) at org.jenkinsci.plugins . gitclient .CliGitAPIImp1$1. execute(CliGitAPIImp1.java:623) at hudson.p1ugins . git .GitSCM. fetchFrom (GitSCM. java:1001) 11 more ERROR: Error fetching remote repo ' origin' Finished: FAILURE
"Fetching upstream changes from [email protected]:a792883583/treeHoleScore.git" 意思是从 "[email protected]:a792883583/treeHoleScore.git" 这个地址获取最新的更改。
"/usr/bin/git --version" 意思是在本地执行 "git" 命令,并使用 "--version" 选项来查看当前 Git 版本。
阅读全文
相关推荐














