Skip to content
14 changes: 14 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,20 @@
Contents: '**'
TargetFolder: '$(artifactsDir)'

- task: PowerShell@2
displayName: 'Copy Application Event Logs to Artifacts'
inputs:
targetType: 'inline'
script: |
$source = "$env:SystemRoot\System32\winevt\Logs\Application.evtx"

Check warning on line 654 in azure-pipelines.yml

View workflow job for this annotation

GitHub Actions / Check Spelling

`evtx` is not a recognized word. (unrecognized-spelling)

Check warning on line 654 in azure-pipelines.yml

View workflow job for this annotation

GitHub Actions / Check Spelling

`winevt` is not a recognized word. (unrecognized-spelling)
$destination = "$(artifactsDir)\Application.evtx"

Check warning on line 655 in azure-pipelines.yml

View workflow job for this annotation

GitHub Actions / Check Spelling

`evtx` is not a recognized word. (unrecognized-spelling)
if (Test-Path $source) {
Copy-Item -Path $source -Destination $destination -Force
} else {
Write-Host "Application event log not found at $source"
}
condition: succeededOrFailed()

- task: PublishPipelineArtifact@1
displayName: Publish Fuzzing Artifacts
inputs:
Expand Down
Loading