[ci] re-enable Java unit tests on aarch64 pipeline (#15492) (#15494)

PR#15466 skipped the Java unit tests as on the `main` and `8.11`
branches they attempted to run sonar scans (which are only meant to
run for PRs).

This commit re-enables the Java unit tests, taking advantage of #15486,
disabling the sonar scan part of the test suite.

(cherry picked from commit 16da966290)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
This commit is contained in:
github-actions[bot] 2023-10-25 11:40:52 +03:00 committed by GitHub
parent 46e4e3917a
commit f272d71480
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,15 +16,16 @@ steps:
source .buildkite/scripts/common/vm-agent.sh
ci/unit_tests.sh ruby
### Temporarily disable since sonar scans imply pull request context
# - label: ":java: Java unit tests"
# key: "java-unit-tests"
# command: |
# set -euo pipefail
- label: ":java: Java unit tests"
key: "java-unit-tests"
env:
# https://github.com/elastic/logstash/pull/15486 for background
ENABLE_SONARQUBE: "false"
command: |
set -euo pipefail
# source .buildkite/scripts/common/vm-agent.sh
# source .buildkite/scripts/pull-requests/sonar-env.sh
# ci/unit_tests.sh java
source .buildkite/scripts/common/vm-agent.sh
ci/unit_tests.sh java
- label: ":lab_coat: Integration Tests / part 1"
key: "integration-tests-part-1"