I have been trying to set the environment variables GIT_AUTHOR_EMAIL and GIT_COMMITTER_EMAIL so that the GIT plugin for Jenkins claims to be setting(https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin).
I see that the rest of the environment variables viz. GIT_URL, GIT_BRANCH, GIT_COMMIT, GIT_PREVIOUS_COMMIT are set accurately for each of the jenkins jobs.
I am testing this by printing out all the environment variables in a jenkins jobs shell script build step by using printenv.
Can somebody please let me know if I am missing something here ? Here are few of the possible reasons that I could think of..
- Bug with the plugin
- Issue with Jenkins setup/config
- Issue with GIT config in Github..
Please help me in this regard.
Thanks!
p.s. I also saw a similar question is left unanswered (Github-plugin for Jenkins get committer and author name)