From c3cdbc67a286f80c0ef534b56415699a5b97e35c Mon Sep 17 00:00:00 2001 From: massta Date: Sun, 5 Apr 2020 17:55:34 +0200 Subject: [PATCH] zad4 test6 --- count2.sh | 7 +++++-- jenkinsfile | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/count2.sh b/count2.sh index c1ac19a..2ea0147 100755 --- a/count2.sh +++ b/count2.sh @@ -13,8 +13,11 @@ srr=$(echo "($srr_matching/$all)*100" | bc -l) echo "$avg%" >> averagewer.txt echo "$srr%" >> averagesrr.txt -tail -n 50 averagewer.txt > averagewer.txt -tail -n 50 averagesrr.txt > averagesrr.txt +tail -n 50 averagewer.txt > averagewertmp.txt +cat averagewertmp.txt > averagewer.txt + +tail -n 50 averagesrr.txt > averagesrrtmp.txt +cat averagesrrtmp.txt > averagesrr.txt echo "Avg WER: $avg%" >> clear.txt echo "SRR: $srr%" >> clear.txt diff --git a/jenkinsfile b/jenkinsfile index af1b979..65a0b83 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -16,7 +16,7 @@ copyArtifacts filter: 'averagewer.txt', fingerprintArtifacts: true, projectName: stage('Count words') { steps { sh label: '', script: './count.sh wikiniews_results.tsv' -sh label: '', script: './count2.sh wikiniews_results.tsv' +sh label: '', script: './count2.sh' } } stage('Archive atifacts') {