2019-04-26 10:36:29 +02:00
|
|
|
pipeline {
|
2019-04-26 12:13:24 +02:00
|
|
|
|
2019-04-26 12:21:17 +02:00
|
|
|
agent { dockerfile true }
|
2019-04-26 12:13:24 +02:00
|
|
|
|
2019-04-26 10:36:29 +02:00
|
|
|
stages {
|
2019-04-26 11:07:45 +02:00
|
|
|
stage('Copy Archive') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
step ([$class: 'CopyArtifact',
|
|
|
|
projectName: 'ASR-eval',
|
|
|
|
target: 'Infra']);
|
|
|
|
}
|
2019-04-26 10:49:02 +02:00
|
|
|
}
|
|
|
|
}
|
2019-04-26 11:29:21 +02:00
|
|
|
|
2019-04-26 12:06:55 +02:00
|
|
|
stage('Git checkout') {
|
2019-04-26 11:29:21 +02:00
|
|
|
steps{
|
2019-04-26 11:53:26 +02:00
|
|
|
sh 'git checkout'
|
2019-04-26 12:06:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-26 12:23:30 +02:00
|
|
|
stage('Run script') {
|
2019-04-26 12:06:55 +02:00
|
|
|
steps{
|
2019-04-26 11:56:29 +02:00
|
|
|
sh 'sh test.sh text.txt out.txt'
|
2019-04-26 12:10:57 +02:00
|
|
|
archiveArtifacts artifacts: 'out.txt'
|
2019-04-26 11:29:21 +02:00
|
|
|
}
|
|
|
|
}
|
2019-04-26 12:06:55 +02:00
|
|
|
|
2019-04-26 12:26:10 +02:00
|
|
|
stage('Docker Test') {
|
2019-04-26 12:13:24 +02:00
|
|
|
steps {
|
2019-04-26 12:23:30 +02:00
|
|
|
sh 'git --version'
|
2019-04-26 12:13:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-26 13:05:18 +02:00
|
|
|
stage('WER & SRR') {
|
|
|
|
steps {
|
2019-04-26 13:28:35 +02:00
|
|
|
cat Infra/wikiniews_results.tsv | cut -d ',' -f3 > reference.txt
|
|
|
|
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
|
2019-04-26 13:05:18 +02:00
|
|
|
sh 'sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-26 12:06:55 +02:00
|
|
|
}
|
2019-04-26 11:11:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|