Skip to content

Commit

Permalink
Skipping pre-command when running the Upload pipeline (elastic#165505)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobelb authored and sphilipse committed Sep 4, 2023
1 parent f0700e6 commit 2b52bc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .buildkite/scripts/lifecycle/pre_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -euo pipefail

if [[ "$BUILDKITE_COMMAND" =~ .*"upload".* ]]; then
echo "Skipped pre-command when running the Upload pipeline"
exit 0
fi

source .buildkite/scripts/common/util.sh

echo '--- Setup environment vars'
Expand Down

0 comments on commit 2b52bc3

Please sign in to comment.