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

need option to list specific submodules to init instead of all

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: git-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      Hi,

      We have a very large project that has around 15 submodules. Some of the pipelines we have clone the parent project and init all submodules, via the git plugin with advanced submodule behavior and works well.

      But for some stages of that pipeline that run on a completely different build agent... their filesystem doesn't have that workspace, and the specific test activity that occurs in that stage (on that unique build agent) only needs the parent project and 1 of the 14 submodules.

      For those stages, we'd like to be able to use the plugin to clone that parent project and specify 1 submodule to init, instead of all submodules, this would save an enormous amount of time/storage/network, as each of these submodules are huge.

        Attachments

          Activity

          Hide
          markewaite Mark Waite added a comment - - edited

          This seems like another good use case for the proposed enhancement to add pipeline wrapper steps withGitHTTPCredentials and withGitSSHCredentials. Those wrapper steps would then allow you to embed sh, bat, and powershell steps inside them and have full control of the exact git command used to clone the repository.

          Show
          markewaite Mark Waite added a comment - - edited This seems like another good use case for the proposed enhancement to add pipeline wrapper steps withGitHTTPCredentials and withGitSSHCredentials . Those wrapper steps would then allow you to embed sh , bat , and powershell steps inside them and have full control of the exact git command used to clone the repository.

            People

            • Assignee:
              Unassigned
              Reporter:
              borisivan boris ivan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: