Skip to content

Commit

Permalink
Set 'Aborted' result before invoking BuildWrapper's tearDown. Fixes J…
Browse files Browse the repository at this point in the history
…ENKINS-7864 and JENKINS-8054.

Originally-Committed-As: 9c965617b3b385ef65eaf50860865c05a114a01d
  • Loading branch information
mpeltonen committed Feb 7, 2011
1 parent 768fd5d commit 978a234
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/hudson/maven/MavenModuleSetBuild.java
Expand Up @@ -24,6 +24,7 @@
*/
package hudson.maven;

import static hudson.model.Result.ABORTED;
import static hudson.model.Result.FAILURE;
import hudson.AbortException;
import hudson.EnvVars;
Expand Down Expand Up @@ -651,6 +652,9 @@ protected Result doRun(final BuildListener listener) throws Exception {
process.discard();
}
}
} catch (InterruptedException e) {
r = ABORTED;
throw e;
} finally {
if (r != null) {
setResult(r);
Expand Down

0 comments on commit 978a234

Please sign in to comment.