BuildStep.prebuild is to run at the beginning of the build.

This commit is contained in:
Kohsuke Kawaguchi committed 2011-09-23 23:25:12 -07:00
1 parent 29c7b8b0ad
commit ac6a020055
1 file changed
+3 -9
@@ -795,21 +795,15 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
} finally {
// only run post build steps if requested...
if(shouldPostStepsRun(r, project.getRunPostStepsIfResult())){
boolean proceedPostSteps = true;
if(!preBuild(listener,project.getPostbuilders())){
r = FAILURE;
proceedPostSteps = false;
}
if(proceedPostSteps){
if(!build(listener,project.getPostbuilders().toList())){
r = FAILURE;
}
if(!build(listener,project.getPostbuilders().toList())){
r = FAILURE;
}
}
if (r != null) {
setResult(r);
}
// tear down in reverse order
boolean failed=false;
for( int i=buildEnvironments.size()-1; i>=0; i-- ) {