-
Bug
-
Resolution: Unresolved
-
Major
-
CentOS release 6.5 (Final)
Jenkins 1.532
Workspace Cleanup 0.20
Cygpath plugin 1.5
When either pre or post ws cleanup is run, it fails with exception
Deleting project workspace...
Cannot delete workspace :remote file operation failed: /home/dtcdt/projects/jenkins/workspace/CommonLib/label/Build-Win2003R2 at hudson.remoting.Channel@6701c06:Build-Win2003R2
ERROR: Publisher hudson.plugins.ws_cleanup.WsCleanup aborted due to exception
hudson.AbortException: Cannot delete workspace: remote file operation failed: /home/dtcdt/projects/jenkins/workspace/CommonLib/label/Build-Win2003R2 at hudson.remoting.Channel@6701c06:Build-Win2003R2
at hudson.plugins.ws_cleanup.WsCleanup.perform(WsCleanup.java:180)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:754)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:192)
at hudson.model.Run.execute(Run.java:1710)
at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:246)
Finished: FAILURE
I have identified that problem is caused when it tries to delete files created by git clone.
These files have only read access (dunno why git clone them like that), but on Unixes it still can delete them without problems, so I guess windows (or NFS) has problems with it.