Skip to content

Commit

Permalink
On Azure DevOps, publish crash reports on non-release Windows branches
Browse files Browse the repository at this point in the history
Since we don't expose sensitive information on these branches, we can
use the regular artifact publishing mechanism
  • Loading branch information
Nathan Sobo committed Apr 18, 2019
1 parent 4ce0066 commit b03d499
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions script/vsts/platforms/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,23 @@ jobs:
testRunTitle: Windows $(buildArch)
condition: ne(variables['Atom.SkipTests'], 'true')

- script: |
IF NOT EXIST "%ARTIFACT_STAGING_DIR%\crash-reports" MKDIR "%ARTIFACT_STAGING_DIR%\crash-reports"
IF EXIST "%Temp%\Atom Crashes" (
FOR %%a in ("%Temp%\Atom Crashes\*.dmp") DO XCOPY "%%a" "%ARTIFACT_STAGING_DIR%\crash-reports" /I
)
displayName: Stage crash reports
condition: failed()
env:
ARTIFACT_STAGING_DIR: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)/crash-reports
ArtifactName: crash-reports
displayName: Publish crash reports on non-release branch
condition: and(failed(), eq(variables['IsReleaseBranch'], 'false'))

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.SourcesDirectory)/out/atom-x64-windows.zip
Expand Down

0 comments on commit b03d499

Please sign in to comment.