Fix archive logs so that no old logs are archived 53/13553/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 20 Jun 2023 11:18:37 +0000 (13:18 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 23 Jun 2023 11:48:34 +0000 (13:48 +0200)
Change-Id: I1d5883db41d1d2b9103bbb78a565042c2d8c0351
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
jenkins/ci-pipelines/ci_stage_3.groovy

index bc08891..2ffa95a 100644 (file)
@@ -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) {