]> git.ipfire.org Git - pakfire.git/commitdiff
jenkins: Find log files
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Nov 2024 18:59:44 +0000 (18:59 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 22 Nov 2024 11:18:46 +0000 (11:18 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jenkinsfile

index 09f941b5bae3f673e9bde9cd9df3e5ebc826eeb4..d4c09826c8a56e45d2a0f7e72d3784566f849a99 100644 (file)
@@ -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