1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-26 01:37:44 +00:00

core: fix azure pipeline (#8159)

This commit is contained in:
Diego Heras 2020-04-13 01:30:08 +02:00 committed by GitHub
parent b5f5e7d619
commit 5ce1907da1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -512,7 +512,7 @@ stages:
inputs: inputs:
targetType: inline targetType: inline
script: | script: |
$json = Invoke-WebRequest 'https://dev.azure.com/jackett/jackett/_apis/build/builds/$(Build.BuildId)/logs?api-version=5.0' | ConvertFrom-Json $json = Invoke-WebRequest 'https://dev.azure.com/Jackett-project/jackett/_apis/build/builds/$(Build.BuildId)/logs?api-version=5.0' | ConvertFrom-Json
$lastTwoLogUrls = $json.value[-1..-2].url $lastTwoLogUrls = $json.value[-1..-2].url
foreach($logUrl in $lastTwoLogUrls) foreach($logUrl in $lastTwoLogUrls)
{ {
@ -527,4 +527,3 @@ stages:
if (($successCount -ne 7) -or ($failureCount -ne 0)) { Write-Host "##vso[task.complete result=Failed;]DONE" } if (($successCount -ne 7) -or ($failureCount -ne 0)) { Write-Host "##vso[task.complete result=Failed;]DONE" }
} }
} }