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