Versions of the Jenkins git plugin prior to 3.0.0 did not support sub-module authentication. Submodule validation using the same credentials and protocol as the parent repository is now supported by the Jenkins git plugin. Support was added in the release of Jenkins git version 3.0.0 dated September 10, 2016.
Part of the submodule configuration on the job definition page (Advanced> Behavior of Additional Submodules) now includes the checkbox “Use credentials from the remote database of the parent repository.” Select the check box and the credentials from the parent repository will be used for the submodules.
Note that the repository cloning protocols must be the same (ssh or https) for the parent repository and submodules, otherwise the parent credentials cannot be used with the submodule repository.
Mark waite
source share