From 973b2a0fdd40e1d5f16b7780db78bcc8b07f4cd5 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Mon, 18 Sep 2023 23:07:39 +0200 Subject: [PATCH] test --- .buildkite/load-testing.yml | 2 +- .buildkite/scripts/build-agent.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.buildkite/load-testing.yml b/.buildkite/load-testing.yml index e4dcf8664c..405f22837b 100644 --- a/.buildkite/load-testing.yml +++ b/.buildkite/load-testing.yml @@ -29,5 +29,5 @@ steps: queue: observability-microbenchmarks command: | buildkite-agent artifact search "*" -format "%p\n" - # buildkite-agent artifact download "elastic-apm-agent.jar" . + buildkite-agent artifact download "elastic-apm-agent.jar" . ls -al diff --git a/.buildkite/scripts/build-agent.sh b/.buildkite/scripts/build-agent.sh index 4ba2ea7660..e8bd6e7bf6 100755 --- a/.buildkite/scripts/build-agent.sh +++ b/.buildkite/scripts/build-agent.sh @@ -4,13 +4,14 @@ # set -euo pipefail -agent_jar_path="$(pwd)/elastic-apm-agent.jar" +current_working_dir="$(pwd)" +agent_jar_name="elastic-apm-agent.jar" git clone "https://github.com/elastic/${REPO}.git" "${AGENT_BASE_DIR}" cd "${AGENT_BASE_DIR}" git checkout "origin/${APM_VERSION}" ./mvnw --batch-mode clean package -DskipTests=true -Dmaven.javadoc.skip=true -Dmaven.sources.skip=true -cp -v "$(find ./elastic-apm-agent/target -name '*.jar' | grep -v sources | grep -v original | grep -v javadoc)" "${agent_jar_path}" +cp -v "$(find ./elastic-apm-agent/target -name '*.jar' | grep -v sources | grep -v original | grep -v javadoc)" "${current_working_dir}/${agent_jar_name}" if [[ -n ${BUILDKITE} ]]; then - buildkite-agent artifact upload "${agent_jar_path}" + buildkite-agent artifact upload "${agent_jar_name}" fi