diff --git a/count.sh b/count.sh old mode 100644 new mode 100755 index 998e571..d165aa9 --- a/count.sh +++ b/count.sh @@ -1,2 +1,2 @@ #!/bin/bash -wc -l > file.txt +wc -l $1 > file.txt diff --git a/jenkinsfile b/jenkinsfile index d78ff54..d916139 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -14,7 +14,8 @@ copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, proje } stage('Count words') { steps { -sh label: '', script: 'count.sh' +sh label: '', script: 'ls' +sh label: '', script: 'sudo ./count.sh wikiniews_results.tsv' } } stage('Archive atifacts') {