45 lines
1.2 KiB
Groovy
45 lines
1.2 KiB
Groovy
pipeline {
|
|
agent { dockerfile true }
|
|
stages {
|
|
stage('Checkout') {
|
|
steps {
|
|
checkout([$class: 'GitSCM',
|
|
branches: [[name: '*/master']],
|
|
doGenerateSubmoduleConfigurations: false,
|
|
extensions: [],
|
|
submoduleCfg: [],
|
|
userRemoteConfigs: [[
|
|
url: 'https://git.wmi.amu.edu.pl/s452111/s452111-mlworkshops']]])
|
|
}
|
|
}
|
|
stage('Copy Artifacts') {
|
|
steps {
|
|
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
|
|
copyArtifacts filter: 'wer.txt', fingerprintArtifacts: true, projectName: 's452111-metrics', selector: lastSuccessful()
|
|
copyArtifacts filter: 'srr.txt', fingerprintArtifacts: true, projectName: 's452111-metrics', selector: lastSuccessful()
|
|
}
|
|
}
|
|
stage('Count the metrics') {
|
|
steps {
|
|
sh 'chmod +x ./service.sh'
|
|
sh './service.sh'
|
|
sh 'chmod +x ./metrics_service.sh'
|
|
sh './metrics_service.sh'
|
|
}
|
|
}
|
|
stage('Archive artifacts') {
|
|
steps {
|
|
archiveArtifacts 'lines_count.txt'
|
|
archiveArtifacts 'wikinews_results.tsv'
|
|
archiveArtifacts 'wer.txt'
|
|
archiveArtifacts 'srr.txt'
|
|
}
|
|
}
|
|
stage('Build the plots project') {
|
|
steps {
|
|
build 's452111-plots'
|
|
}
|
|
}
|
|
}
|
|
}
|