mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 12:37:59 +08:00
[ci] Don't emit warnings for absence of failure logs (#20316)
* No warning for absence of failure logs * Update condition for osx and linux Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
parent
09980780d8
commit
827a54c404
@ -56,7 +56,7 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
PathtoPublish: '$(Build.ArtifactStagingDirectory)/failure-logs'
|
PathtoPublish: '$(Build.ArtifactStagingDirectory)/failure-logs'
|
||||||
ArtifactName: 'failure logs for x64-linux'
|
ArtifactName: 'failure logs for x64-linux'
|
||||||
condition: always()
|
condition: ne(variables['FAILURE_LOGS_EMPTY'], 'True')
|
||||||
- bash: |
|
- bash: |
|
||||||
python3 scripts/file_script.py /mnt/vcpkg-ci/installed/vcpkg/info/
|
python3 scripts/file_script.py /mnt/vcpkg-ci/installed/vcpkg/info/
|
||||||
displayName: 'Build a file list for all packages'
|
displayName: 'Build a file list for all packages'
|
||||||
|
@ -50,7 +50,7 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
PathtoPublish: '$(Build.ArtifactStagingDirectory)/failure-logs'
|
PathtoPublish: '$(Build.ArtifactStagingDirectory)/failure-logs'
|
||||||
ArtifactName: 'failure logs for x64-osx'
|
ArtifactName: 'failure logs for x64-osx'
|
||||||
condition: always()
|
condition: ne(variables['FAILURE_LOGS_EMPTY'], 'True')
|
||||||
- bash: |
|
- bash: |
|
||||||
python3 scripts/file_script.py /Users/vagrant/Data/installed/vcpkg/info/
|
python3 scripts/file_script.py /Users/vagrant/Data/installed/vcpkg/info/
|
||||||
displayName: 'Build a file list for all packages'
|
displayName: 'Build a file list for all packages'
|
||||||
|
@ -137,6 +137,9 @@ else
|
|||||||
& "./vcpkg$executableExtension" ci $Triplet --x-xunit=$xmlFile --exclude=$skipList --failure-logs=$failureLogs @commonArgs
|
& "./vcpkg$executableExtension" ci $Triplet --x-xunit=$xmlFile --exclude=$skipList --failure-logs=$failureLogs @commonArgs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$failureLogsEmpty = ((Test-Path $failureLogs) -and (Get-ChildItem $failureLogs).count -eq 0)
|
||||||
|
Write-Host "##vso[task.setvariable variable=FAILURE_LOGS_EMPTY]$failureLogsEmpty"
|
||||||
|
|
||||||
if ($LASTEXITCODE -ne 0)
|
if ($LASTEXITCODE -ne 0)
|
||||||
{
|
{
|
||||||
throw "vcpkg ci failed"
|
throw "vcpkg ci failed"
|
||||||
|
@ -115,7 +115,7 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
PathtoPublish: '$(Build.ArtifactStagingDirectory)\failure-logs'
|
PathtoPublish: '$(Build.ArtifactStagingDirectory)\failure-logs'
|
||||||
ArtifactName: 'failure logs for ${{ parameters.triplet }}'
|
ArtifactName: 'failure logs for ${{ parameters.triplet }}'
|
||||||
condition: always()
|
condition: ne(variables['FAILURE_LOGS_EMPTY'], 'True')
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Build a file list for all packages'
|
displayName: 'Build a file list for all packages'
|
||||||
condition: always()
|
condition: always()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user