From 44328f67d89db43a9fcbc8ae6eb6e41bc38d495c Mon Sep 17 00:00:00 2001 From: Kacper Kurzeja <kackur2@st.amu.edu.pl> Date: Fri, 26 Apr 2019 13:54:15 +0200 Subject: [PATCH] Moved calls to script.sh --- Jenkinsfile | 8 +------- script.sh | 6 +++++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0ce135e..767f493 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,15 +5,9 @@ node { def docker_image = docker.build("the_docker_image") docker_image.inside{ - sh "echo echo inside" - sh 'awk -f get_2nd.awk < wikiniews_results.tsv > hypotheses.txt' - sh 'awk -f get_3rd.awk < wikiniews_results.tsv > references.txt' - sh 'awk -f txt_to_tsr_converter.awk < references.txt > references.trn' - sh 'awk -f txt_to_tsr_converter.awk < hypotheses.txt > hypotheses.trn' - sh 'sclite -f 0 -r references.trn trn -h hypotheses.trn trn -e utf-8 -i rm -o all stdout' + sh label: '', script: './script.sh' } - sh label: '', script: './script.sh' archiveArtifacts 'output' sh 'ls -l' sh 'cat output' diff --git a/script.sh b/script.sh index 6e9ad68..d8db604 100755 --- a/script.sh +++ b/script.sh @@ -1 +1,5 @@ -wc -l wikiniews_results.tsv > output +awk -f get_2nd.awk < wikiniews_results.tsv > hypotheses.txt +awk -f get_3rd.awk < wikiniews_results.tsv > references.txt +awk -f txt_to_tsr_converter.awk < references.txt > references.trn +awk -f txt_to_tsr_converter.awk < hypotheses.txt > hypotheses.trn +sclite -f 0 -r references.trn trn -h hypotheses.trn trn -e utf-8 -i rm -o all stdout -O tmp_metrics \ No newline at end of file