Hi

At this moment I defined a environment variable called TEST1 with the value 
'myvalue' under Manage Jenkins -> Configure System -> Global Properties. I 
have a groovy script when a project is being build containing

def env = System.getenv()
println(env['TEST1'])
println(env['USER'])

i got 

myvalue
lroot

while in the Extensible Choice -> System Groovy Choice Parameter -> Groovy 
System Script i run the same scripts but i got only lroot

is there a way to get the environment variable in the extensible-choice 
like jenkins user hudson.model.User.current() or 
  hudson.model.Hudson.instance.getAuthentication().getName()

thank and regards zacky

-- 
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/f9229fc6-e724-4516-8513-2d4290c4969b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to