Skip to content
Permalink
Browse files
[Fixed JENKINS-11692] publishig now takes into accnout custom builds …
…directory
  • Loading branch information
vjuranek committed Jan 20, 2012
1 parent 237a92e commit ffbcc7263834ba0b41e7d67b8e4095528ca2122d
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/hudson/plugins/build_publisher/ExternalProjectProperty.java
@@ -35,6 +35,8 @@
import java.util.logging.Level;
import java.util.logging.Logger;

import jenkins.model.Jenkins;

import hudson.triggers.TriggerDescriptor;

/**
@@ -119,7 +121,7 @@ public void doAcceptBuild(StaplerRequest req, StaplerResponse rsp)
oldBuildIDs.add(run.getId());
}

File buildsDir = new File(project.getRootDir(), "builds");
File buildsDir = Jenkins.getInstance().getBuildDirFor(project);

//Untar incoming builds unto the build directory
Untar untar = new Untar();

0 comments on commit ffbcc72

Please sign in to comment.