diff --git a/Jenkinsfile b/Jenkinsfile index 00c82cb..1d4bfc0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,16 +7,23 @@ pipeline { url: 'https://git.wmi.amu.edu.pl/s426274/s426274-mlworkshops.git' } } -stage('Copy artifacts'){ - steps { - copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() - } - } - stage('Count lines and metrics'){ + stage('Copy Archive') { + steps { + script { + step ([$class: 'CopyArtifact', + projectName: 'ASR-eval', + filter: "wikiniews_results.tsv", + selector: lastSuccessful(), + fingerprintArtifacts: true, + target: 'wikiniews_results.tsv']); + } + } + } + stage('Count lines'){ steps { sh('chmod +x ./script.sh') sh('./script.sh') } } -} + } } \ No newline at end of file