Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45705

Git clean before or after checkout should call git clean -ffdx (2 "f"s)

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.60.2
    • Similar Issues:

      Description

      Git help says:

      -f, --force
      If the Git configuration variable clean.requireForce is not set to false, git clean will refuse to delete files or
      directories unless given -f, -n or -i. Git will refuse to delete directories with .git sub directory or file unless a second
      -f is given.

       

      There is no point in keeping alive directories with .git sub directories, since when dealing with submodules there might be branches that add a new submodule that is not present in another one, and when building accross them, submodule garbage will be left out.

        Attachments

          Issue Links

            Activity

            lucasocio Leandro Lucarella created issue -
            markewaite Mark Waite made changes -
            Field Original Value New Value
            Link This issue duplicates JENKINS-29893 [ JENKINS-29893 ]
            markewaite Mark Waite made changes -
            Link This issue duplicates JENKINS-39111 [ JENKINS-39111 ]
            markewaite Mark Waite made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            lucasocio Leandro Lucarella made changes -
            Resolution Duplicate [ 3 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            markewaite Mark Waite made changes -
            Link This issue duplicates JENKINS-26660 [ JENKINS-26660 ]
            markewaite Mark Waite made changes -
            Link This issue is related to JENKINS-7376 [ JENKINS-7376 ]
            markewaite Mark Waite made changes -
            Assignee Mark Waite [ markewaite ]
            lucasocio Leandro Lucarella made changes -
            Link This issue duplicates JENKINS-39111 [ JENKINS-39111 ]
            lucasocio Leandro Lucarella made changes -
            Link This issue duplicates JENKINS-29893 [ JENKINS-29893 ]
            lucasocio Leandro Lucarella made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                lucasocio Leandro Lucarella
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: