Status: Closed (View Workflow)
[Jenkins 1.465 - git plugin 1.1.18]
"Clean after checkout" checkbox does not run "git clean -fdx" on submodules.
As a workaround, we have to run this command first:
git submodule foreach --recursive git clean -fdx
NOTE: apparently, this has been already reported and fixed (see:
- is related to
JENKINS-23694 git clean fails with submodules (failed to fetch)
JENKINS-22510 Clean After Checkout Results in Failed to Checkout Revision
Code changed in jenkins
User: Mark Waite
Merge branch 'master' of https://github.com/ds2wang/git-plugin
[Fixed JENKINS-7376] Clean after checkout cleans submodules
[Fixed JENKINS-13910] Clean operates on submodules
[Fixed JENKINS-22510] Clean after checkout causes checkout failure
It seems that it's not doing a 'git clean -fdx' even on the main checkout. We have files left over.