Jenkins Kubernetes Plugin - sshagent to git clone terraform module
Turns out it was an issue with known_hosts not being set. As a workaround we added this to our jenkinsfile
environment { GIT_SSH_COMMAND = "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" }