Hi all,

In my Jenkinsfile, I use the 
checkout<https://www.jenkins.io/doc/pipeline/steps/workflow-scm-step/> 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


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/jenkinsci-users/PAZP264MB28805C26F3E2F3371EB5C434D1F72%40PAZP264MB2880.FRAP264.PROD.OUTLOOK.COM.

Reply via email to