From d082e163f2e623b25bf17d2858998280ef3781b0 Mon Sep 17 00:00:00 2001 From: Kyrylo Shatskyy Date: Wed, 3 May 2023 13:41:25 +0200 Subject: [PATCH] Jenkinsfile.integration: collect artifacts Signed-off-by: Kyrylo Shatskyy --- Jenkinsfile.integration | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jenkinsfile.integration b/Jenkinsfile.integration index b0fb8de3..fc15d79c 100644 --- a/Jenkinsfile.integration +++ b/Jenkinsfile.integration @@ -244,6 +244,17 @@ pipeline { } } cleanup { + node("${testbed_node}") { + sh """ + source venv/bin/activate + mkdir artifacts + sesdev scp -r mini master:/var/log/ceph artifacts/ || true + sesdev scp -r mini master:/var/log/salt artifacts/ || true + sesdev scp mini master:/var/log/ceph-salt.log artifacts/ || true + + """ + archiveArtifacts artifacts: 'artifacts/**/*', allowEmptyArchive: true + } node("${compute_node}") { retry(10) { sh """