From: garciadeblas Date: Tue, 20 Jun 2023 11:18:37 +0000 (+0200) Subject: Fix archive logs so that no old logs are archived X-Git-Tag: release-v14.0-start~10 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F13553%2F2;p=osm%2Fdevops.git Fix archive logs so that no old logs are archived Change-Id: I1d5883db41d1d2b9103bbb78a565042c2d8c0351 Signed-off-by: garciadeblas --- 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) {