{
if ( distributedBuildManager.isAgentAvailable( buildAgentUrl ) )
{
SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
String releaseId =
client.releasePerformFromScm( goals, arguments, useReleaseProfile, map, scmUrl, scmUsername,
scmPassword, scmTag, scmTagBase, environments, username );
addReleasePrepare( releaseId, buildAgentUrl, scmTag, "perform" );
addReleaseInProgress( releaseId, "perform", projectId, username );