On Monday, May 18, 2015 at 4:24:25 AM UTC-4, Carlos Lucas wrote:
>
> I tried with* System.getenv()["myVar"],* *currentBuild.getEnvironment(null), 
> env.myVar * and accessing like a normal variable but nothing works. Do 
> you know how can I do it?
>

env.myVar works, so long as you are inside a node {} block.

>  
>

-- 
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/c4cd7816-c42b-4d12-add5-820f0c879caf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to