plugin dev questions on slaves (sqlplus-script-runner-plugin)

23 views
Skip to first unread message

Fernando Boaglio

unread,
Dec 17, 2015, 3:39:55 PM12/17/15
to Jenkins Developers

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

│◦└̅┘◦ ◦ ﴾̭▒̭̊▒̭̊﴿ ﴾̭▓̭̊▓̭̊﴿ ﴾̭░̭̊░̭̊﴿ ◦ ◦ (͡ < ◦ ● ◦└̅┘◦│

Oleg Nenashev

unread,
Dec 20, 2015, 4:10:51 AM12/20/15
to Jenkins Developers
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 написал:

Fernando Boaglio

unread,
Dec 21, 2015, 12:06:22 AM12/21/15
to Jenkins Developers

Thank you Oleg, I need ORACLE_HOME variable to run  a executable file.

After I put the logic inside the callable method and use a System call, I was able to make it work... thanks!

 =)



--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/Qo3jtVk4XwE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
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.



--

Fernando Boaglio

│◦└̅┘◦ ◦ ﴾̭▒̭̊▒̭̊﴿ ﴾̭▓̭̊▓̭̊﴿ ﴾̭░̭̊░̭̊﴿ ◦ ◦ (͡ < ◦ ● ◦└̅┘◦│


Reply all
Reply to author
Forward
0 new messages