![]() |
|
|
Issue Type:
|
Bug
|
Assignee:
|
vjuranek
|
Components:
|
core, ws-cleanup-plugin |
Created:
|
30/Dec/14 3:22 PM
|
Description:
|
I've witnessed Jenkins randomly fail to remove a workspace (job configured with "Delete workspace before build starts" selected). This seems to happen randomly and results in the build failing due to old data being present.
I can force this to occur by opening a command prompt in the workspace before starting the build.
I've had a quick glance at the Jenkins code, and it looks like the call workspace.renameTo call in the Wipeout class is failing silently. This in turn seems to be because the implementation of renameTo in FilePath doesn't check the return value of the java.lang.File.renameTo call.
If the workspace cannot be renamed for any reason, the cleanup should either fallback to deleting synchronously (and still potentially fail due to whatever lock prevented the rename) or immediately report an error.
|
Environment:
|
Jenkins 1.595. Workspace cleanup plugin 0.24.
Windows Server 2008 R2 Enterprise. AMD64. Oracle Java 1.7u25.
|
Project:
|
Jenkins
|
Priority:
|
Minor
|
Reporter:
|
Paul Milliken
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.