Working with build queues

I have set up a number of configurations for projects of deparment1, and all of them are under configuration "root.department1". Now I want to make sure that at the same time, only two builds can be performed for this department in order to save CPU resources for other departments.

  1. Create a queue, say queue_department1, with two working threads.

  2. Edit root configuration, and set the build queue as queue_department1 (This step is necessary that, queue_department1 will still be used even administrator of root.department1 set build queue as inherit from parent).

  3. For users of department1, assign them to groups with only queue_department1 authorized.

  4. In this way, subtree under root.department1 are limited to only use queue_department1.