Committer identity unknown (missing git commit author error)

Running jenkins in kubernetes I get this error during a build/pipelineJob (where I commit, tag, release):

09:10:08  Committer identity unknown
09:10:08  
09:10:08  *** Please tell me who you are.
09:10:08  
09:10:08  Run
09:10:08  
09:10:08    git config --global user.email "you@example.com"
09:10:08    git config --global user.name "Your Name"
09:10:08  
09:10:08  to set your account's default identity.
09:10:08  Omit --global to set the identity only in this repository.
09:10:08  
09:10:08  fatal: unable to auto-detect email address (got 'jenkins@jenkins-agent-2994b93a-2852-43df-bdaa-cce2e70352fd-n05kg-l35fr.(none)')

even though I have configured user.name and user.email in the git plugin (Global configuration)

image

Any suggestions on how to pick up that information in the build agent?

UPDATE: Potentially related to this (5 year old!) bug:
https://issues.jenkins.io/browse/JENKINS-46052