From 9e6dde3bc851e1c0b62cae3b9b85061475da1642 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 21 Nov 2024 18:59:44 +0000 Subject: [PATCH] jenkins: Find log files Signed-off-by: Michael Tremer --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 09f941b5b..d4c09826c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -224,7 +224,8 @@ pipeline { // Copy test logs into a special directory sh """ mkdir -pv tests/${DISTRO}/${COMPILER} - cp --parents -v tests/*/*.log tests/${DISTRO}/${COMPILER}/ + find tests -name "*.log" | xargs --no-run-if-empty \ + cp --verbose --parents --target-directory=tests/${DISTRO}/${COMPILER}/ """ // Archive the logs only if the stage fails -- 2.39.5