diff --git a/count2.sh b/count2.sh index 5961a3b..32ffd2c 100755 --- a/count2.sh +++ b/count2.sh @@ -11,8 +11,11 @@ srr_matching=$(grep -x "0" clear.txt | wc -l) all=$(cat clear.txt | wc -l) srr=$(echo "($srr_matching/$all)*100" | bc -l) -echo "$avg%" >> average.txt -echo "$srr%" >> average.txt +echo "$avg%" >> averagewer.txt +echo "$srr%" >> averagesrr.txt + +tail -n 50 averagewer.txt > averagewer.txt +tail -n 50 averagesrr.txt > averagesrr.txt echo "Avg WER: $avg%" >> clear.txt echo "SRR: $srr%" >> clear.txt diff --git a/jenkinsfile b/jenkinsfile index e8609cf..4b17158 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -9,7 +9,7 @@ pipeline { stage('Copy Artifacts') { steps { copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() -copyArtifacts filter: 'average.txt', fingerprintArtifacts: true, projectName: 's452108-metrics', selector: lastSuccessful() + } } stage('Count words') { @@ -21,7 +21,8 @@ sh label: '', script: './count2.sh wikiniews_results.tsv' stage('Archive atifacts') { steps { archiveArtifacts 'clear.txt' -archiveArtifacts 'average.txt' +archiveArtifacts 'averagesrr.txt' +archiveArtifacts 'averagewer.txt' archiveArtifacts 'wikiniews_results.tsv' } }