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

Git plugin does not support Git 1.8.2 "integrate with the tip of the remote branch" submodule branch tracking feature.

    XMLWordPrintable

    Details

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

      Description

      Git 1.8.2 introduced tracking of a branch instead of linking to a single commit of a submodule (like subversion externals). Description of the feature:

      http://stackoverflow.com/questions/9189575/git-submodule-tracking-latest
      http://bec-systems.com/site/1020/git-submodules-can-now-track-branches

      To use it when updating submodules -remote parameter should be added:

      git submodule update --remote

      The feature is not currently supported by jenkins git plugin, as far as I know there is no workaround to use it.

      I am thinking about 2 possible solutions:

      1. Add an option to git project settings "Enable remote branch updating on submodule update"

      2. Add a "custom git command line options" field for each internal git step.

      Option 1 will be very specific and might fail on Git versions earlier than 1.8.2, option 2 can be more useful in solving other git plugin limitations. Option 3 would be to implement 1 and 2.

        Attachments

          Activity

          Hide
          ndeloof Nicolas De Loof added a comment -

          Can be implemented as a git-plugin 2.0 Extension.

          Show
          ndeloof Nicolas De Loof added a comment - Can be implemented as a git-plugin 2.0 Extension.
          Hide
          markewaite Mark Waite added a comment - - edited

          A pull request is currently being evaluated which will add git-client-plugin support for submodule tracking. A matching pull request has been proposed for git-plugin.

          We'd love to have your help evaluating those two pull requests.

          Show
          markewaite Mark Waite added a comment - - edited A pull request is currently being evaluated which will add git-client-plugin support for submodule tracking. A matching pull request has been proposed for git-plugin. We'd love to have your help evaluating those two pull requests.
          Hide
          markewaite Mark Waite added a comment -

          Pull request has been included in git-client-plugin 1.7.0.

          Show
          markewaite Mark Waite added a comment - Pull request has been included in git-client-plugin 1.7.0.
          Hide
          markewaite Mark Waite added a comment - - edited

          The pull request for the git-plugin has been included in git-plugin 2.2.0, release 4 Apr 2014.

          Show
          markewaite Mark Waite added a comment - - edited The pull request for the git-plugin has been included in git-plugin 2.2.0 , release 4 Apr 2014.

            People

            • Assignee:
              markewaite Mark Waite
              Reporter:
              too Michal Turecki
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: