From 3ef9f0c227bb2d27f2c492bc09b50635aebdf7aa Mon Sep 17 00:00:00 2001 From: s460941 Date: Wed, 22 Apr 2020 16:55:50 +0200 Subject: [PATCH] lines --- Jenkinsfile | 1 + count.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index afd8440..f0eeae6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,6 +13,7 @@ pipeline { { steps { sh label:"", script:"bash ./count.sh" + archiveArtifacts 'lines_number.txt' } } } diff --git a/count.sh b/count.sh index 5df979c..a8ed6e8 100755 --- a/count.sh +++ b/count.sh @@ -1,3 +1,3 @@ var=$(wc -l "wikiniews_results.tsv") lines=${var%% *} -echo $lines +echo $lines > "lines_number.txt"