jenkinsci/locks-and-latches-plugin — pull request #1 by dcoraboeuf (2011-12-02 13:43:31+00:00)
Title: Exclusive and shared locks

Hi all,

The commit I propose to pull into the master repository is about enabling both exclusive and shared locks.

Installing a new version of this plug-in does not change existing configurations - locks remain exclusive by default. But starting from there, at job level, one can set a lock as being shared.

Typical scenario is:

* deployment on a server ==> exclusive mode
* automated test 1 on this server ==> shared mode
* automated test ... on this server ==> shared mode

It means that automated tests can run together on the server but not with a new deployment. In the same way, a deployment cannot occur when some tests are already running because it needs an exclusive lock.

Regards,
Damien.