Commit cf67fcea authored by Jaroslava Fiedlerova's avatar Jaroslava Fiedlerova Committed by Robert Schmidt

CI: Jenkinsfile log collection

parent 62efab72
...@@ -211,8 +211,10 @@ pipeline { ...@@ -211,8 +211,10 @@ pipeline {
script { script {
dir ('ci-scripts') { dir ('ci-scripts') {
// Zipping all archived log files // Zipping all archived log files
sh "zip -r -qq test_logs_${env.BUILD_ID}.zip *log*" sh "mkdir test_logs"
sh "rm -r *.log" 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")) { if (fileExists("test_logs_${env.BUILD_ID}.zip")) {
archiveArtifacts artifacts: "test_logs_${env.BUILD_ID}.zip" archiveArtifacts artifacts: "test_logs_${env.BUILD_ID}.zip"
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment