I am using the git plugin and use a Jenkinsfile, however none of the GIT 
environment variables are being set according to the git plugin 
documentation here: https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin 
in section Environment variables.

Jenkins is installed on Windows Server 2012 R2 and I have this command 
after my checkout but none of the GIT variables are present:

bat 'set'

I can see the typical Jenkins ones like WORKSPACE, JENKINS_URL, etc

I want access to these:

GIT_LOCAL_BRANCH
GIT_URL

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a5a4a9a3-6ce6-4345-8367-8ecf06234e15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to