diff --git a/Jenkinsfile b/Jenkinsfile index 1d4bfc0..a52de23 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,19 +10,14 @@ pipeline { stage('Copy Archive') { steps { script { - step ([$class: 'CopyArtifact', - projectName: 'ASR-eval', - filter: "wikiniews_results.tsv", - selector: lastSuccessful(), - fingerprintArtifacts: true, - target: 'wikiniews_results.tsv']); + copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() + copyArtifacts excludes: 'wikinews_results.tsv', fingerprintArtifacts: true, projectName: 's426274-metrics', selector: lastSuccessful() } } } stage('Count lines'){ steps { - sh('chmod +x ./script.sh') - sh('./script.sh') + sh label: 'metrics', script: './script.sh' } } } diff --git a/script.sh b/script.sh index 46f7e38..8025373 100644 --- a/script.sh +++ b/script.sh @@ -1,2 +1 @@ -#!/bin/bash wc -l wikiniews_results.tsv > numberOfLines.txt \ No newline at end of file