s416138-mlworkshops/Jenkinsfile

52 lines
1.8 KiB
Plaintext
Raw Permalink Normal View History

2020-04-03 10:31:36 +02:00
pipeline {
2020-04-03 13:27:52 +02:00
agent { dockerfile true }
2020-04-03 10:31:36 +02:00
stages {
2020-04-03 10:58:43 +02:00
//Niepotrzebne jezeli Jenkinsfile jest pobierany z repo.
2020-04-03 10:49:56 +02:00
stage('Checkout') {
2020-04-03 10:52:24 +02:00
steps{
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s416138/s416138-mlworkshops']]])
}
2020-04-03 10:31:36 +02:00
}
2020-04-03 10:49:56 +02:00
stage('Copy results'){
2020-04-03 10:52:24 +02:00
steps {
2020-04-03 10:53:53 +02:00
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
2020-04-03 10:52:24 +02:00
}
2020-04-03 10:49:56 +02:00
}
stage('Count lines'){
2020-04-03 10:52:24 +02:00
steps{
2020-04-03 12:47:35 +02:00
sh label: '', script: './count_lines.sh wikiniews_results.tsv'
}
}
stage('Count metrics'){
steps{
2020-04-03 12:55:41 +02:00
sh label: '', script: './count_metrics.sh wikiniews_results.tsv'
2020-04-03 10:52:24 +02:00
}
2020-04-03 10:49:56 +02:00
}
2020-04-03 13:27:52 +02:00
stage('Accumulate metrics results'){
steps{
2020-04-03 13:30:42 +02:00
copyArtifacts filter: 'srr.txt, wer.txt', fingerprintArtifacts: true, optional: true, projectName: 's416138-metrics', target: 'last-results'
2020-04-03 13:27:52 +02:00
sh label: '', script: './append_to_file.sh last-results/srr.txt srr.txt'
sh label: '', script: './append_to_file.sh last-results/wer.txt wer.txt'
}
2020-04-03 13:24:34 +02:00
}
2020-04-03 10:49:56 +02:00
stage('Archive results'){
2020-04-03 10:52:24 +02:00
steps{
archiveArtifacts 'counted_lines.txt'
2020-04-03 13:24:34 +02:00
archiveArtifacts 'srr.txt'
archiveArtifacts 'wer.txt'
archiveArtifacts 'wikiniews_results_with_wer.tsv'
2020-04-03 10:52:24 +02:00
}
2020-04-03 10:49:56 +02:00
}
2020-04-03 13:47:53 +02:00
stage('Generate plots'){
steps{
build 's416138-plots'
}
}
2020-04-03 13:33:29 +02:00
stage('Clean Workspace'){
2020-04-03 13:34:02 +02:00
steps{
cleanWs()
}
2020-04-03 13:33:29 +02:00
}
2020-04-03 13:30:42 +02:00
}
2020-04-03 10:31:36 +02:00
}