When use 'clean before checkout',It execultes 'git reset --hard && git clean -fdx' with default flags.How can I make Jenkins exec "git reset --hard && git clean -fd'?
The clean before checkout has no way to allow the user to control arguments to the clean command. If you need that level of control, don't use the clean before checkout extension. Use an sh or a bat step to perform the specific git clean command that is desired.