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

Tool type "jgit" does not have an install of "jgit" configured

      The Declarative Directive Generator gives this for using a configured JGit tool

      tools {
        jgit 'jgit'
      }
      

      However, it doesn't actually work

      Tool type "jgit" does not have an install of "jgit" configured - did you mean "null"?

      The same happens for the Apache HTTP variant.

          [JENKINS-59051] Tool type "jgit" does not have an install of "jgit" configured

          Mark Waite added a comment - - edited

          The issue is in the declarative syntax generator or possibly in the class structure of the git client plugin. The syntax:

          tools {
            git 'jgit'
          }
          

          should work. Unfortunately, I detect no difference in log output or behavior no matter what syntax I use for the `git` tool in the `tools` directive. I see the same output whether I use:

          tools {
            git 'Default'
          }
          

          or

          tools {
            git 'git-windows' // I have a git-windows installer configured which runs a specific path of git on Windows
          }
          

          That may be why the docs only list maven, jdk, and gradle. The syntax helper offers values for `git` but they seem to either be ignored or be so subtle that I'm not seeing what I expect in the output.

          If I use a multibranch pipeline and define the git implementation in the multibranch pipeline as 'jgit', then jgit is used to generate the declarative pipelines in that multibranch pipeline.

          Mark Waite added a comment - - edited The issue is in the declarative syntax generator or possibly in the class structure of the git client plugin. The syntax: tools { git 'jgit' } should work. Unfortunately, I detect no difference in log output or behavior no matter what syntax I use for the `git` tool in the `tools` directive. I see the same output whether I use: tools { git 'Default' } or tools { git 'git-windows' // I have a git-windows installer configured which runs a specific path of git on Windows } That may be why the docs only list maven , jdk , and gradle . The syntax helper offers values for `git` but they seem to either be ignored or be so subtle that I'm not seeing what I expect in the output. If I use a multibranch pipeline and define the git implementation in the multibranch pipeline as 'jgit', then jgit is used to generate the declarative pipelines in that multibranch pipeline.

            Unassigned Unassigned
            jameshowe James Howe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: