update Jenkinsfile

This commit is contained in:
dylodylo 2020-04-10 17:54:26 +02:00
parent 4a8562edc4
commit 8bc5cea4a0
3 changed files with 6 additions and 6 deletions

6
Jenkinsfile vendored
View File

@ -13,7 +13,7 @@ pipeline {
{
steps{
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
copyArtifacts filter: 'srr.txt wer.txt', fingerprintArtifacts: true, projectName: 's460929-metrics', optional: true, selector: lastSuccessful()
copyArtifacts filter: 'srr2.txt wer2.txt', fingerprintArtifacts: true, projectName: 's460929-metrics', optional: true, selector: lastSuccessful()
}
}
@ -34,8 +34,8 @@ pipeline {
stage("Result")
{
steps{
archiveArtifacts 'srr.txt'
archiveArtifacts 'wer.txt'
archiveArtifacts 'srr2.txt'
archiveArtifacts 'wer2.txt'
archiveArtifacts 'newresults.tsv'
archiveArtifacts 'hypothesis.trn'
archiveArtifacts 'reference.trn'

View File

@ -13,5 +13,5 @@ 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) >> srr.txt
echo "$(tail -50 "srr.txt")" > srr.txt
echo $(echo"$COUNT_DIFF/$COUNT" | bc -l) >> srr2.txt
echo "$(tail -50 "srr2.txt")" > srr2.txt

View File

@ -26,5 +26,5 @@ with open('wikiniews_results.tsv','r') as f_in:
writer.writerows(result)
file = open("wer.txt", "a")
file = open("wer2.txt", "a")
file.write(str(score) + "\n")