From 1a7960241365f3839ac99a483cbeee9a6499d0fb Mon Sep 17 00:00:00 2001 From: Ufnow Date: Tue, 21 Apr 2020 19:51:02 +0200 Subject: [PATCH] fix --- Jenkinsfile | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) 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