Skip to content

Commit

Permalink
buildkite: pre-command for the correct pipeline (elastic#3391)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Oct 27, 2023
1 parent e83573e commit 2b0bb86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ if [[ "$BUILDKITE_COMMAND" =~ .*"upload".* ]]; then
exit 0
fi

## TODO: change name for the opentelemetry-benchmark
if [ "$BUILDKITE_PIPELINE_SLUG" == "apm-agent-java-load-testing" ]; then
if [ "$BUILDKITE_PIPELINE_SLUG" == "apm-agent-java-opentelemetry-benchmark" ]; then
source .buildkite/hooks/prepare-benchmark.sh
fi

Expand Down
8 changes: 8 additions & 0 deletions .buildkite/hooks/pre-exit
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
## This script cleans up the workspace

set -eo pipefail

if [ "$BUILDKITE_PIPELINE_SLUG" == "apm-agent-java-opentelemetry-benchmark" ]; then
git reset --hard HEAD
fi

0 comments on commit 2b0bb86

Please sign in to comment.