jenkinsci/jenkins — pull request #451 by recampbell (2012-04-21 16:53:39+00:00)
Title: CauseOfBlockage not displayed when build blocked by QueueTaskDispatcher.canRun()

If a QueueTaskDispatcher returns a CauseOfBlockage for canRun(), the build is blocked, but no reason is given. This patch adds a test to verify the fix.

This bug highlights a problem in code reuse between Queue.isBuildBlocked() and Item.getCauseOfBlockage(), but such refactoring is beyond the scope of this patch.