diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index d5e7ab1..09897b8 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -217,13 +217,13 @@ pipelines: TARGET_BRANCH="${BITBUCKET_PR_DESTINATION_BRANCH}" # Gate: feature branches can only target dev ALLOWED="dev" - echo "Source: $SOURCE_BRANCH" - echo "Target: $TARGET_BRANCH (allowed: $ALLOWED)" + echo "Source: ${SOURCE_BRANCH}" + echo "Target: ${TARGET_BRANCH} (allowed: ${ALLOWED})" IFS=',' read -ra targets <<< "$ALLOWED" for t in "${targets[@]}"; do [ "${TARGET_BRANCH}" = "$t" ] && exit 0 done - echo "BLOCKED: target must be one of: $ALLOWED"; exit 1 + echo "BLOCKED: target must be one of: ${ALLOWED}"; exit 1 - step: *ai-code-review # ------------------------------------------------------------------------- @@ -301,12 +301,12 @@ pipelines: # Gate: dev can only be promoted to stg ALLOWED="stg" echo "Source: $SOURCE_BRANCH" - echo "Target: $TARGET_BRANCH (allowed: $ALLOWED)" + echo "Target: ${TARGET_BRANCH} (allowed: ${ALLOWED})" IFS=',' read -ra targets <<< "$ALLOWED" for t in "${targets[@]}"; do [ "${TARGET_BRANCH}" = "$t" ] && exit 0 done - echo "BLOCKED: target must be one of: ${ALLOWED}"; exit 1 + echo "BLOCKED: target must be one of: ${ALLOWED}"; exit 1 - step: *ai-code-review # -------------------------------------------------------------------------