Sam Gleske edited a comment on Bug JENKINS-20941

I figured out the root cause of this in my installation. The problem is that the initial checkout is using the credentials plugin but the submodule checkout is using the default user credentials defined in `~/.ssh/config`. If there is not `config` then SSH by default will look for `~/.ssh/id_rsa` as the private key for the connection. My jenkins system user has default credentials in `~/.ssh/id_rsa` and so I had to give the user using those credentials access to the submodule project with read permissions.

Hopefully that was clear. Essentially, the git plugin claims it is reusing credentials plugin for the submodule check out but it is actually not using it at all. I'll try to dig through the source to point out where it is doing this.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to