Locks-and-latches plugin fails to lock jobs from the queue

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major
    • Component/s: other
    • None
    • Environment:
      Platform: All, OS: All

      Under certain conditions, the Locks-and-latches plugin does not prevent jobs
      from running simultaneously.

      I have 2 jobs (A and B) configured to aquire the same lock.

      • "Build now" job A, it starts to run
      • "Build now" job B, it remains in the queue
      • "Build now" job A again while the previously scheduled build is is still running
        ---> in the queue: A and B
      • the first build of A finishes
        --> both builds from the queue start simultaneously!

      Expected: one job from the queue wins and is built first.

      Maybe related to bug 2083

            Assignee:
            Unassigned
            Reporter:
            gradopado
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: