From 7bec3f3c04493d70a43f19506fc16935fe71e12e Mon Sep 17 00:00:00 2001 From: dylodylo Date: Fri, 3 Apr 2020 14:48:26 +0200 Subject: [PATCH] change jenkinsfile --- Jenkinsfile | 2 +- count.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8170a72..71d7710 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,7 +16,7 @@ pipeline { } } - stage("Script") + stage("RunScript") { steps{ sh label:"", script:"bash ./count.sh" diff --git a/count.sh b/count.sh index 352aa67..87f81c1 100644 --- a/count.sh +++ b/count.sh @@ -13,4 +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 > srr.text +$COUNT = $COUNT_DIFF/$COUNT*100 +echo $COUNT > srr.text