Fix log archive in stage3 59/13459/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 25 May 2023 10:48:48 +0000 (12:48 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 25 May 2023 10:48:48 +0000 (12:48 +0200)
Change-Id: If97fcc39cbc3e1fabd6c0bcf877dfac771a2ba1b
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
jenkins/ci-pipelines/ci_stage_3.groovy

index bdbc175..2c2e008 100644 (file)
@@ -158,8 +158,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/* .'
-    sh 'cp logs/dags/* .'
+    sh 'cp logs/*.log logs/dags/*.log .'
     archiveArtifacts artifacts: '*.log'
 }