зеркало из https://github.com/mono/SkiaSharp.git
Add retry warnings the the devops output
This commit is contained in:
Родитель
3968aaf97c
Коммит
df031f291d
|
@ -17,9 +17,9 @@ Process {
|
|||
} catch {
|
||||
$Attempt = $Attempt + 1
|
||||
if ($Attempt -lt $RetryCount) {
|
||||
Write-Host "[$Attempt of $RetryCount] Script failed to execute, retrying..."
|
||||
Write-Host "##vso[task.logissue type=warning] ($Attempt of $RetryCount) Script failed to execute, retrying..."
|
||||
} else {
|
||||
Write-Host "[$Attempt of $RetryCount] Script failed to execute."
|
||||
Write-Host "##vso[task.logissue type=warning] ($Attempt of $RetryCount) Script failed to execute."
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,9 +8,9 @@ function retry()
|
|||
"$@" && break || {
|
||||
((Attempt++))
|
||||
if [[ $Attempt -lt $RetryCount ]]; then
|
||||
echo "[$Attempt of $RetryCount] Script failed to execute, retrying..."
|
||||
echo "##vso[task.logissue type=warning] ($Attempt of $RetryCount) Script failed to execute, retrying..."
|
||||
else
|
||||
echo "[$Attempt of $RetryCount] Script failed to execute.">&2
|
||||
echo "##vso[task.logissue type=warning] ($Attempt of $RetryCount) Script failed to execute.">&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче