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

相关文章

解决Maven项目报错:failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0的问题

《解决Maven项目报错:failedtoexecutegoalorg.apache.maven.plugins:maven-compiler-plugin:3.13.0的问题》这篇文章主要介... 目录Maven项目报错:failed to execute goal org.apache.maven.pl

springboot集成Lucene的详细指南

《springboot集成Lucene的详细指南》这篇文章主要为大家详细介绍了springboot集成Lucene的详细指南,文中的示例代码讲解详细,具有一定的借鉴价值,感兴趣的小伙伴可以跟随小编一起... 目录添加依赖创建配置类创建实体类创建索引服务类创建搜索服务类创建控制器类使用示例以下是 Spring

Git可视化管理工具(SourceTree)使用操作大全经典

《Git可视化管理工具(SourceTree)使用操作大全经典》本文详细介绍了SourceTree作为Git可视化管理工具的常用操作,包括连接远程仓库、添加SSH密钥、克隆仓库、设置默认项目目录、代码... 目录前言:连接Gitee or github,获取代码:在SourceTree中添加SSH密钥:Cl

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

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

SpringBoot集成Milvus实现数据增删改查功能

《SpringBoot集成Milvus实现数据增删改查功能》milvus支持的语言比较多,支持python,Java,Go,node等开发语言,本文主要介绍如何使用Java语言,采用springboo... 目录1、Milvus基本概念2、添加maven依赖3、配置yml文件4、创建MilvusClient

Pyserial设置缓冲区大小失败的问题解决

《Pyserial设置缓冲区大小失败的问题解决》本文主要介绍了Pyserial设置缓冲区大小失败的问题解决,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面... 目录问题描述原因分析解决方案问题描述使用set_buffer_size()设置缓冲区大小后,buf

解决SpringBoot启动报错:Failed to load property source from location 'classpath:/application.yml'

《解决SpringBoot启动报错:Failedtoloadpropertysourcefromlocationclasspath:/application.yml问题》这篇文章主要介绍... 目录在启动SpringBoot项目时报如下错误原因可能是1.yml中语法错误2.yml文件格式是GBK总结在启动S

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. 进阶