Skip to content
Permalink
Browse files

Merge pull request #32 from jglick/TryRepeatedly-anonDiscover-JENKINS…

…-42556

[JENKINS-42556] Handle runtime exceptions from printWaitingMessage
  • Loading branch information...
jglick committed Mar 14, 2017
2 parents 6fce277 + 3c076a7 commit 494446bf5962ff41726818224312079876c2cc70
@@ -26,6 +26,7 @@

import com.google.common.util.concurrent.AbstractFuture;
import com.google.common.util.concurrent.ListenableFuture;
import hudson.Functions;
import hudson.console.ModelHyperlinkNote;
import hudson.model.TaskListener;
import java.io.IOException;
@@ -92,7 +93,12 @@ public void run() {
if (v == null) {
if (retriesRemaining == 0) {
try {
printWaitingMessage(getOwner().getListener());
TaskListener listener = getOwner().getListener();
try {
printWaitingMessage(listener);
} catch (Exception x) {
listener.getLogger().println(Functions.printThrowable(x).trim()); // TODO 2.43+ use Functions.printStackTrace
}
} catch (IOException x) {
LOGGER.log(Level.WARNING, null, x);
}

0 comments on commit 494446b

Please sign in to comment.
You can’t perform that action at this time.