From ae2a79e566fac8946710297c7b18a5fa4a3f5b5d Mon Sep 17 00:00:00 2001 From: Raphael Defosseux Date: Fri, 12 Jul 2024 11:47:32 +0200 Subject: [PATCH] chore(ci): preparing move of all logs to cmake_targets/log folder on the python executor workspace Signed-off-by: Raphael Defosseux --- ci-scripts/Jenkinsfile-nrue | 4 ++++ ci-scripts/Jenkinsfile-physim-deploy | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ci-scripts/Jenkinsfile-nrue b/ci-scripts/Jenkinsfile-nrue index 610e2867f0..e183a47b3e 100644 --- a/ci-scripts/Jenkinsfile-nrue +++ b/ci-scripts/Jenkinsfile-nrue @@ -229,6 +229,10 @@ pipeline { // Zipping all archived log files sh "mkdir test_logs" sh "mv *.log* test_logs || true" + // Zip all log files matching cmake_targets/{*.log*,log/*} into test_logs_XXXX.zip + if (fileExists('../cmake_targets/log')) { + sh "mv ../cmake_targets/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")) { diff --git a/ci-scripts/Jenkinsfile-physim-deploy b/ci-scripts/Jenkinsfile-physim-deploy index c90b254242..163a5f58bb 100644 --- a/ci-scripts/Jenkinsfile-physim-deploy +++ b/ci-scripts/Jenkinsfile-physim-deploy @@ -221,6 +221,10 @@ pipeline { // Zipping all archived log files sh "mkdir test_logs" sh "mv *.log* test_logs || true" + // Zip all log files matching cmake_targets/{*.log*,log/*} into test_logs_XXXX.zip + if (fileExists('../cmake_targets/log')) { + sh "mv ../cmake_targets/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")) {