if ( isProjectInReleaseStage( project ) )
{
throw new ContinuumException( "Project (id=" + projectId + ") is currently in release stage." );
}
BuildDefinition buildDef = getDefaultBuildDefinition( projectId );
if ( buildDef == null )
{
throw new ContinuumException( "Project (id=" + projectId + " doens't have a default build definition." );
}
if ( !isProjectOkToBuild( projectId, buildDef.getId() ) )
{
return;
}
Map<Integer, Integer> projectsBuildDefinitionsMap = new HashMap<Integer, Integer>();
projectsBuildDefinitionsMap.put( projectId, buildDef.getId() );
ProjectScmRoot scmRoot = getProjectScmRootByProject( projectId );
List<ProjectScmRoot> sortedScmRoot = new ArrayList<ProjectScmRoot>();
sortedScmRoot.add(scmRoot);