Skip to content

Commit

Permalink
Merge pull request #449 from basil/nonFatalJnlpAgentEndpointResolutio…
Browse files Browse the repository at this point in the history
…nExceptions

Allow JNLP agent endpoint resolution exceptions to be non-fatal for Swarm
  • Loading branch information
jeffret-b committed May 7, 2021
2 parents 6508cf8 + 0f75589 commit d4fe474
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/hudson/remoting/Engine.java
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,11 @@ private void innerRun(IOHub hub, SSLContext context, ExecutorService service) {
try {
endpoint = resolver.resolve();
} catch (Exception e) {
events.error(e);
if (Boolean.getBoolean(Engine.class.getName() + ".nonFatalJnlpAgentEndpointResolutionExceptions")) {
events.status("Could not resolve JNLP agent endpoint", e);
} else {
events.error(e);
}
return;
}
if (endpoint == null) {
Expand Down

0 comments on commit d4fe474

Please sign in to comment.