This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git


The following commit(s) were added to refs/heads/main by this push:
     new 172466a  Catch when autest doesn't run (#398)
172466a is described below

commit 172466a854e37574558f83c11fad6327ed1c8276
Author: Brian Neradt <[email protected]>
AuthorDate: Mon Nov 24 10:57:34 2025 -0600

    Catch when autest doesn't run (#398)
---
 jenkins/github/autest.pipeline | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/jenkins/github/autest.pipeline b/jenkins/github/autest.pipeline
index d4131ea..786fe52 100644
--- a/jenkins/github/autest.pipeline
+++ b/jenkins/github/autest.pipeline
@@ -167,17 +167,17 @@ pipeline {
                                                        ./autest.sh 
${autest_args} -f ${sliced[@]} || autest_failed=1
                                                fi
 
-                                               if [ -n "$(ls -A 
/tmp/sandbox/)" ]; then
+                                               if [ ! -d /tmp/sandbox/ ]; then
+                                                       # No sandbox. Probably 
a catastrophic failure, like an exception,
+                                                       # that prevented 
execution and the creation of a sandbox.
+                                                       echo "AuTest failed."
                                                        touch 
${export_dir}/Autest_failures
-                                                       cp -rf /tmp/sandbox/ 
"${export_dir}"
-                                                       ls "${export_dir}"
                                                        sudo chmod -R 777 
${WORKSPACE}
                                                        exit 1
                                                elif [ ${autest_failed} -ne 0 
]; then
-                                                       # No sandbox. Probably 
a catestrophic failure, like an exception,
-                                                       # that prevented 
execution and the creation of a sandbox.
-                                                       echo "AuTest failed."
                                                        touch 
${export_dir}/Autest_failures
+                                                       cp -rf /tmp/sandbox/ 
"${export_dir}"
+                                                       ls "${export_dir}"
                                                        sudo chmod -R 777 
${WORKSPACE}
                                                        exit 1
                                                else

Reply via email to