Skip to content

Commit 2cb214d

Browse files
Sync eng/common directory with azure-sdk-tools for PR 8467 (#30092)
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#8467 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
1 parent 5c709c5 commit 2cb214d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ parameters:
1616
steps:
1717
- pwsh: |
1818
if ($env:AGENT_JOBSTATUS -eq "Failed") {
19+
Write-Host "Setting artifact name to ${{ parameters.ArtifactName }}-FailedAttempt$(System.JobAttempt) because there were failures."
1920
Write-Host "##vso[task.setvariable variable=PublishArtifactName;]${{ parameters.ArtifactName }}-FailedAttempt$(System.JobAttempt)"
2021
} else {
22+
Write-Host "Setting artifact name to ${{ parameters.ArtifactName }}"
2123
Write-Host "##vso[task.setvariable variable=PublishArtifactName;]${{ parameters.ArtifactName }}"
2224
}
2325
condition: and(succeededOrFailed(), ${{ parameters.CustomCondition }})
24-
displayName: Set Artifact Name $(Agent.JobStatus)
26+
displayName: Set Artifact Name
2527
2628
- task: 1ES.PublishPipelineArtifact@1
2729
condition: and(succeededOrFailed(), ${{ parameters.CustomCondition }})

0 commit comments

Comments
 (0)