[JENKINS-14575] Fix to make the retry logic work with GitSCM

The retry logic does not catch the GitException, so we have to wrap into a IOException. Clone and Fetch also affected. As of now the scmRetry will work with the git plugin.