From de39c525697a21700417f3bf37205b3397a1be0c Mon Sep 17 00:00:00 2001 From: dylodylo Date: Fri, 3 Apr 2020 15:13:02 +0200 Subject: [PATCH] change jenkinsfile --- Jenkinsfile | 2 +- count.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 71d7710..8170a72 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,7 +16,7 @@ pipeline { } } - stage("RunScript") + stage("Script") { steps{ sh label:"", script:"bash ./count.sh" diff --git a/count.sh b/count.sh index 87f81c1..3097c1f 100644 --- a/count.sh +++ b/count.sh @@ -13,5 +13,5 @@ cut -f3 $MYFILE | awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' > reference.tr sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > wer.txt diff hypothesis.trn reference.trn | grep "^>" | wc -l > $COUNT_DIFF -$COUNT = $COUNT_DIFF/$COUNT*100 -echo $COUNT > srr.text +RESULT = `expr $COUNT_DIFF / $COUNT * 100` +echo $RESULT > srr.text