diff --git a/tools/ci_build/github/azure-pipelines/templates/mac-cpu-packing-jobs.yml b/tools/ci_build/github/azure-pipelines/templates/mac-cpu-packing-jobs.yml index 228d7b0f10603..0928a19559cd5 100644 --- a/tools/ci_build/github/azure-pipelines/templates/mac-cpu-packing-jobs.yml +++ b/tools/ci_build/github/azure-pipelines/templates/mac-cpu-packing-jobs.yml @@ -51,6 +51,10 @@ jobs: brew install --cask temurin@17 fi JAVA_HOME=$(/usr/libexec/java_home -v 17) + + # Do not output ##vso[] commands with `set -x` or they may be parsed again and include a trailing quote. + set +x + echo "JAVA_HOME is set to: $JAVA_HOME" echo "##vso[task.setvariable variable=JAVA_HOME]$JAVA_HOME" echo "##vso[task.prependpath]$JAVA_HOME/bin"