-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retries in ConnectionCheckSSH #751
Comments
"oops" I'll fix it. |
OK, I've created PR #752 that should fix this. It's been built by ci.jenkins.io and you can get a |
...also, if you could check the code changes (in #752) then that would be helpful - it would be rather embarrassing if the fix for this was also buggy... 😉 |
Thank you for taking a quick response to fix the issue. I did a quick test using the updated plugin in my system and it works fine :) |
OK, thanks for confirming the fix. |
Code changes went into released of docker-plugin version 1.1.9 |
In the execute method of ConnectionCheckSSH, there is a line of code as follow:
final int retries = Math.min(0, parent.retries);
That causes the number of retries to be always 0 (unless the parent.retries is negative). The result is that when the plugin starts a Docker container and then attempts to connect to it, the error "java.io.IOException: SSH service hadn't started after 0 seconds." will often be encountered.
The text was updated successfully, but these errors were encountered: