| I assume that root exception is the Caused: java.io.IOException: remote file operation failed: $HOME/workspace at hudson.remoting.Channel@678f:slave (i-123456) and that the EC2 plugin needs to disable or delete that agent when it detects that it is unable to perform its work. I've removed git-plugin from the assignment because I would expect the same failure to affect the Mercurial plugin, the Subversion plugin, and any other SCM plugin. Likewise, if there were an operation configured in the job to occur before the checkout, that operation would likely also fail in the same manner. |