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

相关文章

Redis连接失败:客户端IP不在白名单中的问题分析与解决方案

《Redis连接失败:客户端IP不在白名单中的问题分析与解决方案》在现代分布式系统中,Redis作为一种高性能的内存数据库,被广泛应用于缓存、消息队列、会话存储等场景,然而,在实际使用过程中,我们可能... 目录一、问题背景二、错误分析1. 错误信息解读2. 根本原因三、解决方案1. 将客户端IP添加到Re

SpringCloud集成AlloyDB的示例代码

《SpringCloud集成AlloyDB的示例代码》AlloyDB是GoogleCloud提供的一种高度可扩展、强性能的关系型数据库服务,它兼容PostgreSQL,并提供了更快的查询性能... 目录1.AlloyDBjavascript是什么?AlloyDB 的工作原理2.搭建测试环境3.代码工程1.

SpringBoot使用注解集成Redis缓存的示例代码

《SpringBoot使用注解集成Redis缓存的示例代码》:本文主要介绍在SpringBoot中使用注解集成Redis缓存的步骤,包括添加依赖、创建相关配置类、需要缓存数据的类(Tes... 目录一、创建 Caching 配置类二、创建需要缓存数据的类三、测试方法Spring Boot 熟悉后,集成一个外

Docker集成CI/CD的项目实践

《Docker集成CI/CD的项目实践》本文主要介绍了Docker集成CI/CD的项目实践,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学... 目录一、引言1.1 什么是 CI/CD?1.2 docker 在 CI/CD 中的作用二、Docke

SpringBoot集成SOL链的详细过程

《SpringBoot集成SOL链的详细过程》Solanaj是一个用于与Solana区块链交互的Java库,它为Java开发者提供了一套功能丰富的API,使得在Java环境中可以轻松构建与Solana... 目录一、什么是solanaj?二、Pom依赖三、主要类3.1 RpcClient3.2 Public

SpringBoot3集成swagger文档的使用方法

《SpringBoot3集成swagger文档的使用方法》本文介绍了Swagger的诞生背景、主要功能以及如何在SpringBoot3中集成Swagger文档,Swagger可以帮助自动生成API文档... 目录一、前言1. API 文档自动生成2. 交互式 API 测试3. API 设计和开发协作二、使用

SpringBoot如何集成Kaptcha验证码

《SpringBoot如何集成Kaptcha验证码》本文介绍了如何在Java开发中使用Kaptcha生成验证码的功能,包括在pom.xml中配置依赖、在系统公共配置类中添加配置、在控制器中添加生成验证... 目录SpringBoot集成Kaptcha验证码简介实现步骤1. 在 pom.XML 配置文件中2.

bat脚本启动git bash窗口,并执行命令方式

《bat脚本启动gitbash窗口,并执行命令方式》本文介绍了如何在Windows服务器上使用cmd启动jar包时出现乱码的问题,并提供了解决方法——使用GitBash窗口启动并设置编码,通过编写s... 目录一、简介二、使用说明2.1 start.BAT脚本2.2 参数说明2.3 效果总结一、简介某些情

git使用的说明总结

Git使用说明 下载安装(下载地址) macOS: Git - Downloading macOS Windows: Git - Downloading Windows Linux/Unix: Git (git-scm.com) 创建新仓库 本地创建新仓库:创建新文件夹,进入文件夹目录,执行指令 git init ,用以创建新的git 克隆仓库 执行指令用以创建一个本地仓库的

【区块链 + 人才服务】区块链集成开发平台 | FISCO BCOS应用案例

随着区块链技术的快速发展,越来越多的企业开始将其应用于实际业务中。然而,区块链技术的专业性使得其集成开发成为一项挑战。针对此,广东中创智慧科技有限公司基于国产开源联盟链 FISCO BCOS 推出了区块链集成开发平台。该平台基于区块链技术,提供一套全面的区块链开发工具和开发环境,支持开发者快速开发和部署区块链应用。此外,该平台还可以提供一套全面的区块链开发教程和文档,帮助开发者快速上手区块链开发。