diff --git a/Jenkinsfile b/Jenkinsfile index 45c9a1a..3a18d7d 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 628a080..f16e8f9 100644 --- a/count.sh +++ b/count.sh @@ -1,12 +1,12 @@ #!/bin/bash -myfile = wikiniews_results.tsv +MYFILE="wikiniews_results.tsv" #wc -l $myfile > result.txt # create trn -cut -f2 $myfile | awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' > hypothesis.trn -cut -f3 $myfile | awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' > reference.trn +cut -f2 $MYFILE | awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' > hypothesis.trn +cut -f3 $MYFILE | awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' > reference.trn #wer for each line sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > results.txt