Which system properties do you want to get?
A good practice is to send them along with the request (define a final 
variable before remote call and then use it within it), but it is also 
possible to get them via backward call to the master.

System properties can be also retrieved locally by direct calls to System 
methods.




четверг, 17 декабря 2015 г., 23:39:55 UTC+3 пользователь Fernando Boaglio 
написал:
>
>
> Hi,
>  
> After a great contribution of @kinow , I was able to understand and run my 
> plugin on slave machines. \o/
>
> There is only one issue:  how is the *right *way to get System variables 
> from a slave machine?
>
>
> calling *Computer.currentComputer().getEnvironment();* outside Callable  
> - I get variables from the server, not from the slave machine
>
> calling *Computer.currentComputer().getEnvironment();* inside Callable  - 
> I get a *NullPointerException*
>
>
> Thanks for your help
>
> =) 
>
>
>
> *Fernando Boaglio*│◦└̅┘◦ ◦ ﴾̭▒̭̊▒̭̊﴿ ﴾̭▓̭̊▓̭̊﴿ ﴾̭░̭̊░̭̊﴿ ◦ ◦ (͡ < ◦ ● 
> ◦└̅┘◦│
>
>

-- 
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/dcc970c3-7265-4493-8167-0e60ede1fffd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to