From 282a0414884b5ea4c146693c063d8a69b6ce93dd Mon Sep 17 00:00:00 2001 From: s452108 Date: Fri, 3 Apr 2020 12:58:30 +0200 Subject: [PATCH] zad1 poprawka --- count.sh | 2 +- jenkinsfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 count.sh 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') {