From c031bb6044495a306d996878eaff9139c1293c23 Mon Sep 17 00:00:00 2001 From: s416178 Date: Fri, 3 Apr 2020 11:43:31 +0200 Subject: [PATCH] Fix script --- Jenkinsfile | 2 +- shell_script.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a1a80f9..4e46a10 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,7 +15,7 @@ pipeline { stage('sh: Shell Script') { steps { sh('chmod +x ./shell_script.sh') - sh('./shell_script.sh') + sh('./shell_script.sh wikiniews_results.tsv > result.log') } } stage('archiveArtifacts') { diff --git a/shell_script.sh b/shell_script.sh index c2ce9c4..70dacc2 100644 --- a/shell_script.sh +++ b/shell_script.sh @@ -1,3 +1,3 @@ #!/bin/bash -wc -l wikiniews_results.tsv > result.log +wc -l $1