From 208f3bc9f4a284b5403fa74da61962217665bcc9 Mon Sep 17 00:00:00 2001 From: Ufnow Date: Tue, 21 Apr 2020 20:01:41 +0200 Subject: [PATCH] fix --- Jenkinsfile | 11 +++-------- script.sh | 1 - 2 files changed, 3 insertions(+), 9 deletions(-) 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