Hi Dzmitry,

I am a begineer in the creation of Jenkins plugin, but maybe try to add the 
following line in your pom.xml:


<properties>

    <jenkins.YOURNEWVAR>${env.YOURNEWVAR}</jenkins.YOURNEWVAR>

</properties>


and then you can reach it from your plugin using 

System.getProperty("jenkins.YOURNEWVAR");


Also, you may have to use this plugin to create a custom environment 
variable: https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin

On Monday, July 18, 2016 at 12:54:45 PM UTC+2, 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/39d11364-8a71-48a8-b2bf-3d2fac40e379%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to