From edd6c5acef4a6ade5caf0ab276a8be79f67a3a75 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 20 Dec 2023 18:50:37 +0200 Subject: [PATCH] [ci] Reusable unit + IT test steps for Buildkite (#15708) (#15713) This commit is a pre-requisite for adding unit + IT tests in a dedicated phase of the Exhaustive tests pipeline. It refactors the tests currently used by PR jobs, so that they become reusable. (cherry picked from commit 03d7b59f2aec85e0a0224ddd6edaa3ba54bf5217) Co-authored-by: Dimitrios Liappis --- .buildkite/pull_request_pipeline.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.buildkite/pull_request_pipeline.yml b/.buildkite/pull_request_pipeline.yml index 19fa8b78927..524cad810dd 100644 --- a/.buildkite/pull_request_pipeline.yml +++ b/.buildkite/pull_request_pipeline.yml @@ -38,9 +38,14 @@ steps: ephemeralStorage: "100Gi" command: | set -euo pipefail + if [[ $BUILDKITE_PULL_REQUEST == "false" ]]; then + # https://github.com/elastic/logstash/pull/15486 for background + export ENABLE_SONARQUBE="false" + else + source .buildkite/scripts/pull-requests/sonar-env.sh + fi source .buildkite/scripts/common/container-agent.sh - source .buildkite/scripts/pull-requests/sonar-env.sh ci/unit_tests.sh java - label: ":lab_coat: Integration Tests / part 1"