Skip to content

Commit

Permalink
JUnit result annotation for Buildkite PR jobs (#15741) (#15745)
Browse files Browse the repository at this point in the history
This commit adds annotations for Java unit tests (in the pull request pipeline) helping
identify failing unit tests quickly.

(cherry picked from commit 2860889)

Co-authored-by: Dimitrios Liappis <[email protected]>
  • Loading branch information
github-actions[bot] and dliappis authored Jan 4, 2024
1 parent c557a9b commit 8727fe8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .buildkite/pull_request_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ steps:
source .buildkite/scripts/common/container-agent.sh
ci/unit_tests.sh java
artifact_paths:
- "**/build/test-results/javaTests/TEST-*.xml"

- label: ":lab_coat: Integration Tests / part 1"
key: "integration-tests-part-1"
Expand Down Expand Up @@ -139,3 +141,17 @@ steps:
source .buildkite/scripts/common/container-agent.sh
x-pack/ci/integration_tests.sh
- wait: ~
continue_on_failure: true

- label: "🏁 Annotate JUnit results"
# the plugin requires docker run, hence the use of a VM
agents:
provider: gcp
imageProject: elastic-images-prod
image: family/platform-ingest-logstash-ubuntu-2204
machineType: "n2-standard-2"
plugins:
- junit-annotate#v2.4.1:
artifacts: "**/TEST-*.xml"

0 comments on commit 8727fe8

Please sign in to comment.