From 627fda8ab8fd40a57386ac738ae4f759f1ff1af1 Mon Sep 17 00:00:00 2001 From: Arthur Caron Date: Mon, 9 Dec 2024 18:05:02 +0100 Subject: [PATCH] Sleep when IOException occurs. --- .../plugins/computeengine/ComputeEngineComputerLauncher.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/google/jenkins/plugins/computeengine/ComputeEngineComputerLauncher.java b/src/main/java/com/google/jenkins/plugins/computeengine/ComputeEngineComputerLauncher.java index aa1d44f1..975b15bd 100644 --- a/src/main/java/com/google/jenkins/plugins/computeengine/ComputeEngineComputerLauncher.java +++ b/src/main/java/com/google/jenkins/plugins/computeengine/ComputeEngineComputerLauncher.java @@ -441,6 +441,7 @@ protected Connection connectToSsh(ComputeEngineComputer computer, TaskListener l Thread.sleep(SSH_SLEEP_MILLIS); } catch (IOException e) { logWarning(computer, listener, String.format("An error occured: %s", e.getMessage())); + Thread.sleep(SSH_SLEEP_MILLIS); } } }