致命:在';上发生fsync错误;。git/objects/pack/tmp_idx_XXXX';:拒绝许可

致命:在';上发生fsync错误;。git/objects/pack/tmp_idx_XXXX';:拒绝许可,git,jenkins,github,jenkins-pipeline,Git,Jenkins,Github,Jenkins Pipeline,使用SCM中的Jenkins管道脚本以及git URL和凭据,但在生成后出现错误 致命:“.git/objects/pack/tmp_idx_9TRDF9”上的fsync错误:权限被拒绝 致命:索引包失败 [BFA] Scanning build for known causes... [BFA] No failure causes found [BFA] Done. 0s hudson.plugins.git.GitException: Command "git fetch --tags --

使用SCM中的Jenkins管道脚本以及git URL和凭据,但在生成后出现错误

致命:“.git/objects/pack/tmp_idx_9TRDF9”上的fsync错误:权限被拒绝 致命:索引包失败

[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
hudson.plugins.git.GitException: Command "git fetch --tags --progress origin +refs/heads/d11-packer:refs/remotes/origin/d11-packer --prune" returned status code 128:
stdout: 
stderr: remote: Enumerating objects: 65, done.        
remote: Counting objects:   1% (1/65)           
remote: Counting objects:   3% (2/65)           
remote: Counting objects:   4% (3/65) 
,
,

fatal: fsync error on '.git/objects/pack/tmp_idx_9TRDF9': Permission denied
fatal: index-pack failed

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2042)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1761)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$400(CliGitAPIImpl.java:72)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:442)
    at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:351)
    at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:198)
    at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:174)
    at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)
    at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
    at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE

尝试
sudo chown-R$USER.git
。如果试图在root时添加或提交更改,则某些.git文件的所有者可能已设置为root。

请尝试
sudo chown-R$USER.git
。如果您试图在root时添加或提交更改,则某些.git文件的所有者可能已设置为root