Update Jenkinsfile

This commit is contained in:
AlexandrKharitonov 2021-12-06 17:45:51 +03:00
parent 17de3bbf2c
commit d9d86b7fb7

21
.jenkins/Jenkinsfile vendored
View File

@ -125,18 +125,17 @@ pipeline {
for ($i=30; $i -gt 0; $i--)
{
$statusCode = (cmd.exe /c "curl --connect-timeout 2 -L -s -o NUL -w %{http_code} https://helpcenter.onlyoffice.com/") | Out-String
$statusCode = (cmd.exe /c "curl --connect-timeout 2 -L -s -o NUL -w %{http_code} https://helpcenter.onlyoffice.com/") | Out-String
if ( $statusCode -eq 200 )
{
exit 0
}
else
{
Write-Host "helpcenter.onlyoffice.com not available"
Start-Sleep -s 60
}
if ( $statusCode -eq 200 )
{
exit 0
}
else
{
Write-Host "helpcenter.onlyoffice.com not available"
Start-Sleep -s 60
}
}
Write-Host "helpcenter.onlyoffice.com do not available after deploy within 30 minutes"