pipeline { agent {dockerfile true} stages { stage('Copy artifacts'){ steps { copyArtifacts filter: filter: 'wer.txt, srr.txt', fingerprintArtifacts: true, projectName: 's416226-metrics', selector: lastSuccessful() } } stage('Plot'){ steps { sh('chmod +x ./plot.sh') sh('./plot.sh') } } stage('Save results'){ steps { archiveArtifacts 'srr.png' archiveArtifacts 'wer.png' } } } }