onnxruntime/tools/ci_build/github/windows
Changming Sun a8ad0edbeb
BUG FIX: the if...else in telemetry-steps.yml does not really work (#14972)
### Description
BUG FIX: the if...else in telemetry-steps.yml does not really work. It
always says "Telemetry is disabled." even through the pipeline doesn't
have the pipeline variable.

### Motivation and Context
For example, recently I setup a new pipeline in
https://dev.azure.com/onnxruntime/onnxruntime/_build without setting the
ADO variable, but the powershell code still thinks that we have enabled
telemetry.

See:

https://dev.azure.com/onnxruntime/onnxruntime/_build/results?buildId=910107&view=results

The reason it didn't work because when the pipeline
variable("TELEMETRYGUID") doesn't exist,  the occurrence of
 "$(TELEMETRYGUID)" would be not replace to anything. It will remain as
it is.
2023-03-10 15:39:07 -08:00
..
eager
post_to_dashboard
bundle_dlls_gpu.bat
bundle_nuget_with_native_headers.bat
extract_nuget_files.ps1
extract_nuget_files_gpu.ps1
extract_zip_files_gpu.ps1
helpers.ps1
install_third_party_deps.ps1
jar_gpu_packaging.ps1
jar_packaging.ps1
post_binary_sizes_to_dashboard.py
post_code_coverage_to_dashboard.py
set_telemetry_var.ps1
setup_env.bat
setup_env_azure.bat
setup_env_cuda_11.bat
setup_env_gpu.bat
setup_env_trt.bat
setup_env_x86.bat