从 Jenkins Job 获取远程仓库‘origin’时出错,返回状态码为 143

从 Jenkins Job 获取远程仓库‘origin’时出错,返回状态码为 143

我使用的是 Jenkin 版本:2.138.2 和 git 版本:2.16.2。我曾经运行过一个 Jenkins 作业,它很久以前就运行良好。但现在不幸的是,由于 Jenkins 从属机器没有任何配置更改,签出过程停止并显示以下消息:

[管道] git

使用凭证从远程 Git 存储库获取更改

git rev-parse --is-inside-work-tree#超时=10

git 配置 remote.origin.urlhttps://远程仓库路径.git#超时=10

从以下位置获取上游更改https://远程仓库路径.git

git --version # 超时=10

使用 GIT_ASKPASS 设置账户凭据

git fetch--标签--进度https://远程仓库路径.git +refs/heads/:refs/remotes/原点/

10 分钟后,失败并出现以下异常:

错误:获取远程仓库‘origin’时出错 hudson.plugins.git.GitException:无法从中获取https://远程仓库路径.git 在 hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:894) 在 hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1161) 在 hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192) 在 org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120) 在 org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90) 在 org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77) 在org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 导致:hudson.plugins.git.GitException:命令“git fetch --tags --progresshttps://远程仓库路径.git +refs/heads/:refs/remotes/原点/“返回状态代码 143:stdout:stderr:remote:计数对象:1

远程:计数对象:152414
远程:计数对象:960513,完成。
远程:压缩对象:0% (1/184913)
远程:压缩对象:1% (1850/184913)
远程:压缩对象:2% (3699/184913)
远程:压缩对象:3% (5548/184913)
远程:压缩对象:4% (7397/184913)
远程:压缩对象:5% (9246/184913)

………………………………………………………………………………………………………………………………………..

在 org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2042) 在 org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1761) 在 org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$400(CliGitAPIImpl.java:72) 在 org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:442) 在 org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153) 在org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146) at hudson.remoting.UserRequest.perform(UserRequest.java:207) at hudson.remoting.UserRequest.perform(UserRequest.java:53) at hudson.remoting.Request$2.run(Request.java:358) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at hudson.remoting.Engine$1$1.run(Engine.java:98) ... 还有 1 个被抑制:hudson.remoting.Channel$CallSiteStackTrace:远程调用 JNLP4-connect 连接来自:63922 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741) at hudson.remoting.UserResponse.retrieve(UserRequest.java:389) at hudson.remoting.Channel.call(Channel.java:955) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146) 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 org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132) at com.sun.proxy.$Proxy85.execute(Unknown Source) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:892) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1161) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192) 在 org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:120) 在 org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:90) 在 org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:77) 在 org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) 在 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 在java.util.concurrent.FutureTask.run(FutureTask.java:266) 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 在 java.util.concurrent。ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ... 1 更多 [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // node [Pipeline] 管道结束 错误:获取远程存储库“origin”时出错 完成:失败

我尝试设置浅克隆、检出和克隆超时选项(Jenkins 文件以及作业配置页面)。还在网上查看了很多与 Jenkin 超时问题相关的帖子。但没有找到任何有效的解决方案。

尝试解决过去一周出现的问题。任何帮助都将不胜感激。

相关内容