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

Git tool chooser picks JGit even when submodules are present

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • git-client-plugin
    • None
    • Git plugin 4.4.0 and later and git client plugin 3.5.1
    • Git plugin 4.5.1 released 26 Dec 2020

      To reproduce:

      • make sure JGit is available as Git tool in your setup
      • create a single branch pipeline from https://github.com/zbynek/submodule-grandparent , branch "main"
      • add "advanced submodule behaviors" and either left all checkboxes blank or check only recursive checkout

      Expected:

      • command line git is used and build works

      Actual

      • JGit is used and build fails

      Known workarounds: check some of the other checkboxes or fill in some fields (use parent credentials, max number of threads, ...)

      Notes: the code handles these options one by one source, it may be better to simply disable JGit when the submodule block is present.

            markewaite Mark Waite
            zbynek Zbynek Konecny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: