s412146-mlworkshops/Jenkinsfile
Dawid Kubicki 36ecc62651 metryki13
2019-04-26 15:25:57 +02:00

17 lines
1.0 KiB
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, wikiniews_results_with_WERs.tsv'
def customImage = docker.build("my-custom-image")
customImage.inside {
sh 'echo works'
sh 'awk -f file.awk < wikiniews_results.tsv > hypothesis.txt'
sh 'awk -f file2.awk < wikiniews_results.tsv > reference.txt'
sh 'awk -f file3.awk < reference.txt > reference.trn'
sh 'awk -f file3.awk < hypothesis.txt > hypothesis.trn'
sh 'sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all -p > tmp_metrics'
sh 'python3 ./parser.py'
sh 'paste wikiniews_results.tsv WERs > wikiniews_results_with_WERs.tsv'
}
}