持续集成失败:hudson.plugins.git.GitException: Failed to delete workspace

本文主要是介绍持续集成失败:hudson.plugins.git.GitException: Failed to delete workspace,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

持续集成环境(git + gitlab + jenkins + pipeline + maven + harbor + docker + k8s)之前都是ok的,突然就报错了:

Cloning the remote Git repository
Cloning repository git@192.168.117.180:qzcsbj/gift.git
ERROR: Failed to clean the workspace
jenkins.util.io.CompositeIOException: Unable to delete '/home/jenkins/agent/workspace/demo'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. (Discarded 4 additional exceptions)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:87)at hudson.Util.deleteContentsRecursive(Util.java:286)at hudson.Util.deleteContentsRecursive(Util.java:275)at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:788)at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:158)at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:151)at hudson.remoting.UserRequest.perform(UserRequest.java:212)at hudson.remoting.UserRequest.perform(UserRequest.java:54)at hudson.remoting.Request$2.run(Request.java:369)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.lambda$newThread$0(Engine.java:93)at java.lang.Thread.run(Thread.java:748)Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/classes: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources/annotations: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-archiver/pom.properties: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 more
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Failed to delete workspaceat org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:791)at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:158)at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:151)at hudson.remoting.UserRequest.perform(UserRequest.java:212)at hudson.remoting.UserRequest.perform(UserRequest.java:54)at hudson.remoting.Request$2.run(Request.java:369)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.lambda$newThread$0(Engine.java:93)at java.lang.Thread.run(Thread.java:748)Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 192.168.117.161/192.168.117.161:4754at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)at hudson.remoting.Channel.call(Channel.java:1000)at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:143)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:566)at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:129)at com.sun.proxy.$Proxy103.execute(Unknown Source)at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1226)at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1308)at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: jenkins.util.io.CompositeIOException: Unable to delete '/home/jenkins/agent/workspace/demo'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. (Discarded 4 additional exceptions)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:87)at hudson.Util.deleteContentsRecursive(Util.java:286)at hudson.Util.deleteContentsRecursive(Util.java:275)at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:788)... 11 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/classes: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources/annotations: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 moreSuppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-archiver/pom.properties: Operation not permittedat sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)... 14 more

 pipeline的agent配置中:

workspaceVolume hostPathWorkspaceVolume(hostPath: "/opt/workspace", readOnly: false)

说明:workspace的内容持久化到宿主机了,宿主机/opt/workspace/和slave的pod中/home/jenkins/agent/下内容是一样的

cd /opt/workspace/workspace/demo,清空target目录

再次构建

这篇关于持续集成失败:hudson.plugins.git.GitException: Failed to delete workspace的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/411669

相关文章

解决Nginx启动报错Job for nginx.service failed because the control process exited with error code问题

《解决Nginx启动报错Jobfornginx.servicefailedbecausethecontrolprocessexitedwitherrorcode问题》Nginx启... 目录一、报错如下二、解决原因三、解决方式总结一、报错如下Job for nginx.service failed bec

springboot2.1.3 hystrix集成及hystrix-dashboard监控详解

《springboot2.1.3hystrix集成及hystrix-dashboard监控详解》Hystrix是Netflix开源的微服务容错工具,通过线程池隔离和熔断机制防止服务崩溃,支持降级、监... 目录Hystrix是Netflix开源技术www.chinasem.cn栈中的又一员猛将Hystrix熔

MyBatis-Plus 与 Spring Boot 集成原理实战示例

《MyBatis-Plus与SpringBoot集成原理实战示例》MyBatis-Plus通过自动配置与核心组件集成SpringBoot实现零配置,提供分页、逻辑删除等插件化功能,增强MyBa... 目录 一、MyBATis-Plus 简介 二、集成方式(Spring Boot)1. 引入依赖 三、核心机制

SpringBoot集成P6Spy的实现示例

《SpringBoot集成P6Spy的实现示例》本文主要介绍了SpringBoot集成P6Spy的实现示例,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面... 目录本节目标P6Spy简介抛出问题集成P6Spy1. SpringBoot三板斧之加入依赖2. 修改

springboot项目中集成shiro+jwt完整实例代码

《springboot项目中集成shiro+jwt完整实例代码》本文详细介绍如何在项目中集成Shiro和JWT,实现用户登录校验、token携带及接口权限管理,涉及自定义Realm、ModularRe... 目录简介目的需要的jar集成过程1.配置shiro2.创建自定义Realm2.1 LoginReal

SpringBoot集成Shiro+JWT(Hutool)完整代码示例

《SpringBoot集成Shiro+JWT(Hutool)完整代码示例》ApacheShiro是一个强大且易用的Java安全框架,提供了认证、授权、加密和会话管理功能,在现代应用开发中,Shiro因... 目录一、背景介绍1.1 为什么使用Shiro?1.2 为什么需要双Token?二、技术栈组成三、环境

Java 与 LibreOffice 集成开发指南(环境搭建及代码示例)

《Java与LibreOffice集成开发指南(环境搭建及代码示例)》本文介绍Java与LibreOffice的集成方法,涵盖环境配置、API调用、文档转换、UNO桥接及REST接口等技术,提供... 目录1. 引言2. 环境搭建2.1 安装 LibreOffice2.2 配置 Java 开发环境2.3 配

解决Failed to get nested archive for entry BOOT-INF/lib/xxx.jar问题

《解决FailedtogetnestedarchiveforentryBOOT-INF/lib/xxx.jar问题》解决BOOT-INF/lib/xxx.jar替换异常需确保路径正确:解... 目录Failed to get nested archive for entry BOOT-INF/lib/xxx

SpringBoot集成EasyExcel实现百万级别的数据导入导出实践指南

《SpringBoot集成EasyExcel实现百万级别的数据导入导出实践指南》本文将基于开源项目springboot-easyexcel-batch进行解析与扩展,手把手教大家如何在SpringBo... 目录项目结构概览核心依赖百万级导出实战场景核心代码效果百万级导入实战场景监听器和Service(核心

Spring Boot集成/输出/日志级别控制/持久化开发实践

《SpringBoot集成/输出/日志级别控制/持久化开发实践》SpringBoot默认集成Logback,支持灵活日志级别配置(INFO/DEBUG等),输出包含时间戳、级别、类名等信息,并可通过... 目录一、日志概述1.1、Spring Boot日志简介1.2、日志框架与默认配置1.3、日志的核心作用