s412146-mlworkshops/Jenkinsfile
Dawid Kubicki 85bb23c3a0 metryki5
2019-04-26 13:36:42 +02:00

15 lines
990 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/s412146/s412146-mlworkshops.git']]])
sh label: '', script: './script.sh'
archiveArtifacts 'output'
def customImage = docker.build("my-custom-image")
customImage.inside {
sh 'echo works'
sh 'awk -f file.awk < wikiniews_results.tsv > hypotheses.txt'
sh 'awk -f file2.awk < wikiniews_results.tsv > references.txt'
sh 'awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < reference.txt > reference.trn'
sh 'awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn'
sh 'sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout'
}
}