2019-04-26 10:47:25 +02:00
|
|
|
node {
|
2019-04-26 12:24:59 +02:00
|
|
|
copyArtifacts filter: '*', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
|
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s442639/s442639-mlworkshops.git']]])
|
2019-04-26 12:33:05 +02:00
|
|
|
|
2019-04-26 12:36:38 +02:00
|
|
|
def docker_image = docker.build("the_docker_image")
|
|
|
|
|
|
|
|
docker_image.inside{
|
|
|
|
sh "echo echo inside"
|
2019-04-26 13:19:46 +02:00
|
|
|
sh 'awk -f get_2nd.awk < wikiniews_results.tsv > hypotheses.txt'
|
2019-04-26 13:22:31 +02:00
|
|
|
sh 'awk -f get_3rd.awk < wikiniews_results.tsv > references.txt'
|
2019-04-26 13:33:18 +02:00
|
|
|
sh 'awk -f txt_to_tsr_converter.awk < references.txt > references.trn'
|
|
|
|
sh 'awk -f txt_to_tsr_converter.awk < hypotheses.txt > hypotheses.trn'
|
2019-04-26 13:34:48 +02:00
|
|
|
sh 'sclite -f 0 -r references.trn trn -h hypotheses.trn trn -e utf-8 -i rm -o all stdout'
|
2019-04-26 12:36:38 +02:00
|
|
|
}
|
2019-04-26 12:33:05 +02:00
|
|
|
|
2019-04-26 12:24:59 +02:00
|
|
|
sh label: '', script: './script.sh'
|
|
|
|
archiveArtifacts 'output'
|
|
|
|
sh 'ls -l'
|
|
|
|
sh 'cat output'
|
2019-04-26 10:47:25 +02:00
|
|
|
}
|