[CONTINUUM-2476] Projects are not built in the correct build agent when the project is already in the build queue and then triggered to be built again
- added unit tests
- fix concurrent modification exception
- added checks to see if project and build definition is already in queue or currently preparing build or building
- select the build agent based on the scm roots of the same project group
|