-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
Platform: All, OS: All
I have tried to use one major job to trigger many other jobs. for serializing
the parallel triggerd jobs I used the locks-and-latches plugin. but if the jobs
are triggered in the same second (in parallel) the locks have no effect -> the
triggered jobs were executed in parallel. if I trigger some jobs manual (with a
short delay) the locks works fine.
I think that the locks will be locked to late, so a second job can be run in
parallel.
There is a bug in Hudson's queue whereby two jobs which use the same resource
can start at the same time if they both enter the queue at the same time.
locks&latches uses a second level lock to ensure that even if this happens, only
one project can actually build at a time.
The second level lock stops the build from actually progressing until the lock
has been fully acquired.... you should see messages in the console informing you
about the second level lock