• Icon: Story Story
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-client-plugin
    • None

      For some reason, the git-client plugin iterates through the list of submodules (presumably by parsing the .gitmodules file) and manually issues a git submodule update command for each. Instead of this, it should simply issue a single git submodule update command without specifying a particular submodule, and then let the CLI do its job.

      As part of this change, the new threads property of SubmoduleUpdateCommand should just be passed as --jobs rather than manually spawning threads in Java/Groovy.

          [JENKINS-60052] Simplify git submodule update command

          Jesse Rittner created issue -
          Jesse Rittner made changes -
          Summary Original: Simplify git submoudle update command New: Simplify git submodule update command
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Jesse Rittner made changes -
          Description Original: For some reason, the git-client plugin iterates through the list of submodules (presumably by parsing the .gitmodules file) and manually issues a {{git submodule update}} command for each. Instead of this, it should simply issue a single {{git submodule update}} command without specifying a particular submodule, and the let the CLI do its job.

          As part of this change, the new {{threads}} property of SubmoduleUpdateCommand should just be passed as {{--jobs}} rather than manually spawning threads in Java/Groovy.
          New: For some reason, the git-client plugin iterates through the list of submodules (presumably by parsing the .gitmodules file) and manually issues a {{git submodule update}} command for each. Instead of this, it should simply issue a single {{git submodule update}} command without specifying a particular submodule, and then let the CLI do its job.

          As part of this change, the new {{threads}} property of SubmoduleUpdateCommand should just be passed as {{--jobs}} rather than manually spawning threads in Java/Groovy.

            Unassigned Unassigned
            rittneje Jesse Rittner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: