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

相关文章

springboot简单集成Security配置的教程

《springboot简单集成Security配置的教程》:本文主要介绍springboot简单集成Security配置的教程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,... 目录集成Security安全框架引入依赖编写配置类WebSecurityConfig(自定义资源权限规则

Docker镜像pull失败两种解决办法小结

《Docker镜像pull失败两种解决办法小结》有时候我们在拉取Docker镜像的过程中会遇到一些问题,:本文主要介绍Docker镜像pull失败两种解决办法的相关资料,文中通过代码介绍的非常详细... 目录docker 镜像 pull 失败解决办法1DrQwWCocker 镜像 pull 失败解决方法2总

springboot集成Deepseek4j的项目实践

《springboot集成Deepseek4j的项目实践》本文主要介绍了springboot集成Deepseek4j的项目实践,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价... 目录Deepseek4j快速开始Maven 依js赖基础配置基础使用示例1. 流式返回示例2. 进阶

IDEA中Git版本回退的两种实现方案

《IDEA中Git版本回退的两种实现方案》作为开发者,代码版本回退是日常高频操作,IntelliJIDEA集成了强大的Git工具链,但面对reset和revert两种核心回退方案,许多开发者仍存在选择... 目录一、版本回退前置知识二、Reset方案:整体改写历史1、IDEA图形化操作(推荐)1.1、查看提

pip无法安装osgeo失败的问题解决

《pip无法安装osgeo失败的问题解决》本文主要介绍了pip无法安装osgeo失败的问题解决,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一... 进入官方提供的扩展包下载网站寻找版本适配的whl文件注意:要选择cp(python版本)和你py

Spring Boot 集成 Quartz 使用Cron 表达式实现定时任务

《SpringBoot集成Quartz使用Cron表达式实现定时任务》本文介绍了如何在SpringBoot项目中集成Quartz并使用Cron表达式进行任务调度,通过添加Quartz依赖、创... 目录前言1. 添加 Quartz 依赖2. 创建 Quartz 任务3. 配置 Quartz 任务调度4. 启

Git如何修改已提交人的用户名和邮箱

《Git如何修改已提交人的用户名和邮箱》文章介绍了如何修改Git已提交人的用户名和邮箱,包括注意事项和具体步骤,确保操作正确无误... 目录git修改已提交人的用户名和邮箱前言第一步第二步总结git修改已提交人的用户名和邮箱前言需注意以下两点内容:需要在顶层目录下(php就是 .git 文件夹所在的目

Spring AI集成DeepSeek三步搞定Java智能应用的详细过程

《SpringAI集成DeepSeek三步搞定Java智能应用的详细过程》本文介绍了如何使用SpringAI集成DeepSeek,一个国内顶尖的多模态大模型,SpringAI提供了一套统一的接口,简... 目录DeepSeek 介绍Spring AI 是什么?Spring AI 的主要功能包括1、环境准备2

Spring AI集成DeepSeek实现流式输出的操作方法

《SpringAI集成DeepSeek实现流式输出的操作方法》本文介绍了如何在SpringBoot中使用Sse(Server-SentEvents)技术实现流式输出,后端使用SpringMVC中的S... 目录一、后端代码二、前端代码三、运行项目小天有话说题外话参考资料前面一篇文章我们实现了《Spring

SpringBoot集成图片验证码框架easy-captcha的详细过程

《SpringBoot集成图片验证码框架easy-captcha的详细过程》本文介绍了如何将Easy-Captcha框架集成到SpringBoot项目中,实现图片验证码功能,Easy-Captcha是... 目录SpringBoot集成图片验证码框架easy-captcha一、引言二、依赖三、代码1. Ea