I use this technique frequently with good results. One machine has been able to host slaves from different masters for me so long as I assign a different directory to each slave. In my case, I include the name of the master in the slave directory path so that I will now which master is using that directory based on the path to the slave directory.
/var/lib/jenkins/markwaite2-slave/ is the path (on the slave) for a slave that is serving the markwaite2 Jenkins master. Mark Waite >________________________________ > From: "Shen,Hui" <shenhu...@baidu.com> >To: "jenkinsci-users@googlegroups.com" <jenkinsci-users@googlegroups.com> >Sent: Wednesday, September 19, 2012 10:44 PM >Subject: Can a slave can be shared between masters > > >Hi guys, > >I have a cluster environment with several Jenkins master, and also many >slavers; does anybody know can slavers be shared within different masters. For >example master1 and masters they have same slave machine slave1; so what will >happen if both master1 and master2 deliver a task to slave2 ? >Thanks very much. > > >Shen Hui >BB - F2 - AW264|x28530 > > >