You can have multiple jenkins masters configured with the same connection
details (ensure you select distinct remote paths mind) and connect them to
the same machine.

The only issue you may see is if all the Jenkins masters try to run builds
on that node at the same time. The Jenkins masters have no way to
communicate or coordinate the sharing of the same physical resource.

If the risk of multiple parallel usage is a major worry there are some ways
to work around that:

1. Have a prefix or suffix start command that obtains a "lock" file or
exits with a non-zero exit code and do not have the slaves with "Always
connected" strategy.... requires manual setup, and if for any reason the
"lock" file is stale no builds will take place until you manually intervene

<warning message="advert">
2. Use a commercial offering for sharing slaves between masters a.k.a.
Jenkins Operations Center by CloudBees.
</warning>

But if you don't see that as a major risk, just go ahead and connect the
three masters to the same machine!


On 16 July 2014 16:51, Kevin <[email protected]> wrote:

> Hi, all:
>
> I have two Jenkins masters trying to run a test, and that test resides in
> single computer which is hooked up with test hardware set.
>
> My question is:
> Can I turn that computer (which is connected to test hardware) into a
> Jenkins slave so that both Jenkins master can run test when needed?
>
> Thanks!
>
> Kevin
>
>
>  --
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to