in src/Artifacts/Tasks/Robocopy.cs [255:276]
private void LogCopyFailureAndSleep(int attempt, string message, params object[] args)
{
if (attempt > 0)
{
message += $" : retry {attempt}/{RetryCount}";
}
if (ShowErrorOnRetry)
{
Log.LogError(message, args);
}
else
{
Log.LogMessage(message, args);
}
if (attempt < RetryCount && RetryWait > 0)
{
Log.LogMessage("attempt in {0}ms", RetryWait);
Sleep(_retryWaitInMilliseconds);
}
}