• 持续集成失败:hudson.plugins.git.GitException: Failed to delete workspace


    持续集成环境(git + gitlab + jenkins + pipeline + maven + harbor + docker + k8s)之前都是ok的,突然就报错了:

    1. Cloning the remote Git repository
    2. Cloning repository git@192.168.117.180:qzcsbj/gift.git
    3. ERROR: Failed to clean the workspace
    4. 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)
    5. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:87)
    6. at hudson.Util.deleteContentsRecursive(Util.java:286)
    7. at hudson.Util.deleteContentsRecursive(Util.java:275)
    8. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:788)
    9. at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:158)
    10. at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:151)
    11. at hudson.remoting.UserRequest.perform(UserRequest.java:212)
    12. at hudson.remoting.UserRequest.perform(UserRequest.java:54)
    13. at hudson.remoting.Request$2.run(Request.java:369)
    14. at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    15. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    16. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    17. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    18. at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
    19. at java.lang.Thread.run(Thread.java:748)
    20. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/classes: Operation not permitted
    21. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    22. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    23. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    24. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    25. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    26. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    27. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    28. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    29. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    30. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    31. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    32. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    33. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    34. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    35. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    36. ... 14 more
    37. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources/annotations: Operation not permitted
    38. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    39. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    40. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    41. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    42. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    43. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    44. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    45. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    46. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    47. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    48. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    49. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    50. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    51. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    52. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    53. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    54. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    55. ... 14 more
    56. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources: Operation not permitted
    57. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    58. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    59. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    60. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    61. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    62. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    63. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    64. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    65. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    66. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    67. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    68. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    69. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    70. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    71. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    72. ... 14 more
    73. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: Operation not permitted
    74. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    75. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    76. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    77. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    78. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    79. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    80. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    81. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    82. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    83. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    84. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    85. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    86. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    87. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    88. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    89. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    90. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    91. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    92. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    93. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    94. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    95. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    96. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    97. ... 14 more
    98. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: Operation not permitted
    99. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    100. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    101. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    102. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    103. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    104. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    105. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    106. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    107. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    108. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    109. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    110. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    111. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    112. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    113. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    114. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    115. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    116. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    117. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    118. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    119. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    120. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    121. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    122. ... 14 more
    123. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile: Operation not permitted
    124. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    125. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    126. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    127. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    128. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    129. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    130. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    131. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    132. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    133. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    134. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    135. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    136. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    137. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    138. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    139. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    140. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    141. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    142. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    143. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    144. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    145. ... 14 more
    146. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile: Operation not permitted
    147. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    148. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    149. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    150. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    151. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    152. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    153. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    154. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    155. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    156. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    157. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    158. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    159. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    160. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    161. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    162. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    163. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    164. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    165. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    166. ... 14 more
    167. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin: Operation not permitted
    168. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    169. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    170. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    171. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    172. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    173. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    174. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    175. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    176. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    177. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    178. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    179. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    180. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    181. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    182. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    183. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    184. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    185. ... 14 more
    186. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status: Operation not permitted
    187. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    188. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    189. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    190. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    191. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    192. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    193. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    194. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    195. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    196. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    197. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    198. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    199. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    200. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    201. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    202. ... 14 more
    203. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-archiver/pom.properties: Operation not permitted
    204. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    205. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    206. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    207. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    208. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    209. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    210. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    211. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    212. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    213. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    214. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    215. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    216. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    217. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    218. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    219. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    220. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    221. ... 14 more
    222. ERROR: Error cloning remote repo 'origin'
    223. hudson.plugins.git.GitException: Failed to delete workspace
    224. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:791)
    225. at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:158)
    226. at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:151)
    227. at hudson.remoting.UserRequest.perform(UserRequest.java:212)
    228. at hudson.remoting.UserRequest.perform(UserRequest.java:54)
    229. at hudson.remoting.Request$2.run(Request.java:369)
    230. at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    231. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    232. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    233. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    234. at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
    235. at java.lang.Thread.run(Thread.java:748)
    236. Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 192.168.117.161/192.168.117.161:4754
    237. at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
    238. at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
    239. at hudson.remoting.Channel.call(Channel.java:1000)
    240. at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:143)
    241. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    242. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    243. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    244. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    245. at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:129)
    246. at com.sun.proxy.$Proxy103.execute(Unknown Source)
    247. at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1226)
    248. at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1308)
    249. at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
    250. at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
    251. at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
    252. at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
    253. at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    254. at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    255. at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    256. at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    257. at java.base/java.lang.Thread.run(Thread.java:829)
    258. 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)
    259. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:87)
    260. at hudson.Util.deleteContentsRecursive(Util.java:286)
    261. at hudson.Util.deleteContentsRecursive(Util.java:275)
    262. at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:788)
    263. ... 11 more
    264. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/classes: Operation not permitted
    265. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    266. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    267. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    268. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    269. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    270. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    271. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    272. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    273. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    274. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    275. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    276. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    277. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    278. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    279. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    280. ... 14 more
    281. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources/annotations: Operation not permitted
    282. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    283. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    284. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    285. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    286. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    287. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    288. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    289. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    290. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    291. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    292. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    293. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    294. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    295. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    296. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    297. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    298. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    299. ... 14 more
    300. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources: Operation not permitted
    301. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    302. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    303. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    304. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    305. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    306. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    307. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    308. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    309. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    310. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    311. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    312. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    313. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    314. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    315. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    316. ... 14 more
    317. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: Operation not permitted
    318. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    319. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    320. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    321. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    322. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    323. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    324. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    325. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    326. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    327. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    328. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    329. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    330. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    331. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    332. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    333. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    334. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    335. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    336. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    337. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    338. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    339. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    340. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    341. ... 14 more
    342. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: Operation not permitted
    343. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    344. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    345. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    346. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    347. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    348. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    349. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    350. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    351. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    352. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    353. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    354. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    355. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    356. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    357. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    358. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    359. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    360. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    361. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    362. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    363. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    364. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    365. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    366. ... 14 more
    367. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile: Operation not permitted
    368. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    369. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    370. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    371. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    372. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    373. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    374. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    375. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    376. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    377. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    378. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    379. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    380. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    381. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    382. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    383. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    384. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    385. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    386. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    387. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    388. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    389. ... 14 more
    390. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile: Operation not permitted
    391. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    392. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    393. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    394. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    395. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    396. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    397. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    398. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    399. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    400. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    401. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    402. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    403. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    404. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    405. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    406. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    407. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    408. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    409. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    410. ... 14 more
    411. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin: Operation not permitted
    412. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    413. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    414. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    415. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    416. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    417. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    418. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    419. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    420. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    421. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    422. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    423. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    424. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    425. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    426. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    427. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    428. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    429. ... 14 more
    430. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status: Operation not permitted
    431. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    432. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    433. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    434. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    435. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    436. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    437. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    438. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    439. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    440. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    441. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    442. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    443. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    444. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    445. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    446. ... 14 more
    447. Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-archiver/pom.properties: Operation not permitted
    448. at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
    449. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    450. at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    451. at sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:238)
    452. at sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:260)
    453. at java.nio.file.Files.setPosixFilePermissions(Files.java:2045)
    454. at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:285)
    455. at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:258)
    456. at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:238)
    457. at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
    458. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
    459. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    460. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    461. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    462. at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
    463. at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:224)
    464. at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:84)
    465. ... 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目录

    再次构建

  • 相关阅读:
    C++ 纯虚类实例化中对于引用成员的使用
    集群性能优化:压缩和扩容策略
    NR CSI(三) CQI
    Windows 安装DotNet Core运行时库
    Ruoyi-vue项目新建模块的SQL输出的配置
    Java基础-IO流
    以太坊的终局:去信任的信任
    蓝桥杯 Java 括号序列
    【AGC】如何快速部署Serverless抽奖模板
    STC51单片机33——液晶12864显示
  • 原文地址:https://blog.csdn.net/weixin_44896406/article/details/134512033