File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,8 @@ case "${BUILDKITE_PIPELINE_SLUG}" in
201
201
esac
202
202
203
203
check_and_set_beat_vars () {
204
- if [[ -n " $BEATS_PROJECT_NAME " && " $BEATS_PROJECT_NAME " == * " x-pack/" * ]]; then
204
+ local BEATS_PROJECT_NAME=${BEATS_PROJECT_NAME:= " " }
205
+ if [[ " ${BEATS_PROJECT_NAME:= " " } " == * " x-pack/" * ]]; then
205
206
BEATS_XPACK_PROJECT_NAME=${BEATS_PROJECT_NAME// -/ } # remove -
206
207
BEATS_XPACK_PROJECT_NAME=${BEATS_XPACK_PROJECT_NAME// \/ / _} # replace / to _
207
208
BEATS_XPACK_LABEL_PROJECT_NAME=${BEATS_PROJECT_NAME// \/ / -} # replace / to - for labels
Original file line number Diff line number Diff line change 1
1
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
2
2
name : " beats-xpack-heartbeat"
3
3
4
-
5
4
env :
6
5
AWS_ARM_INSTANCE_TYPE : " t4g.xlarge"
7
6
BEATS_PROJECT_NAME : " x-pack/heartbeat"
You can’t perform that action at this time.
0 commit comments