[ci] Reusable unit + IT test steps for Buildkite (#15708) (#15712)

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 03d7b59f2a)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
This commit is contained in:
github-actions[bot] 2023-12-21 09:44:17 +02:00 committed by GitHub
parent 5e28bffeda
commit 7b05c93020
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"