[ci]: append job.attempt in memdump/log artifacts

azure pipepline does not allow upload same artifacts again.
thus, use job.attempt to uniquely name the test artifacts

Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
Guohan Lu 2021-01-28 01:05:44 -08:00
parent 98298f7f7f
commit fb0b999361

View File

@ -203,11 +203,11 @@ stages:
fi
displayName: "Run T0 tests"
- publish: $(Build.ArtifactStagingDirectory)/kvmdump
artifact: sonic-buildimage.kvmtest.memdump
artifact: sonic-buildimage.kvmtest.memdump@$(System.JobAttempt)
displayName: "Archive sonic kvm memdump"
condition: failed()
- publish: $(Build.ArtifactStagingDirectory)/logs
artifact: sonic-buildimage.kvmtest.log
artifact: sonic-buildimage.kvmtest.log@$(System.JobAttempt)
displayName: "Archive sonic kvm logs"
condition: succeededOrFailed()
- task: PublishTestResults@2