Getting Launcher instance in Descriptor of builder

14 views
Skip to first unread message

Nikhil Bhoski

unread,
Apr 15, 2019, 5:37:56 AM4/15/19
to Jenkins Developers
I am trying to verify if the given path is valid on the system. User in put is String value . i do check this by invoking docheck methods in builder descriptor. 
However i cant use Jenkins.getInstance().getChannel() as it returns null is i am checking the path on remote slave . do any one know how can i get the Launcher instance or Virtual channel instance of Remote slave in Descriptor of Builder . 

Jesse Glick

unread,
Apr 15, 2019, 9:11:22 AM4/15/19
to Jenkins Dev
On Mon, Apr 15, 2019 at 5:38 AM Nikhil Bhoski <nikhil...@gmail.com> wrote:
> do any one know how can i get the Launcher instance or Virtual channel instance of Remote slave in Descriptor of Builder .

No, this is not possible. How would you know in advance what agent is
going to perform any build? It could change from build to build, and
the agent might not even exist yet.

Nikhil Bhoski

unread,
Apr 16, 2019, 5:51:19 AM4/16/19
to Jenkins Developers
Thank you ! 
Reply all
Reply to author
Forward
0 new messages