Thank Mark, So each slave instance(on slave machine) is running in a separated sandbox, although they are running on same machine, they are not communicate with each other.
And multiply masters (when they share a same slave) will deliver job to the slave at the same time, since these masters do not know whether there is job(delivered from other master) is running. Shen Hui (慎辉) BB - F2 - AW264|x28530 发件人: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] 代表 Mark Waite 发送时间: 2012年9月20日 20:06 收件人: jenkinsci-users@googlegroups.com 主题: Re: Can a slave can be shared between masters 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<mailto:shenhu...@baidu.com>> To: "jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>" <jenkinsci-users@googlegroups.com<mailto: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