mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
Set 'Aborted' result before invoking BuildWrapper's tearDown. Fixes JENKINS-7864 and JENKINS-8054.
This commit is contained in:
1 parent
dce0d2aff0
commit
9c965617b3
2 files changed
+8
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user