s152203-mlworkshops/Jenkinsfile

56 lines
1.5 KiB
Plaintext
Raw Normal View History

2020-04-03 11:33:45 +02:00
pipeline {
2020-04-03 13:53:16 +02:00
agent { dockerfile true }
2020-04-03 11:33:45 +02:00
stages {
2020-04-03 12:21:32 +02:00
stage('checkout'){
steps {
2020-04-03 12:25:42 +02:00
git url: 'https://git.wmi.amu.edu.pl/s152203/s152203-mlworkshops'
2020-04-03 12:21:32 +02:00
echo 'Check out from version control'
}
}
2020-04-03 12:42:18 +02:00
stage('Copy artifacts'){
steps{
2020-04-03 12:54:59 +02:00
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
2020-04-03 12:42:18 +02:00
}
}
2020-04-03 12:54:59 +02:00
stage('Shell script'){
steps{
2020-04-03 13:41:06 +02:00
sh 'chmod +x script.sh'
sh './script.sh'
2020-04-03 13:17:05 +02:00
sh label: 'cat', script: 'cat res.txt'
2020-04-03 15:40:38 +02:00
}
}
2020-04-03 14:53:02 +02:00
2020-04-03 15:40:38 +02:00
stage('Dockerfile') {
steps {
sh 'gcc --version'
}
}
stage('Counting metricts') {
steps {
2020-04-03 15:44:45 +02:00
sh 'chmod +x metricts.sh'
2020-04-03 15:40:38 +02:00
sh './metricts.sh'
2020-04-03 12:54:59 +02:00
}
}
2020-04-03 15:40:38 +02:00
stage('Accumulate metrics results'){
steps{
2020-04-03 15:46:27 +02:00
copyArtifacts filter: 'srr.txt, wer.txt', fingerprintArtifacts: true, optional: true, projectName: 's152203-metrics', target: 'last-results'
2020-04-03 15:40:38 +02:00
sh label: '', script: './to_file.sh last-results/srr.txt srr.txt'
sh label: '', script: './to_file.sh last-results/wer.txt wer.txt'
}
}
2020-04-03 13:49:44 +02:00
stage('archiveArtifacts'){
steps{
archiveArtifacts 'res.txt'
2020-04-03 14:53:02 +02:00
archiveArtifacts 'srr.txt'
archiveArtifacts 'wer.txt'
2020-04-03 15:32:04 +02:00
archiveArtifacts 'wikiniews_results_with_wer.tsv'
2020-04-03 13:49:44 +02:00
}
}
2020-04-03 11:33:45 +02:00
}
}