From 88d7237757cab11480535e4fea70b858a569cc48 Mon Sep 17 00:00:00 2001 From: dylodylo Date: Fri, 10 Apr 2020 18:45:29 +0200 Subject: [PATCH] update Jenkinsfile --- Jenkinsfile | 4 ++-- count.sh | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3568ce7..e78da9f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ pipeline { { steps{ copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() - copyArtifacts filter: 'srr2.txt wer2.txt', fingerprintArtifacts: true, projectName: 's460929-metrics', optional: true, selector: lastSuccessful() + copyArtifacts filter: 'srr3.txt wer2.txt', fingerprintArtifacts: true, projectName: 's460929-metrics', optional: true, selector: lastSuccessful() } } @@ -34,7 +34,7 @@ pipeline { stage("Result") { steps{ - archiveArtifacts 'srr2.txt' + archiveArtifacts 'srr3.txt' archiveArtifacts 'wer2.txt' archiveArtifacts 'newresults.tsv' archiveArtifacts 'hypothesis.trn' diff --git a/count.sh b/count.sh index d29b70c..93e9236 100644 --- a/count.sh +++ b/count.sh @@ -12,6 +12,5 @@ echo wer.txt | sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 - COUNT_DIFF=$(diff hypothesis.trn reference.trn | grep "^>" | wc -l) echo $COUNT_DIFF -let RESULT=$COUNT_DIFF/$COUNT -echo $(echo"$COUNT_DIFF/$COUNT" | bc -l) >> srr2.txt -echo "$(tail -50 "srr2.txt")" > srr2.txt +echo $(echo "$COUNT_DIFF/$COUNT" | bc -l) >> srr3.txt +echo "$(tail -50 "srr3.txt")" > srr3.txt