CI: Jenkinsfile log collection
This commit is contained in:
committed by
Robert Schmidt
parent
62efab7262
commit
cf67fcea6c
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user