[ci] skip failed test reporting when triggered upstream (#182815)

This skips failed test reporting when elasticsearch triggers a pipeline
to validate an unpublished version against Kibana.
This commit is contained in:
Jon 2024-05-07 08:18:50 -05:00 committed by GitHub
parent 1857c84ca5
commit df11bea8c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,10 @@ if [[ "$IS_TEST_EXECUTION_STEP" == "true" ]]; then
buildkite-agent artifact upload '.es/**/*.hprof'
buildkite-agent artifact upload 'data/es_debug_*.tar.gz'
if [[ $BUILDKITE_COMMAND_EXIT_STATUS -ne 0 ]]; then
if [[ $BUILDKITE_COMMAND_EXIT_STATUS -ne 0 ]] && \
# Skip when triggered from elasticsearch's validation pipeline
[[ $BUILDKITE_TRIGGERED_FROM_BUILD_PIPELINE_SLUG != 'elasticsearch-serverless-intake' ]]
then
echo "--- Run Failed Test Reporter"
node scripts/report_failed_tests --build-url="${BUILDKITE_BUILD_URL}#${BUILDKITE_JOB_ID}" 'target/junit/**/*.xml'
fi