map.put( ContinuumBuildAgentUtil.KEY_PROJECT_GROUP_ID, new Integer( buildContext.getProjectGroupId() ) );
map.put( ContinuumBuildAgentUtil.KEY_SCM_ROOT_ADDRESS, buildContext.getScmRootAddress() );
try
{
MasterBuildAgentTransportClient client = new MasterBuildAgentTransportClient(
new URL( buildAgentConfigurationService.getContinuumServerUrl() ) );
client.startPrepareBuild( map );
}
catch ( MalformedURLException e )
{
log.error( "Invalid continuum server URL '" + buildAgentConfigurationService.getContinuumServerUrl() + "'" );
throw new ContinuumException( "Invalid continuum server URL '" + buildAgentConfigurationService.getContinuumServerUrl() + "'", e );