taskQueueExecutor.cancelTask( currentTask );
try
{
SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
client.cancelBuild();
}
catch ( Exception e )
{
log.error( "Error while cancelling build in build agent '" + buildAgentUrl + "'" );
throw new ContinuumException( "Error while cancelling build in build agent '" + buildAgentUrl + "'", e );