Skip to content

Commit

Permalink
[FIXED JENKINS-17681] Use builds\last{Stable,Successful}Build on Wind…
Browse files Browse the repository at this point in the history
…ows for permalinks.
  • Loading branch information
jglick committed May 22, 2013
1 parent 071c35a commit 4af5c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/model/AbstractBuild.java
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4af5c22

Please sign in to comment.