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

git modules can not apply branch in .gitmodules

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • git-plugin
    • None

      Environment:

      Jenkins ver. 2.75
      Git clent plugin ver 2.6.0
      Git Plugin ver 3.6.4
      Credentials Plugin ver 2.1.16
      SSH Credentials Plugin  ver 1.13

      Step:

      we have .gitmodules file in main repository, and has sub repository like this:

      [submodule "platform/planx"]
              path = platform/planx
              url = git@XXXXXXXXX.git
              branch = release

      the sub repository has several branch, such as master, develop, release, and we want to use release to build

      jenkins config:

      use "Advanced sub-modules behaviours"

      tick "Recursively update submodules"

      tick "Use credentials from default remote of parent repository"

       

      Then when build use jenkins, it use my branch master of sub repository instead of branch release

            Unassigned Unassigned
            spiderpoison zhen zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: