diff --git a/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml b/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml index d2dc4bcc53..b18733d8f6 100644 --- a/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml +++ b/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml @@ -61,15 +61,8 @@ stages: # Do not output ##vso[] commands with `set -x` or they may be parsed again and include a trailing quote. set +x - - set_var() { - local VAR_NAME=${1:?} - local VAR_VALUE=${2:?} - echo "##vso[task.setvariable variable=${VAR_NAME};isoutput=true;isreadonly=true]${VAR_VALUE}" - echo "${VAR_NAME}: ${VAR_VALUE}" - } - - set_var "ortPodVersion" "${VERSION}" + echo "##vso[task.setvariable variable=ortPodVersion};]${VERSION}" + echo "ortPodVersion : ${ortPodVersion}" displayName: "Set common variables" name: SetCommonVariables