Skip to content

Commit

Permalink
Chore: integrate APPVEYOR_BUILD_ID to build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed May 16, 2021
1 parent 50ebff1 commit 16cdd48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ for:
[bool]$success = $false
while(!$success -and ([datetime]::Now) -lt $stop) {
$project = Invoke-RestMethod -Uri "https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG" -Headers $headers -Method GET
$project = Invoke-RestMethod -Uri "https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/builds/$env:APPVEYOR_BUILD_ID" -Headers $headers -Method GET

$jobToWaitJson = $project.build.jobs | where {$_.name -eq "Build"}
$success = $jobToWaitJson.status -eq "success"
Expand Down

0 comments on commit 16cdd48

Please sign in to comment.