Skip to content

Commit

Permalink
Use same CustomCondition as success task (Azure#19652)
Browse files Browse the repository at this point in the history
Co-authored-by: Heath Stewart <heaths@microsoft.com>
  • Loading branch information
azure-sdk and heaths authored Dec 2, 2022
1 parent 7666115 commit 028cadc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/common/pipelines/templates/steps/publish-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ steps:
path: '${{ parameters.ArtifactPath }}'

- task: PublishPipelineArtifact@1
condition: failed()
condition: and(failed(), ${{ parameters.CustomCondition }})
displayName: 'Publish failed ${{ parameters.ArtifactName }} Artifacts'
inputs:
artifactName: '${{ parameters.ArtifactName }}-FailedAttempt$(System.JobAttempt)'
Expand Down

0 comments on commit 028cadc

Please sign in to comment.