测试人社区

pipeline git拉取代码时出现error: index-pack died of signal 15 fatal: index-pack failed

pipeline git拉取代码时出现错误error: index-pack died of signal 15
fatal: index-pack failed

Receiving objects:  25% (46/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  26% (48/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  27% (50/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  28% (51/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  29% (53/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  30% (55/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  31% (57/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  32% (59/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  33% (61/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  34% (62/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  35% (64/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  36% (66/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  37% (68/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  38% (70/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  39% (71/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  40% (73/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  41% (75/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  42% (77/182), 12.00 KiB | 6.00 KiB/s   
Receiving objects:  42% (78/182), 20.00 KiB | 0 bytes/s   
Receiving objects:  43% (79/182), 20.00 KiB | 0 bytes/s   
Receiving objects:  43% (80/182), 28.00 KiB | 0 bytes/s   
Receiving objects:  43% (80/182), 36.00 KiB | 0 bytes/s   
error: index-pack died of signal 15
fatal: index-pack failed

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2051)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:573)
	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)
	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:154)
	at hudson.remoting.UserRequest.perform(UserRequest.java:211)
	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
	at hudson.remoting.Request$2.run(Request.java:375)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
	... 4 more
	Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to MyNewNode
		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
		at hudson.remoting.Channel.call(Channel.java:1001)
		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.$Proxy81.execute(Unknown Source)
		at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:953)
		at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1191)
		at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1251)
		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:125)
		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93)
		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80)
		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
		... 4 more
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: Error fetching remote repo 'origin'
Finished: FAILURE

我查了说是拉取GitHub上代码超时超过了Jenkins默认的十分钟,所以报错了,但我这个代码并不大呀,就几兆为啥还会拉取这么久,而且我之前拉取代码的时候并未出现超时的情况,最长也才五分钟,另外pipeline应该在哪里设置这个超时时间啊?或者有没有什么更好的解决办法

该错误是因为当前clone文件夹的属性为“只读”,无法写入。
解决方案:将文件夹属性设置为可读可写。