From ff505b9f44f9984354924fb394ba03200f30bb54 Mon Sep 17 00:00:00 2001 From: Rachel Guo <35738743+YUNQIUGUO@users.noreply.github.com> Date: Fri, 26 Apr 2024 20:42:24 -0700 Subject: [PATCH] Follow up fix for #20472 (#20484) ### Description Error: **Artifact name input: e2e_test_logs_1364625_$(Date:yyyyMMddHHmmss) ##[error]Artifact name is not valid: e2e_test_logs_1364625_$(Date:yyyyMMddHHmmss). It cannot contain '\', /', "', ':', '<', '>', '|', '*', and '?'** Date not correctly showing up in the artifact name. Use predefined pipeline variable BuildNumber instead which also serves similarly as a timestamp. ### Motivation and Context RN CI failure --------- Co-authored-by: rachguo Co-authored-by: rachguo --- .../github/azure-pipelines/templates/react-native-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci_build/github/azure-pipelines/templates/react-native-ci.yml b/tools/ci_build/github/azure-pipelines/templates/react-native-ci.yml index cd6484979eaaa..d13cb7a99e7f8 100644 --- a/tools/ci_build/github/azure-pipelines/templates/react-native-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/react-native-ci.yml @@ -380,7 +380,7 @@ stages: - task: PublishPipelineArtifact@1 inputs: - artifact: e2e_test_logs_$(Build.BuildId)_$(Date:yyyyMMddHHmmss) + artifact: e2e_test_logs_$(Build.BuildId)_$(Build.BuildNumber)_$(System.JobAttempt) targetPath: '$(Build.SourcesDirectory)/js/react_native/e2e/artifacts' condition: succeededOrFailed() displayName: Publish React Native Detox E2E test logs