{
log.debug(
"Checking if project {} with build definition {} is currently queued or processed in agent {}",
new Object[]{projectId, buildDefinitionId, buildAgentUrl} );
SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection(
buildAgentUrl );
if ( client.isProjectInPrepareBuildQueue( projectId, buildDefinitionId ) ||
client.isProjectCurrentlyPreparingBuild( projectId, buildDefinitionId ) ||
client.isProjectInBuildQueue( projectId, buildDefinitionId ) ||
client.isProjectCurrentlyBuilding( projectId, buildDefinitionId ) )
{
log.debug(
"Project {} with build definition {} is currently queued or processed in agent {}",
new Object[]{projectId, buildDefinitionId, buildAgentUrl} );
agentUrl = buildAgentUrl;