From 2e0593eee80086f46258e93640f222d8c5127315 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 20 Jun 2023 13:18:37 +0200 Subject: [PATCH] Fix archive logs so that no old logs are archived Change-Id: I1d5883db41d1d2b9103bbb78a565042c2d8c0351 Signed-off-by: garciadeblas --- jenkins/ci-pipelines/ci_stage_3.groovy | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index bc08891e..2ffa95a0 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -159,8 +159,7 @@ void archive_logs(Map remote) { sh 'rm -rf logs' sshCommand remote: remote, command: '''ls -al logs''' sshGet remote: remote, from: 'logs', into: '.', override: true - sh 'cp logs/*.log logs/dags/*.log .' - archiveArtifacts artifacts: '*.log' + archiveArtifacts artifacts: 'logs/*.log, logs/dags/*.log' } String get_value(String key, String output) { -- 2.25.1