From: Michael Tremer Date: Thu, 21 Nov 2024 18:59:44 +0000 (+0000) Subject: jenkins: Find log files X-Git-Tag: 0.9.30~789 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9e6dde3bc851e1c0b62cae3b9b85061475da1642;p=pakfire.git jenkins: Find log files Signed-off-by: Michael Tremer --- 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