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

Git plugin no longer updates submodules with spaces in the name

    Details

    • Similar Issues:

      Description

      If a submodule has a space in its name then Jenkins will fail to update that submodule. It looks like the reason is that the regex search has changed from:

      git config -f .gitmodules --get-regexp ^submodule\.(.*)\.url

      to:

      git config -f .gitmodules --get-regexp ^submodule\.([^ ].*)\.url

      This now ignores a submodule with a name something like:

      Stingray/Stingray Studio 12.2

        Attachments

          Issue Links

            Activity

            stevebaxter Steve Baxter created issue -
            stevebaxter Steve Baxter made changes -
            Field Original Value New Value
            Component/s git-plugin [ 15543 ]
            Component/s git-client-plugin [ 17423 ]
            stevebaxter Steve Baxter made changes -
            Environment Jenkins 2.89.2
            markewaite Mark Waite made changes -
            Component/s git-client-plugin [ 17423 ]
            Component/s git-plugin [ 15543 ]
            markewaite Mark Waite made changes -
            Description If a submodule has a space in its name then Jenkins will fail to update that submodule. It looks like the reason is that the regex search has changed from:
            {code:java}
            git config f .gitmodules --get-regexp ^submodule\.(.*)\.url{code}
            to:
            {code:java}
            git config f .gitmodules --get-regexp ^submodule\.([^ ].*)\.url{code}
            This now ignores a submodule with a name something like:

            Stingray/Stingray Studio 12.2
            If a submodule has a space in its name then Jenkins will fail to update that submodule. It looks like the reason is that the regex search has changed from:
            {code:java}
            git config -f .gitmodules --get-regexp ^submodule\.(.*)\.url{code}
            to:
            {code:java}
            git config -f .gitmodules --get-regexp ^submodule\.([^ ].*)\.url{code}
            This now ignores a submodule with a name something like:

            Stingray/Stingray Studio 12.2
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-48997 [ JENKINS-48997 ]
            markewaite Mark Waite made changes -
            Labels regression
            markewaite Mark Waite made changes -
            Link This issue is related to JENKINS-46054 [ JENKINS-46054 ]
            markewaite Mark Waite made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: