- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.2k
 
          Append _Attempt$(System.JobAttempt) to artifact name on failure
          #46064
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Michael Simons <msimons@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the build results, it looks confusing why there are two Publish Artifact steps showing up with only one of them getting executed. I added some suggested display names to make that more clear.
I really like this pattern you've used. It ensures that artifacts only get uploaded once for either scenario (success or failure).
Co-authored-by: Matt Thalman <mthalman@microsoft.com>
Co-authored-by: Matt Thalman <mthalman@microsoft.com>
Co-authored-by: Matt Thalman <mthalman@microsoft.com>
Co-authored-by: Matt Thalman <mthalman@microsoft.com>
Co-authored-by: Matt Thalman <mthalman@microsoft.com>
Fixes dotnet/source-build#4829
This PR breaks the
Publish Artifactsstep into two separate steps:$(Agent.JobName)_Artifacts.$(Agent.JobName)_Artifacts_Attempt$(System.JobAttempt).These changes allow for the artifacts to still be published on success or failure, and these changes prevent the failure described in dotnet/source-build#4829