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'
}