My final solution has been to bypass ssh-agent and not use it, since it does not work.
I have instead found a way using the Jenkins Script console (https://wiki.jenkins.io/display/JENKINS/Jenkins+Script+Console) to retrieve the private key and copy it to ~/.ssh/id_rsa and the SCM then works. This works since I am running this in kubernetes and each pod is destroyed after its build. On Friday, 20 October 2017 10:28:41 UTC+11, Jurgen Weber wrote: > > issue link: https://issues.jenkins-ci.org/browse/JENKINS-47463 > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/07a3ca8a-2186-47f5-89cb-f22d6bf0c405%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
