s416072-mlworkshops/Jenkinsfile

16 lines
854 B
Plaintext
Raw Permalink Normal View History

2019-04-26 12:19:53 +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/s416072/s416072-mlworkshops.git']]])
2019-04-26 12:23:06 +02:00
sh label: '', script: './skrypt.sh'
2019-04-26 12:19:53 +02:00
archiveArtifacts 'output'
2019-04-26 12:37:30 +02:00
def customImage = docker.build("my-custom-image")
customImage.inside {
sh 'echo aaaa'
2019-04-26 13:46:44 +02:00
sh 'awk -f file.awk < wikiniews_results.tsv > hypothesis.txt'
sh 'awk -f file2.awk < wikiniews_results.tsv > reference.txt'
2019-04-26 13:58:25 +02:00
sh 'awk -f file3.awk < reference.txt > reference.trn'
sh 'awk -f file3.awk < hypothesis.txt > hypothesis.trn'
2019-04-26 15:07:30 +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 12:37:30 +02:00
}
2019-04-26 12:19:53 +02:00
}