s416226-mlworkshops/Jenkinsfile

28 lines
784 B
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('Save results'){
steps {
archiveArtifacts 'lines_number.txt'
archiveArtifacts 'wer.txt'
archiveArtifacts 'srr.txt'
}
}
}
}