遇一山,过一山,处处有风景;只要勇敢向前,一路尽是繁花盛开。 | (点击查看→)【测试干货】python/java自动化、持续集成、性能、测开、简历、笔试面试等

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

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

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
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 permitted
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources/annotations: Operation not permitted
        at 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
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources: Operation not permitted
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: Operation not permitted
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: Operation not permitted
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile: Operation not permitted
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile: Operation not permitted
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin: Operation not permitted
        at 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
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status: Operation not permitted
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-archiver/pom.properties: Operation not permitted
        at 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 workspace
    at 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:4754
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/classes: Operation not permitted
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources/annotations: Operation not permitted
        at 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
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/generated-sources: Operation not permitted
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: Operation not permitted
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: Operation not permitted
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile/default-compile: Operation not permitted
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin/compile: Operation not permitted
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status/maven-compiler-plugin: Operation not permitted
        at 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
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-status: Operation not permitted
        at 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 more
    Suppressed: java.nio.file.FileSystemException: /home/jenkins/agent/workspace/demo/target/maven-archiver/pom.properties: Operation not permitted
        at 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配置中:

1
workspaceVolume hostPathWorkspaceVolume(hostPath: "/opt/workspace", readOnly: false)

 

说明:workspace的内容持久化到宿主机了,宿主机/opt/workspace/和slave的pod中/home/jenkins/agent/下内容是一样的

cd /opt/workspace/workspace/demo,清空target目录

 

再次构建

 

posted @   全栈测试笔记  阅读(454)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
浏览器标题切换
浏览器标题切换end
点击右上角即可分享
微信分享提示