CI: Jenkinsfile log collection

This commit is contained in:
Jaroslava Fiedlerova
2023-04-19 16:58:05 +02:00
committed by Robert Schmidt
parent 62efab7262
commit cf67fcea6c
+4 -2
View File
@@ -211,8 +211,10 @@ pipeline {
script {
dir ('ci-scripts') {
// Zipping all archived log files
sh "zip -r -qq test_logs_${env.BUILD_ID}.zip *log*"
sh "rm -r *.log"
sh "mkdir test_logs"
sh "mv *.log* test_logs || true"
sh "zip -r -qq test_logs_${env.BUILD_ID}.zip *test_log*/"
sh "rm -rf *test_log*/"
if (fileExists("test_logs_${env.BUILD_ID}.zip")) {
archiveArtifacts artifacts: "test_logs_${env.BUILD_ID}.zip"
}