/bin/sh: syntax error: unexpected ";"

We keep getting this failure message on various freestyle steps. Usually when there are several multiline commands.
Seems like something is off with either the yaml parser or the CF execution.

  commands:
    - set -x
    - |
      if [[ "${MONITORING_ONLY}" = "true" ]]; then
        cf_export SINGLE_CLUSTER="primary"
        exit 0
      fi
      if [[ -z "${SERVICE_NAMESPACE// }" ]]; then
        cf_export MIGRATE_EXISTING="true"
      else
        cf_export MIGRATE_EXISTING="false"
        exit 0
      fi
    - echo "hello world"
    - apk add --update jq pcre-tools && rm -rf /var/cache/apk/*
    - ./script.sh

Hello.

What is the URL of the build that has the issue?