提交 9c965617 编写于 作者: M Mikko Peltonen

Set 'Aborted' result before invoking BuildWrapper's tearDown. Fixes JENKINS-7864 and JENKINS-8054.

上级 dce0d2af
......@@ -37,6 +37,7 @@ import java.util.Collection;
import java.util.List;
import java.util.logging.Logger;
import static hudson.model.Result.ABORTED;
import static hudson.model.Result.FAILURE;
/**
......@@ -136,6 +137,9 @@ public abstract class Build <P extends Project<P,B>,B extends Build<P,B>>
if(!build(listener,project.getBuilders()))
r = FAILURE;
} catch (InterruptedException e) {
r = ABORTED;
throw e;
} finally {
if (r != null) setResult(r);
// tear down in reverse order
......
......@@ -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;
......@@ -651,6 +652,9 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
process.discard();
}
}
} catch (InterruptedException e) {
r = ABORTED;
throw e;
} finally {
if (r != null) {
setResult(r);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册