From 43b21d9346d1210f8d364b3b9bf6162a003b5a5a Mon Sep 17 00:00:00 2001 From: Yuanjing Xue <197832395+yuanjingx87@users.noreply.github.com> Date: Thu, 13 Nov 2025 12:23:24 -0800 Subject: [PATCH] fail the pipeline when slurm ssh dropped Signed-off-by: Yuanjing Xue <197832395+yuanjingx87@users.noreply.github.com> --- jenkins/L0_Test.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jenkins/L0_Test.groovy b/jenkins/L0_Test.groovy index d71d510e36c7..b13520699594 100644 --- a/jenkins/L0_Test.groovy +++ b/jenkins/L0_Test.groovy @@ -963,6 +963,8 @@ def runLLMTestlistWithSbatch(pipeline, platform, testList, config=VANILLA_CONFIG true ) def scriptExec = """ + set -Eeuo pipefail + trap 'rc=\$?; echo "Error in file \${BASH_SOURCE[0]} on line \$LINENO: \$BASH_COMMAND (exit \$rc)"; exit \$rc' ERR touch ${outputPath} jobId=\$(sbatch ${scriptLaunchPathNode} | awk '{print \$4}') if [ -z "\$jobId" ]; then