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 14:53:02 +02:00
|
|
|
echo 'WER and SRR metrics'
|
|
|
|
|
2020-04-03 12:54:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 13:53:16 +02:00
|
|
|
stage('Dockerfile') {
|
2020-04-03 14:53:02 +02:00
|
|
|
steps {
|
|
|
|
sh 'gcc --version'
|
|
|
|
}
|
|
|
|
}
|
2020-04-03 11:33:45 +02:00
|
|
|
}
|
|
|
|
}
|