2020-04-03 12:20:27 +02:00
|
|
|
pipeline {
|
2020-04-03 13:36:03 +02:00
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
2020-04-03 12:20:27 +02:00
|
|
|
|
2020-04-03 19:23:31 +02:00
|
|
|
stages {
|
2020-04-03 13:30:33 +02:00
|
|
|
stage('Checkout') {
|
|
|
|
steps {
|
|
|
|
git 'https://git.wmi.amu.edu.pl/s452097/s452097-mlworkshops'
|
|
|
|
}
|
2020-04-03 12:39:55 +02:00
|
|
|
}
|
|
|
|
|
2020-04-03 12:45:12 +02:00
|
|
|
stage('Copy artifacts') {
|
|
|
|
steps {
|
|
|
|
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful(), target: './'
|
|
|
|
}
|
2020-04-03 12:39:55 +02:00
|
|
|
}
|
2020-04-03 13:17:26 +02:00
|
|
|
stage('Count words') {
|
|
|
|
steps {
|
2020-04-03 13:28:43 +02:00
|
|
|
sh('chmod +x ./count.sh')
|
2020-04-03 13:24:07 +02:00
|
|
|
sh label: 'count', script: './count.sh'
|
2020-04-03 13:17:26 +02:00
|
|
|
}
|
2020-04-03 13:20:58 +02:00
|
|
|
}
|
2020-04-03 14:07:46 +02:00
|
|
|
stage('Run metrics counter'){
|
2020-04-03 19:28:30 +02:00
|
|
|
steps {
|
2020-04-03 14:07:46 +02:00
|
|
|
sh('chmod +x ./metrics.sh')
|
|
|
|
sh label: 'count', script: './metrics.sh'
|
|
|
|
}
|
|
|
|
}
|
2020-04-03 18:19:31 +02:00
|
|
|
stage('Archive WER and SRR results') {
|
|
|
|
steps {
|
2020-04-03 18:27:52 +02:00
|
|
|
copyArtifacts filter: 'wer.txt, srr.txt', fingerprintArtifacts: true, projectName: 's452097-metrics', selector: lastSuccessful(), target: 'previousResults'
|
2020-04-03 18:25:41 +02:00
|
|
|
sh('chmod +x ./addResults.sh')
|
2020-04-03 18:19:31 +02:00
|
|
|
sh label: 'Add results to file', script: './addResults.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-03 13:30:33 +02:00
|
|
|
stage('Archive artifacts') {
|
|
|
|
steps {
|
2020-04-03 17:43:45 +02:00
|
|
|
archiveArtifacts 'countLines.txt'
|
2020-04-03 16:21:13 +02:00
|
|
|
archiveArtifacts 'wer.txt'
|
|
|
|
archiveArtifacts 'srr.txt'
|
2020-04-03 17:02:16 +02:00
|
|
|
archiveArtifacts 'wikiniews_results.tsv'
|
2020-04-03 13:30:33 +02:00
|
|
|
}
|
|
|
|
}
|
2020-04-03 19:20:05 +02:00
|
|
|
stage('Plots creator') {
|
|
|
|
steps {
|
|
|
|
build 's452097-plots'
|
|
|
|
}
|
2020-04-03 19:31:07 +02:00
|
|
|
}
|
2020-04-03 12:45:12 +02:00
|
|
|
}
|
2020-04-03 12:20:27 +02:00
|
|
|
}
|