Solved.

build.getEnvironment(listener)


should be used.

On Monday, July 18, 2016 at 1:54:45 PM UTC+3, Dzmitry Kashlach wrote:
>
> Hi All,
>
> Please, guide me over Jenkins API.
> I have plugin which works both with master&slave.
> I want to be able to pass variables to job.
> I set vars in 'Manage Jenkins' -> 'Configure System'
> but do not receive them when doing 'EnvVars.getRemote(VirtualChannel 
> channel)'.
>
> How can I grab my vars?
>
> Please, redirected me, if this question is solved.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" 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-dev/4001dd07-b1ae-4a58-ada7-aefa9c6eb22c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to