From a7b5664a308ddc65a8552f0eb2c190f66f025068 Mon Sep 17 00:00:00 2001 From: Yihau Chen Date: Fri, 21 Jul 2023 23:53:01 +0800 Subject: [PATCH] ci: only upload the test result when the token is present (#32583) --- .buildkite/hooks/post-command | 66 ++++++++++++++++++++++------------- 1 file changed, 41 insertions(+), 25 deletions(-) diff --git a/.buildkite/hooks/post-command b/.buildkite/hooks/post-command index 96365c72d..8f79c3423 100644 --- a/.buildkite/hooks/post-command +++ b/.buildkite/hooks/post-command @@ -41,36 +41,52 @@ else # extract lines which start with '{' awk '/{.*/' results.json >sanitized-results.json - echo "~~~ Uploading test results to Buildkite Analytics" - buildkite-test-collector results.xml results.xml