Hi all,
In my Jenkinsfile, I use the
checkout step to perform a git checkout.
My git repo has some submodules; which have also, themselves, submodules.
As of today, I use the following checkout extentions:
[$class: 'CleanBeforeCheckout', deleteUntrackedNestedRepositories: true ]
[$class: 'SubmoduleOption', disableSubmodules: false, parentCredentials: false, recursiveSubmodules: true, reference: '', threads: 4, timeout: 30, trackingSubmodules: false, shallow: shallow_clone, depth: 1],
The former extension runs "git clean -ffxd" before performing git checkout.
But, as far as i know, this option is not propagated to submodules: in submodules, only "git -fxd" is performed.
Therefore, some "phantom" gits repos can be left in submodules.
Is there a way to run "git clean -ffxd" in submodules ?
Is it a known issue ?
Regards,
Xavier Raynaud