Skip to content

Commit

Permalink
test error otput
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Oct 3, 2024
1 parent 9fc7a59 commit 592fc3c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .buildkite/scripts/agentbeat/prepare_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def get_artifact_extension(agent_os) -> str:


def download_agentbeat_artifact(agent_os, agent_arch):
pattern = f"x-pack/agentbeat/build/distributions/agentbeat-*-{agent_os}-{agent_arch}.tar.gz"

print("--- Downloading agentbeat artifact")
print(" ")
extension = get_artifact_extension(agent_os)
pattern = f"x-pack/agentbeat/build/distributions/agentbeat-*-{agent_os}-{agent_arch}.{extension}"

try:
subprocess.run(
Expand All @@ -37,12 +37,17 @@ def download_agentbeat_artifact(agent_os, agent_arch):
"--step", "agentbeat-package-linux"],
check=True, stdout=sys.stdout, stderr=sys.stderr, text=True)
except subprocess.CalledProcessError:
print("Failed to download agentbeat")
exit(1)


def unzip_agentbeat():
print("todo unzip")
try:
subprocess.run(
["unzip"],
check=True, stdout=sys.stdout, stderr=sys.stderr, text=True)
except subprocess.CalledProcessError:
exit(1)


def install_synthetics():
Expand Down

0 comments on commit 592fc3c

Please sign in to comment.