Skip to content

Commit 2ea74b5

Browse files
azure-sdkheaths
andauthored
Use same CustomCondition as success task (Azure#27785)
Co-authored-by: Heath Stewart <[email protected]>
1 parent 4477d0d commit 2ea74b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/common/pipelines/templates/steps/publish-artifact.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ steps:
2020
path: '${{ parameters.ArtifactPath }}'
2121

2222
- task: PublishPipelineArtifact@1
23-
condition: failed()
23+
condition: and(failed(), ${{ parameters.CustomCondition }})
2424
displayName: 'Publish failed ${{ parameters.ArtifactName }} Artifacts'
2525
inputs:
2626
artifactName: '${{ parameters.ArtifactName }}-FailedAttempt$(System.JobAttempt)'

0 commit comments

Comments
 (0)