Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: git-plugin
-
Labels:None
-
Environment:Jenkins 2.249.1
Git plugin 4.4.2
-
Similar Issues:
-
Released As:Git client plugin 3.5.1 and git plugin 4.4.4
Description
I have a job that verified JENKINS-38240 is still resolved and that the git publisher can push a tag even when the freestyle project performs a checkout to a subdirectory. The test is known to only work with command line git. It fails with JGit because JGit does not implement the git publisher.
Unfortunately, in my case, the repository is small enough that the git tool chooser chooses JGit as the implementation instead of command line git. If I disable the git plugin performance improvements from "Manage Jenkins" -> "Configure System", then the publishing works.
The git publisher is a post build action, so it cannot be as easily detected as the other implementations that are used to decide if an alternate implementation may be recommended by the git tool chooser.
If a job uses the git publisher post build action, the git tool chooser should not choose either jgit or jgitapache. See the verification job definition in my private repository.
Mark Waite Thanks for reporting this issue. While designing the GitToolChooser and the UnsupportedCommand I missed to check the compatibility between JGit and Git Publisher, hence it ignores the fact that Git Publisher is not implemented by JGit.
However, I am unable to check the verification job definition posted within the issue description, it gives me a 403. It would be great if I can reproduce this issue in my system as I have written the fix but I need to interactively test it.