Navigation Menu

Skip to content

Commit

Permalink
[Fixed JENKINS-11692] publishig now takes into accnout custom builds …
Browse files Browse the repository at this point in the history
…directory
  • Loading branch information
vjuranek committed Jan 20, 2012
1 parent 237a92e commit ffbcc72
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -35,6 +35,8 @@
import java.util.logging.Level;
import java.util.logging.Logger;

import jenkins.model.Jenkins;

import hudson.triggers.TriggerDescriptor;

/**
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit ffbcc72

Please sign in to comment.