当前位置: 首页 > news >正文

持续集成失败: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目录

再次构建

相关文章:

  • SpringBoot——数据访问
  • 解析生成式人工智能 | 它真的有这么强大吗?
  • 道路建设(最小生成树)
  • springboot+bootstrap+java农业电商服务商城系统_30249
  • flutter vscode gradle 配置
  • MATLAB常用绘图函数的使用
  • 完美解决k8s master节点无法ping node节点中的IP或Service NodePort的IP
  • windows搭建gitlab教程
  • PostgreSQL中所的锁
  • MQTT通信协议使用说明
  • 防雷接地+防雷工程施工综合方案
  • 最新红盟云卡个人自动发卡开源系统源码+全开源无加密+虚拟商品在线售卖平台
  • 4、FFmpeg命令行操作5
  • 无人驾驶相关硬件汇总
  • 如何将 Docsify 项目部署到 CentOS 系统的 Nginx 中
  • JS 中的深拷贝与浅拷贝
  • 「前端」从UglifyJSPlugin强制开启css压缩探究webpack插件运行机制
  • 【5+】跨webview多页面 触发事件(二)
  • 【Linux系统编程】快速查找errno错误码信息
  • 【刷算法】求1+2+3+...+n
  • 2017-09-12 前端日报
  • Android 控件背景颜色处理
  • Angularjs之国际化
  • - C#编程大幅提高OUTLOOK的邮件搜索能力!
  • Debian下无root权限使用Python访问Oracle
  • ES6之路之模块详解
  • GDB 调试 Mysql 实战(三)优先队列排序算法中的行记录长度统计是怎么来的(上)...
  • MD5加密原理解析及OC版原理实现
  • PAT A1050
  • PHP CLI应用的调试原理
  • Vue学习第二天
  • 分享几个不错的工具
  • - 概述 - 《设计模式(极简c++版)》
  • 我的业余项目总结
  • 一份游戏开发学习路线
  • 宾利慕尚创始人典藏版国内首秀,2025年前实现全系车型电动化 | 2019上海车展 ...
  • 移动端高清、多屏适配方案
  • 组复制官方翻译九、Group Replication Technical Details
  • ​ 无限可能性的探索:Amazon Lightsail轻量应用服务器引领数字化时代创新发展
  • ​sqlite3 --- SQLite 数据库 DB-API 2.0 接口模块​
  • #162 (Div. 2)
  • #define与typedef区别
  • #etcd#安装时出错
  • #常见电池型号介绍 常见电池尺寸是多少【详解】
  • (附源码)springboot 基于HTML5的个人网页的网站设计与实现 毕业设计 031623
  • (心得)获取一个数二进制序列中所有的偶数位和奇数位, 分别输出二进制序列。
  • (原创)攻击方式学习之(4) - 拒绝服务(DOS/DDOS/DRDOS)
  • .NET CLR Hosting 简介
  • .NET Core 版本不支持的问题
  • .Net CoreRabbitMQ消息存储可靠机制
  • .Net 应用中使用dot trace进行性能诊断
  • .net下简单快捷的数值高低位切换
  • .NET中 MVC 工厂模式浅析
  • .w文件怎么转成html文件,使用pandoc进行Word与Markdown文件转化
  • @property @synthesize @dynamic 及相关属性作用探究