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