Update Jenkinsfile
This commit is contained in:
parent
17de3bbf2c
commit
d9d86b7fb7
21
.jenkins/Jenkinsfile
vendored
21
.jenkins/Jenkinsfile
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user