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

Support for recursive retrieval of submodules

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      The git SCM plugin should provide the ability to automatically retrieve all submodules recursively. Developers often setup their repos to have a recursive submodule structure. It also doesn't make sense to have to manually enter git submodule update commands in the build shell commands just to initialize things properly.

      Recursive submodule retrieval (update) can be easily done using the '--recursive' option which is available in git 1.6.5. This option should be disabled by default.

      I've attached a patch that will implement this (see recursiveSubmodules-patch.diff). This patch was applied to commit 6c842954608. It also contains code to recursively clean the workspace's submodules if the 'Clean after checkout' option is selected.

        Attachments

          Activity

            People

            • Assignee:
              abayer Andrew Bayer
              Reporter:
              bvakili bvakili
            • Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: