diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index f19781e327a..a2c1dc27f67 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -188,7 +188,7 @@ steps: command: | .buildkite/scripts/steps/merge.sh artifact_paths: - - "TEST-go-unit.cov" + - "build/TEST-go-unit.cov" agents: image: "golang:1.22.6" depends_on: @@ -225,7 +225,7 @@ steps: agents: image: "docker.elastic.co/cloud-ci/sonarqube/buildkite-scanner:latest" command: - - "buildkite-agent artifact download --step merge-coverage TEST-go-unit.cov ." + - "buildkite-agent artifact download --step merge-coverage build/TEST-go-unit.cov ." - "/scan-source-code.sh" depends_on: - "merge-coverage" diff --git a/.buildkite/scripts/steps/merge.sh b/.buildkite/scripts/steps/merge.sh index 2382634d074..22b310deffb 100755 --- a/.buildkite/scripts/steps/merge.sh +++ b/.buildkite/scripts/steps/merge.sh @@ -5,7 +5,8 @@ set -euo pipefail set -x # for debugging -MERGED_COV_FILE="TEST-go-unit.cov" +mkdir -p build +MERGED_COV_FILE="build/TEST-go-unit.cov" go install github.com/wadey/gocovmerge@latest