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:
kohsuke committed 2009-01-13 00:04:30 +00:00
1 parent c9d107cc87
commit bf9d021a2d
1 file changed
+4
+4
View File
@@ -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());