s416226-mlworkshops/Jenkinsfile

35 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/s416226/s416226-mlworkshops']]])
}
}
stage('Copy artifacts'){
steps {
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
}
}
stage('Count lines and metrics'){
steps {
sh('chmod +x ./script.sh')
sh('./script.sh')
}
}
stage('Incremental refresh'){
steps {
copyArtifacts filter: 'wer.txt, srr.txt', fingerprintArtifacts: true, projectName: 's416226-metrics', selector: lastSuccessful(), target: 'results'
sh('chmod +x ./incremental.sh')
}
}
stage('Save results'){
steps {
archiveArtifacts 'lines_number.txt'
archiveArtifacts 'wer.txt'
archiveArtifacts 'wer_for_all.txt'
archiveArtifacts 'srr.txt'
}
}
}
}