Merge pull request #19183 from atom/ns/upload-windows-crashes-on-release-branches

On Azure DevOps, upload Windows crash dumps to S3 on release branches
This commit is contained in:
Nathan Sobo
2019-04-19 13:52:47 -06:00
committed by GitHub
3 changed files with 52 additions and 2 deletions

View File

@@ -116,6 +116,17 @@ jobs:
displayName: Publish crash reports on non-release branch
condition: and(failed(), eq(variables['ATOM_RELEASES_S3_KEY'], ''))
- script: >
node $(Build.SourcesDirectory)\script\vsts\upload-crash-reports.js --crash-report-path "%ARTIFACT_STAGING_DIR%\crash-reports" --s3-path "vsts-artifacts/%BUILD_ID%/"
env:
ATOM_RELEASES_S3_KEY: $(ATOM_RELEASES_S3_KEY)
ATOM_RELEASES_S3_SECRET: $(ATOM_RELEASES_S3_SECRET)
ATOM_RELEASES_S3_BUCKET: $(ATOM_RELEASES_S3_BUCKET)
ARTIFACT_STAGING_DIR: $(Build.ArtifactStagingDirectory)
BUILD_ID: $(Build.BuildId)
displayName: Upload crash reports to S3 on release branch
condition: and(failed(), ne(variables['ATOM_RELEASES_S3_KEY'], ''))
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.SourcesDirectory)/out/atom-x64-windows.zip