Fix archive logs so that no old logs are archived
[osm/devops.git] / 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) {