Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[JENKINS-10627] [JENKINS-9158] Stop publisher if job is aborted.
  • Loading branch information
uhafner committed Aug 19, 2011
1 parent f92ec64 commit 67001d64f8e76da90c4f4eeda742e32e8117524f
@@ -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);
@@ -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");

0 comments on commit 67001d6

Please sign in to comment.