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
|
|
|
|
|
|
|
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'){
|
|
|
|
steps{
|
|
|
|
sh('chmod +x ./metrics.sh')
|
|
|
|
sh label: 'count', script: './metrics.sh'
|
|
|
|
}
|
|
|
|
}
|
2020-04-03 13:30:33 +02:00
|
|
|
stage('Archive artifacts') {
|
|
|
|
steps {
|
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 12:45:12 +02:00
|
|
|
}
|
2020-04-03 12:20:27 +02:00
|
|
|
}
|