21 lines
986 B
Groovy
21 lines
986 B
Groovy
node {
|
|
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']]])
|
|
|
|
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 '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < references.txt > references.trn'
|
|
sh 'awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < hypotheses.txt > hypotheses.trn'
|
|
sf 'sclite -f 0 -r references.trn trn -h hypotheses.trn trn -e utf-8 -i rm -o all stdout'
|
|
}
|
|
|
|
sh label: '', script: './script.sh'
|
|
archiveArtifacts 'output'
|
|
sh 'ls -l'
|
|
sh 'cat output'
|
|
}
|