Hi ,
Does anyone know if this is possible and if they have done it ? ie Having a slave being attached to and working for 2 different Jenkins masters ?
Thanks
Taher .
Thank you [Bjorn , Khai , Chanda ] for the responses .
I have set different remote root directories for both slaves and also set different ports for both . Am trying to connect via ssh .
Its still not happening : ie the connection is not maintained . Slave ‘a’ connects and then gets disconnected when slave ‘b’ connects . The ps output on the master shows only 1 slave jar process at any time .
The below is see in the log of the slave which gets disconnected . : any ideas ?
Note: Both the masters are at Jenkins 1.580.1
<===[JENKINS REMOTING CAPACITY]===>channel started
Slave.jar version: 2.47
This is a Unix slave
Slave successfully connected and online
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: fd 2 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 41.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 143
ERROR: Connection terminated
java.io.IOException: Unexpected termination of the channel
at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
Caused by: java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2325)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2794)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:801)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299)
at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:40)
at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
ERROR: Process terminated with exit code 143
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/CAEMChJjT4ih8cPtNveARw4sWzZrxShhZQiCgz0%2B%3DA%2BJ-u0WozA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.