-
Bug
-
Resolution: Unresolved
-
Major
-
Jenkins 2.176.2
Git Plugin 3.12.0
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.
The issue is in the declarative syntax generator or possibly in the class structure of the git client plugin. The syntax:
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:
or
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.