58 lines
1.6 KiB
Groovy
58 lines
1.6 KiB
Groovy
pipeline {
|
|
agent { dockerfile true }
|
|
stages {
|
|
stage('checkout'){
|
|
steps {
|
|
git url: 'https://git.wmi.amu.edu.pl/s152203/s152203-mlworkshops'
|
|
echo 'Check out from version control'
|
|
}
|
|
}
|
|
|
|
stage('Copy artifacts'){
|
|
steps{
|
|
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
|
|
}
|
|
}
|
|
|
|
stage('Shell script'){
|
|
steps{
|
|
sh 'chmod +x script.sh'
|
|
sh './script.sh'
|
|
sh label: 'cat', script: 'cat res.txt'
|
|
}
|
|
}
|
|
|
|
stage('Dockerfile') {
|
|
steps {
|
|
sh 'gcc --version'
|
|
}
|
|
}
|
|
|
|
stage('Counting metricts') {
|
|
steps {
|
|
sh 'chmod +x metricts.sh'
|
|
sh './metricts.sh'
|
|
}
|
|
}
|
|
|
|
stage('Accumulate metrics results'){
|
|
steps{
|
|
sh 'chmod +x to_file.sh'
|
|
|
|
copyArtifacts filter: 'srr.txt, wer.txt', fingerprintArtifacts: true, optional: true, projectName: 's152203-metrics', target: 'last-results'
|
|
sh label: '', script: './to_file.sh last-results/srr.txt srr.txt'
|
|
sh label: '', script: './to_file.sh last-results/wer.txt wer.txt'
|
|
}
|
|
}
|
|
|
|
stage('archiveArtifacts'){
|
|
steps{
|
|
archiveArtifacts 'res.txt'
|
|
archiveArtifacts 'srr.txt'
|
|
archiveArtifacts 'wer.txt'
|
|
archiveArtifacts 'wikiniews_results_with_wer.tsv'
|
|
}
|
|
}
|
|
|
|
}
|
|
} |