Issue with maven-release-plugin while using with CircleCI


Hi Team,

I am trying to use maven-release-plugin to release to Nexus release repository and this is working fine, when I am running locally in my PC. However, when I have configured the same in my job in circleci i am getting the below error.

[INFO] Executing: /bin/sh -c cd /home/circleci/repo && git commit --verbose -F /tmp/maven-scm-724046220.commit pom.xml
[INFO] Working directory: /home/circleci/repo
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.414 s
[INFO] Finished at: 2018-10-11T17:00:30Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project : Unable to commit files
[ERROR] Provider message:
[ERROR] The git-commit command failed.
[ERROR] Command output:
[ERROR] *** Please tell me who you are.
[ERROR]   git config --global ""
[ERROR]   git config --global "Your Name"
[ERROR] to set your account's default identity.
[ERROR] Omit --global to set the identity only in this repository.
[ERROR] fatal: empty ident name (for <(null)>) not allowed
[ERROR] -> [Help 1]

I have used the below scm in my pom.xml (because of formatting issues i have not given the xml)

connection -
url -
developerConnection -

I am using the below in my job -

mvn release:clean release:prepare release:perform -DreleaseVersion=${BUILD_VERSION_NUM} -DupdateWorkingCopyVersions=false -Dtag=${VERSION_NUM}

Any suggestion, why git-commit command is failing in circleci. Any specific setting I have to do.

Many thanks,