Skip to content

Commit

Permalink
Always collect a sysdiagnose regardless of success
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnedders committed Sep 29, 2023
1 parent da07204 commit 4e96928
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/ci/azure/sysdiagnose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
steps:
- script: |
mkdir -p /Users/runner/sysdiagnose
sudo sysdiagnose -ub -f /Users/runner/sysdiagnose -A sysdiagnose_$(System.JobPositionInPhase)
sudo sysdiagnose -ub -f /Users/runner/sysdiagnose -A sysdiagnose_$(System.PhaseName)-attempt-$(System.JobAttempt)-chunk-$(System.JobPositionInPhase)
displayName: 'Collect sysdiagnose'
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
condition: and(succeededOrFailed(), eq(variables['Agent.OS'], 'Darwin'))
- task: PublishBuildArtifacts@1
displayName: 'Publish sysdiagnose'
inputs:
pathtoPublish: /Users/runner/sysdiagnose/
artifactName: sysdiagnose
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
condition: and(succeededOrFailed(), eq(variables['Agent.OS'], 'Darwin'))

0 comments on commit 4e96928

Please sign in to comment.