Hi Alena The default behaviour on GoCD git materials has been git clean -dffx since GoCD 20.6.0 as far as I can tell. You had to specifically opt in for the "old" behaviour of git clean -dff However based on the ticket you raised at https://github.com/gocd/gocd/issues/12806 my *guess* is that you are using a custom plugin for git materials which has its own logic and does not rely on GoCD's built in git material.
Which plugin is this? Some commonly used ones that still seem to use "git clean -dff" internally are https://github.com/ashwanthkumar/gocd-build-github-pull-requests and https://github.com/TWChennai/gocd-git-path-material-plugin These plugins initially aimed to "copy" GoCD's default behaviour but have diverged over time. Both would need the plugins to be updated/changed. A workaround for now may be to clean the entire working directory at GoCD level in the stage configuration (essentially an "rm -rf working-dir") rather than relying on something at material level, but this would require a fresh clone for every build, which some people would rather not do (for speed reasons) when using static agents. -Chad On Tue, May 28, 2024 at 6:06 PM Alena Karpova <my.lovely.h...@gmail.com> wrote: > Hi! > My working directory uses git clean -dff for cleaning now, but I need git > clean -dffx to be used instead. > I see that there is a flag that configures this, but I can't find how I > can set it. > > Thank you in advance, > Alena > > -- > You received this message because you are subscribed to the Google Groups > "go-cd" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to go-cd+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/go-cd/4f776e6e-46e9-4b63-87ee-47ae8ce2415cn%40googlegroups.com > <https://groups.google.com/d/msgid/go-cd/4f776e6e-46e9-4b63-87ee-47ae8ce2415cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CAA1RwH_yCY22T6n3%2BztrEGyYDJge%2BMWaQZFMK80yqWogGEYEWg%40mail.gmail.com.