提交 bf9d021a 编写于 作者: K kohsuke

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
上级 c9d107cc
......@@ -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());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册