Skip to content
Permalink
Browse files

[FIXED JENKINS-17681] Use builds\last{Stable,Successful}Build on Wind…

…ows for permalinks.
  • Loading branch information
jglick committed May 22, 2013
1 parent 071c35a commit 4af5c22134a05b6e885cbf1a721412711325c92e
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/main/java/hudson/model/AbstractBuild.java
@@ -487,9 +487,9 @@ public String getHudsonVersion() {
private void createSymlink(TaskListener listener, String name, Permalink target) throws InterruptedException {
String targetDir;
if (getProject().getBuildDir().equals(new File(getProject().getRootDir(), "builds"))) {
targetDir = "builds/" + target.getId();
targetDir = "builds" + File.separator + target.getId();
} else {
targetDir = getProject().getBuildDir()+"/"+target.getId();
targetDir = getProject().getBuildDir() + File.separator + target.getId();
}
Util.createSymlink(getProject().getRootDir(), targetDir, name, listener);
}

0 comments on commit 4af5c22

Please sign in to comment.