Hi,

I apologize if this is basic stuff

I have a pipeline job with a jenkinsfile, as a result when the pipeline 
runs there is an scm object, 

hudson.plugins.mercurial.MercurialSCM


I notice in the source code that there is


public void buildEnvVars(AbstractBuild<?,?> build, Map<String, String> env)


Which injects MERSURIAL_REVISION, MERCURIAL_REVISION_BRANCH etc.


Now a brief google gives me the impression that that method should be called 
automatically by AbstractBuild.


But if I do


sh "set"


none of those Mercurial environment are visible


So do I have to do something explicit in order to gain access to those values?


thanks


Jon

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0191c8ac-07d1-40e7-82f3-f0aa184435b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to