s452094-mlworkshops/Jenkinsfile

40 lines
1.0 KiB
Groovy

pipeline {
agent { dockerfile true }
stages {
stage('Checkout') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s452094/s452094-mlworkshops']]])
}
}
stage('Copy artifacts') {
steps {
copyArtifacts filter: '*.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
}
}
stage('Get data') {
steps {
sh label: 'count lines', script: './get_data.sh'
}
}
stage('SCLITE') {
steps {
sh label: 'count lines', script: './sclite.sh'
}
}
stage('Calculations') {
steps {
sh label: 'get all WER', script: './get_wer_lines.sh'
sh label: 'get all WER', script: './avr_wer.sh'
sh label: 'get all WER', script: './ssr.sh'
}
}
stage('Archive') {
steps {
archiveArtifacts 'srr.txt'
archiveArtifacts 'wer.txt'
archiveArtifacts 'wikiniews_results.tsv'
}
}
}
}