Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[JENKINS-10627] [JENKINS-9158] Stop publisher if job is aborted.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Aug 19, 2011
1 parent f92ec64 commit 67001d6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Expand Up @@ -307,7 +307,15 @@ protected Object readResolve() {
public final boolean perform(final AbstractBuild<?, ?> build, final Launcher launcher, final BuildListener listener) throws InterruptedException, IOException {
PluginLogger logger = new PluginLogger(listener.getLogger(), pluginName);
if (canContinue(build.getResult())) {
BuildResult result = perform(build, logger);
BuildResult result;
try {
result = perform(build, logger);
}
catch (InterruptedException exception) {
logger.log(exception.getMessage());

return false;
}

if (new NullHealthDescriptor(this).isThresholdEnabled()) {
result.evaluateStatus(getThresholds(), useDeltaValues, logger);
Expand Down
Expand Up @@ -236,7 +236,15 @@ public final boolean postExecute(final MavenBuildProxy build, final MavenProject
return true;
}

final ParserResult result = perform(build, pom, mojo, logger);
final ParserResult result;
try {
result = perform(build, pom, mojo, logger);
}
catch (InterruptedException exception) {
logger.log(exception.getMessage());

return false;
}
logger.logLines(result.getLogMessages());

defaultEncoding = pom.getProperties().getProperty("project.build.sourceEncoding");
Expand Down

0 comments on commit 67001d6

Please sign in to comment.