s412146-mlworkshops/Jenkinsfile

17 lines
1018 B
Plaintext
Raw Normal View History

2019-04-26 11:13:08 +02:00
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']]])
2019-04-26 11:18:30 +02:00
sh label: '', script: './script.sh'
archiveArtifacts 'output'
2019-04-26 12:37:59 +02:00
def customImage = docker.build("my-custom-image")
customImage.inside {
sh 'echo works'
2019-04-26 13:37:42 +02:00
sh 'awk -f file.awk < wikiniews_results.tsv > hypothesis.txt'
2019-04-26 13:38:34 +02:00
sh 'awk -f file2.awk < wikiniews_results.tsv > reference.txt'
2019-04-26 13:50:21 +02:00
sh 'awk -f file3.awk < reference.txt > reference.trn'
sh 'awk -f file3.awk < hypothesis.txt > hypothesis.trn'
2019-04-26 15:09:10 +02:00
sh 'sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all -p > tmp_metrics'
2019-04-26 15:20:10 +02:00
sh 'python3 ./xml_parser.py'
sh 'paste wikiniews_results.tsv WERs > wikiniews_results_with_WERs.tsv'
2019-04-26 12:37:59 +02:00
}
2019-04-26 10:45:44 +02:00
}