I've found if I use jgit instead of a system installed git, the webhook is working as expected
We did see a different issue where git publisher failed when trying to push tags during post-build:
The recommended git tool is: NONE
using credential xxx
Pushing tag v25.34 to repo origin
RefSpec is "refs/tags/v25.34:refs/heads/v25.34".
Opening connection
Counting objects
Finding sources
Writing objects
ERROR: Failed to push tag v25.34 to origin
hudson.plugins.git.GitException: failed REJECTED_OTHER_REASON for 'refs/tags/v25.34:refs/heads/v25.34' refspec 'v25.34' to git@xxx:team/app.git
at org.jenkinsci.plugins.gitclient.JGitAPIImpl$8.execute(JGitAPIImpl.java:1887)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)
It seems like this is a separate issue (
JENKINS-37120), but I was able to use the suggested workaround and get it working (specify full tag path like refs/tags/xxx).
Summary:
* using jgit instead of system installed git
* both webhook and git publisher are working