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