Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-client: teach submoduleUpdate how to pass credentials
Teach the submoduleUpdate call to perform submodule URL lookup, and call "submodule update" separately for each submodule. Lookup the credentials, and call it using launchCommandWithCredentials. This enables submodules to correctly get the SSH or HTTP setup necessary such that the Jenkins credentials will be passed into each submodule. We can't just call "git submodule update" since it may be possible (however unlikely!) that each submodule wants to use a separate credential. Thus, perform lookup using each URL and run through a forloop to actually update each submodule instead of depending on the git implementation to do this for us. JENKINS-20941 - Credentials and Submodules Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
- Loading branch information