From ce388f83ee7436a1e7c362ac9e3ef70dbcb87349 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jenkinsfile.integration b/Jenkinsfile.integration index b0fb8de3..21889f4c 100644 --- a/Jenkinsfile.integration +++ b/Jenkinsfile.integration @@ -244,6 +244,16 @@ pipeline { } } cleanup { + node("${testbed_node}") { + sh "mkdir artifacts" + sh """ + 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 """