//bdt = bds.addBuildDefinitionInTemplate( bdt, bd, true );
File rootPom = getTestFile( "src/test/resources/projects/continuum/continuum-core/pom.xml" );
assertTrue( rootPom.exists() );
ContinuumProjectBuildingResult result = getContinuum().addMavenTwoProject(
rootPom.toURI().toURL()
.toExternalForm(), -1, true,
false, true, bdt.getId() );
assertNotNull( result );
assertEquals( 1, result.getProjects().size() );
Project project = result.getProjects().get( 0 );
assertNotNull( project );
project = getContinuum().getProjectWithBuildDetails( project.getId() );
log.info( "project buildDef list size : " + project.getBuildDefinitions().size() );
// build def only at the group level du to group creation
assertEquals( 0, project.getBuildDefinitions().size() );
log.info( "all pg size " + getContinuum().getAllProjectGroups().size() );
ProjectGroup pg = result.getProjectGroups().get( 0 );
pg = getContinuum().getProjectGroupWithBuildDetails( pg.getId() );
log.info( " pg groupId " + pg.getGroupId() );
//@ group level the db from template must be used