mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[ci] Stricter check on pre_command skip (#165519)
When buildkite-agent is uploading a pipeline we can skip setting up our node environment. This stricter check avoids matching on similarly named steps, e.g. our storybooks upload.
This commit is contained in:
parent
1dce3b94e3
commit
e52dd715ca
1 changed files with 1 additions and 2 deletions
|
@ -2,8 +2,7 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
echo "BUILDKITE_COMMAND: $BUILDKITE_COMMAND"
|
||||
if [[ "$BUILDKITE_COMMAND" =~ .*"upload".* ]]; then
|
||||
if [[ "$BUILDKITE_COMMAND" =~ ^"buildkite-agent pipeline upload" ]]; then
|
||||
echo "Skipped pre-command when running the Upload pipeline"
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue