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

Git submodules are cloned too early and not removed once the revToBuild has been checked out

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None

      See http://pastebin.com/UkFcVesT for "extra" git tasks being ran.

      L4 clones the HEAD branch (usually master)
      L7 and L8 bring in the HEAD's submodules.
      L13 check's out the branchToBuild.

      L14-L16 update the submodules to match the branchToBuild. But does not delete any submodules present in HEAD, but not present in branchToBuild.

      The current process is:
      clone, fetch, submodule init, submodule update, rev-parse, checkout, submodule init, submodule sync, submodule update

      The correct proecess should be:
      clone, fetch, rev-parse, checkout, submodule init, submodule sync, submodule update

      I've forked the plugin on github and will commit a fix once I have the Issue #...

          [JENKINS-8503] Git submodules are cloned too early and not removed once the revToBuild has been checked out

          kiall created issue -
          olsonse made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          olsonse made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-22510 [ JENKINS-22510 ]
          Kelly Johnson made changes -
          Link New: This issue is related to JENKINS-14083 [ JENKINS-14083 ]
          Kelly Johnson made changes -
          Link New: This issue is related to JENKINS-15399 [ JENKINS-15399 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 138613 ] New: JNJira + In-Review [ 174940 ]
          Mark Waite made changes -
          Assignee Original: Andrew Bayer [ abayer ]

            Unassigned Unassigned
            kiall kiall
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: