Skip to content

Commit c374f14

Browse files
committed
Fail quickly if pre-command vars are empty
1 parent f951ae0 commit c374f14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.buildkite/hooks/pre-command

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ echo "Short SHA = \"${CONTAINER_SHORT_SHA}\""
1010

1111
export CONTAINER_BRANCH_NAME=$(echo "$BUILDKITE_BRANCH" | sed -e 's/[\/:]/_/g')
1212
echo "Safe branch name = \"${CONTAINER_BRANCH_NAME}\""
13+
14+
[ -n "$CONTAINER_SEMVER" ]
15+
[ -n "$CONTAINER_SHORT_SHA" ]
16+
[ -n "$CONTAINER_BRANCH_NAME" ]

0 commit comments

Comments
 (0)