diff options
| author | TitanSnow <[email protected]> | 2017-05-26 21:13:21 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-05-26 21:13:21 +0800 |
| commit | f7d8a8ceafb1fd56dccdc3910ad7d62dba041177 (patch) | |
| tree | 780d99af8beb709d5c38347e6b10b9efb79f3317 /scripts | |
| parent | 028a50df6f8e9b2de9562a0096f3f0d65b1c8c96 (diff) | |
fix jobId fetch
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/getpb.ps1 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/getpb.ps1 b/scripts/getpb.ps1 index f62c3d122..1e6ad98d7 100644 --- a/scripts/getpb.ps1 +++ b/scripts/getpb.ps1 @@ -36,7 +36,9 @@ Function Get-AppVeyorArtifacts{ $job = 0 } ForEach($_ in $obj.builds){ - $jobId = $_.jobs[$job].jobId + $version = $_.version + $build = Invoke-RestMethod -Method Get -Uri "$apiUrl/projects/$Account/$Project/build/$version" -Headers $headers + $jobId = $build.build.jobs[$job].jobId $artifacts = Invoke-RestMethod -Method Get -Uri "$apiUrl/buildjobs/$jobId/artifacts" -Headers $headers $artifactFileName = $artifacts[0].fileName if($artifactFileName -eq "xmake.exe"){ |
