s407254-mlworkshops/Jenkinsfile
2019-04-26 13:36:25 +02:00

49 lines
1.2 KiB
Groovy

pipeline {
agent { dockerfile true }
stages {
stage('Copy Archive') {
steps {
script {
step ([$class: 'CopyArtifact',
projectName: 'ASR-eval',
target: 'Infra']);
}
}
}
stage('Git checkout') {
steps{
sh 'git checkout'
}
}
stage('Run script') {
steps{
sh 'sh test.sh text.txt out.txt'
archiveArtifacts artifacts: 'out.txt'
}
}
stage('Docker Test') {
steps {
sh 'git --version'
}
}
stage('WER & SRR') {
steps {
sh 'cat Infra/wikiniews_results.tsv | cut -d ',' -f3 > reference.txt'
sh 'cat Infra/wikiniews_results.tsv | cut -d ',' -f2 > hypothesis.txt'
sh 'sh metryki.sh reference.txt reference.trn'
sh 'sh metryki.sh hypothesis.txt hypothesis.trn'
sh 'sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout'
}
}
}
}