Jenkins build fails on slaves with java.lang.InterruptedException

Viewed 18996

Jenkins build fails with Cannot contact XXXXXXXXXXXX: java.lang.InterruptedException

from time to time. it doesn't matter if it is a spot instance or an on-demand instance

Jenkins ver. 2.60.3 
Amazon EC2 plugin 1.36
2 Answers

In my case after the error described above in the pipeline, I checked the specific node console log and it appeared the following error:

java.util.concurrent.TimeoutException: Ping started on XXXX hasn't completed at XXX

Probably the jenkins slave was corrupted. Just rebooting the slave solved the problem as it is explained in this jenkins issue

Related