From 0a3eb60b017f2a7d691f0a3ce155f42a59d63b6c Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Thu, 7 Sep 2023 14:33:31 +0800 Subject: [PATCH] Fix Bug: Step failed but not exited with error (#17442) ### Description Add "set -ex" in the script. ### Motivation and Context Build failed but it still passed. https://dev.azure.com/onnxruntime/onnxruntime/_build/results?buildId=1132003&view=logs&j=7536d2cd-87d4-54fe-4891-bfbbf2741d83&t=39e3f98f-7fe5-578c-20bd-5ae5a4590bda --- .../github/azure-pipelines/linux-gpu-tensorrt-ci-pipeline.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ci_build/github/azure-pipelines/linux-gpu-tensorrt-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/linux-gpu-tensorrt-ci-pipeline.yml index c9827cd423..9450395f3c 100644 --- a/tools/ci_build/github/azure-pipelines/linux-gpu-tensorrt-ci-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/linux-gpu-tensorrt-ci-pipeline.yml @@ -85,7 +85,8 @@ jobs: -e CCACHE_DIR=/cache \ onnxruntimetensorrt86gpubuild \ /bin/bash -c " - cccache -s; \ + set -ex; \ + ccache -s; \ /opt/python/cp38-cp38/bin/python3 /onnxruntime_src/tools/ci_build/build.py \ --build_dir /build --cmake_generator Ninja \ --config Release \