mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
On Unix, Hudson will contain symlinks from build numbers to their corresponding build directories.
(Also see the previous commit that includes the change where we actually create a symlink.) git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14406 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
c9d107cc87
commit
bf9d021a2d
1 file changed
+4
@@ -746,6 +746,10 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
|
||||
* if we fail to delete.
|
||||
*/
|
||||
public synchronized void delete() throws IOException {
|
||||
// if we have a symlink, delete it, too
|
||||
File link = new File(project.getBuildDir(), String.valueOf(getNumber()));
|
||||
link.delete();
|
||||
|
||||
File rootDir = getRootDir();
|
||||
File tmp = new File(rootDir.getParentFile(),'.'+rootDir.getName());
|
||||
|
||||
|
||||
Reference in new issue
Block a user