mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
BuildStep.prebuild is to run at the beginning of the build.
This commit is contained in:
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-- ) {
|
||||
|
||||
Reference in new issue
Block a user