持续集成环境(git + gitlab + jenkins + pipeline + maven + harbor + docker + k8s)之前都是ok的,突然就报错了:
Cloning the remote Git repository Cloning repository [email protected]: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 permitted at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources/annotations: Operation not permitted at 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 Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources: Operation not permitted at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: Operation not permitted at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: Operation not permitted at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile: Operation not permitted at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile: Operation not permitted at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin: Operation not permitted at 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 Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status: Operation not permitted at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-archiver/pom.properties: Operation not permitted at 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 workspace at 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:4754 at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/classes: Operation not permitted at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources/annotations: Operation not permitted at 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 Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources: Operation not permitted at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: Operation not permitted at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: Operation not permitted at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile: Operation not permitted at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile: Operation not permitted at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin: Operation not permitted at 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 Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status: Operation not permitted at 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 more Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-archiver/pom.properties: Operation not permitted at 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目录
标签:git,java,nio,GitException,hudson,util,PathRemover,io,jenkins From: https://www.cnblogs.com/uncleyong/p/17838934.html