I have a scenario where the Jenkins pipeline fails to read the remote repository using private key credential saying the following error:
load pubkey "/var/jenkins_home/caches/git-5e50bbd24415584a809683107dd1026f@tmp/jenkins-gitclient-##############.key": invalid format
When I try a rebuild it works fine. One thing that I observed is all the jobs that were running at that time failed with the same error. Is there a way I can make the git plugin used in the pipeline to clone a remote repository not use the cache for the key?