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

git - clean before build does not clean submodules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
      hudson 1.366, git plugin 1.0.1
    • Similar Issues:

      Description

      When using a repository containing submodules, if the project is set to clean after the checkout, the git clean -fdx command is issued. However, the clean command will not iterate through submodules, resulting in the submodules still containing private content (debris from past builds.) Would it be possible to get the clean code changed to iterate through the submodules and perform a git clean -fdx within each as well?

        Attachments

          Issue Links

            Activity

            aaron_neerenberg aaron_neerenberg created issue -
            aaron_neerenberg aaron_neerenberg made changes -
            Field Original Value New Value
            Environment hudson 1.366, git plugin hudson 1.366, git plugin 1.0.1
            abayer Andrew Bayer made changes -
            Link This issue is duplicated by JENKINS-7445 [ JENKINS-7445 ]
            abayer Andrew Bayer made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            rzwierz Rafal Zwierz made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            Assignee abayer [ abayer ] Rafal Zwierz [ rzwierz ]
            rzwierz Rafal Zwierz made changes -
            Status Reopened [ 4 ] Open [ 1 ]
            markewaite Mark Waite made changes -
            Link This issue is related to JENKINS-22510 [ JENKINS-22510 ]
            markewaite Mark Waite made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Assignee Rafal Zwierz [ rzwierz ] Mark Waite [ markewaite ]
            Resolution Fixed [ 1 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            markewaite Mark Waite made changes -
            Link This issue is related to JENKINS-23694 [ JENKINS-23694 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 137475 ] JNJira + In-Review [ 204506 ]
            markewaite Mark Waite made changes -
            Link This issue is related to JENKINS-45705 [ JENKINS-45705 ]

              People

              • Assignee:
                markewaite Mark Waite
                Reporter:
                aaron_neerenberg aaron_neerenberg
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: