s152203-mlworkshops/Jenkinsfile
Yevheniia Tsapkova f8e48378db wer ard srr
2020-04-03 15:40:38 +02:00

56 lines
1.5 KiB
Groovy

pipeline {
agent { dockerfile true }
stages {
stage('checkout'){
steps {
git url: 'https://git.wmi.amu.edu.pl/s152203/s152203-mlworkshops'
echo 'Check out from version control'
}
}
stage('Copy artifacts'){
steps{
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
}
}
stage('Shell script'){
steps{
sh 'chmod +x script.sh'
sh './script.sh'
sh label: 'cat', script: 'cat res.txt'
}
}
stage('Dockerfile') {
steps {
sh 'gcc --version'
}
}
stage('Counting metricts') {
steps {
sh 'chmod +x metricts.sh'
sh './metricts.sh'
}
}
stage('Accumulate metrics results'){
steps{
copyArtifacts filter: 'srr.txt, wer.txt', fingerprintArtifacts: true, optional: true, projectName: 's152203-mlworkshops', target: 'last-results'
sh label: '', script: './to_file.sh last-results/srr.txt srr.txt'
sh label: '', script: './to_file.sh last-results/wer.txt wer.txt'
}
}
stage('archiveArtifacts'){
steps{
archiveArtifacts 'res.txt'
archiveArtifacts 'srr.txt'
archiveArtifacts 'wer.txt'
archiveArtifacts 'wikiniews_results_with_wer.tsv'
}
}
}
}