Skip to content

Commit 9e84772

Browse files
committed
run-tests-on-os.yml: Added JobId so to the artifact name so re-running a failed test job will succeed if the artifact exists
1 parent 2023eda commit 9e84772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/azure-templates/run-tests-on-os.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ steps:
219219
displayName: 'Publish Artifact: ${{ parameters.testResultsArtifactName }}'
220220
inputs:
221221
targetPath: '$(Build.ArtifactStagingDirectory)/${{ parameters.testResultsArtifactName }}'
222-
ArtifactName: '${{ parameters.testResultsArtifactName }}_${{ parameters.osName }}_${{ parameters.framework }}_${{ parameters.vsTestPlatform }}'
222+
ArtifactName: '${{ parameters.testResultsArtifactName }}_${{ parameters.osName }}_${{ parameters.framework }}_${{ parameters.vsTestPlatform }}__JobID_$(System.JobId)'
223223
condition: succeededOrFailed()
224224

225225
# Due to the fact that it is not possible to loop a task and

0 commit comments

Comments
 (0)