Only upload Windows crash reports if the S3 key environment var is null

This seems like a more robust test than the isRelease variable I was
testing previously. Our goal is to not leak secrets such as the S3 key,
so this is a more direct test of that.
This commit is contained in:
Nathan Sobo
2019-04-18 12:25:57 -06:00
parent b03d49973e
commit 7ef8f06cd2

View File

@@ -114,7 +114,7 @@ jobs:
PathtoPublish: $(Build.ArtifactStagingDirectory)/crash-reports
ArtifactName: crash-reports
displayName: Publish crash reports on non-release branch
condition: and(failed(), eq(variables['IsReleaseBranch'], 'false'))
condition: and(failed(), eq(variables['ATOM_RELEASES_S3_KEY'], ''))
- task: PublishBuildArtifacts@1
inputs: