If your goal is to determine the author name or committer name of the commit which is the HEAD of the current repository, then you'll need to use a technique like I've illustrated in the JENKINS-52511/Jenkinsfile.
There are earlier bug reports which reminded me that the meaning of GIT_COMMITTER_NAME in a Freestyle job may not be what people are expecting. A 2013 comment in JENKINS-20386 hints that the GIT_COMMITTER_NAME in Freestyle jobs means "the name that will be used for any commits from this repository". In that context at that time, it did not mean "the name of the committer of the most recent commit in the working directory".
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.