I have a build pipeline with a repo with several nested submodules that differ from branch to branch. This causes the "checkout scm" command to fail consistently because it runs into untracked files and it exits.
As a result, I have to do the Git checkout manually (which is fine, I have code to do that). However, as a result the currentBuild.changeSets is not populated.
Is there a way to either manually populate this (it appears to be read only) or to manually cause Jenkins to populate it? This structure is required for my email notifications and for the web gui to report a change log.