Re: Fwd: Disconnect node / reconnect node programmatically (Groovy)

2017-12-19 Thread sridevikishoret
> > Hi, > >I want to have a script (bash) which can disconnect & reconnect a Jenkins slave connected through JNLP. Please do the needful. Thanks & Regards, Sridevi -- You received this message because you are subscribed to the Googl

Re: Fwd: Disconnect node / reconnect node programmatically (Groovy)

2014-11-02 Thread felix schwitzer
My code snippet was just a starting point. To elaborate your use case you may need to do some investigations; a good start point may be http://javadoc.jenkins-ci.org/ On 2014-10-21 01:18, pjl83...@gmail.com wrote: Just to be clear, the solution you proposed for connecting is not just for han

Re: Fwd: Disconnect node / reconnect node programmatically (Groovy)

2014-10-20 Thread pjl83211
Just to be clear, the solution you proposed for connecting is not just for handling the temporary offline case? Do you also have a solution for *disconnecting a slave,* not just temporarily taking it offline (I want to close the channel of communication between master and slave)? In the* reco

Re: Fwd: Disconnect node / reconnect node programmatically (Groovy)

2014-10-20 Thread felix
something like import jenkins.model.*; for (slave in Jenkins.instance.slaves) { def comp=slave.computer; if (comp.isOffline()) { if (comp.getOfflineCauseReason().matches(".*computer was idle.*")) { comp.connect(true); } else { println("${comp.name} went offline unexpected"

Fwd: Disconnect node / reconnect node programmatically (Groovy)

2014-10-17 Thread pjl83211
On Friday, October 17, 2014 11:09:04 AM UTC-7, pjl8...@gmail.com wrote: > > Hi > > I need to disconnect and reconnect nodes programmatically ( in groovy if > possible) > is there a way to do this? > > Thanks > Peter > -- You received this message because you are subscribed to the Google Gro

Fwd: Disconnect node / reconnect node programmatically (Groovy)

2014-10-17 Thread pjl83211
On Friday, October 17, 2014 11:09:04 AM UTC-7, pjl8...@gmail.com wrote: > > Hi > > I need to disconnect and reconnect nodes programmatically ( in groovy if > possible) > is there a way to do this? > > Thanks > Peter > -- You received this message because you are subscribed to the Google Gro