35 lines
1.2 KiB
Groovy
35 lines
1.2 KiB
Groovy
pipeline {
|
|
agent { dockerfile true }
|
|
stages {
|
|
//Niepotrzebne jezeli Jenkinsfile jest pobierany z repo.
|
|
stage('Checkout') {
|
|
steps{
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s416138/s416138-mlworkshops']]])
|
|
}
|
|
}
|
|
stage('Copy results'){
|
|
steps {
|
|
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
|
|
}
|
|
}
|
|
stage('Count lines'){
|
|
steps{
|
|
sh label: '', script: './count_lines.sh wikiniews_results.tsv'
|
|
}
|
|
}
|
|
stage('Count metrics'){
|
|
steps{
|
|
sh label: '', script: './count_metrics.sh wikiniews_results.tsv'
|
|
archiveArtifacts 'srr.txt'
|
|
archiveArtifacts 'wer.txt'
|
|
archiveArtifacts 'wikiniews_results_with_wer.tsv'
|
|
}
|
|
}
|
|
stage('Archive results'){
|
|
steps{
|
|
archiveArtifacts 'counted_lines.txt'
|
|
}
|
|
}
|
|
}
|
|
}
|