s452111-mlworkshops/Jenkinsfile

45 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-04-03 14:50:49 +02:00
pipeline {
2020-04-21 19:19:04 +02:00
agent { dockerfile true }
2020-04-03 14:50:49 +02:00
stages {
2020-04-21 21:07:38 +02:00
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 {
2020-04-21 21:25:03 +02:00
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
2020-04-22 16:54:13 +02:00
copyArtifacts filter: 'wer.txt', fingerprintArtifacts: true, projectName: 's452111-metrics', selector: lastSuccessful()
copyArtifacts filter: 'srr.txt', fingerprintArtifacts: true, projectName: 's452111-metrics', selector: lastSuccessful()
2020-04-21 21:07:38 +02:00
}
}
2020-04-22 14:32:11 +02:00
stage('Count the metrics') {
2020-04-21 21:44:51 +02:00
steps {
2020-04-21 21:07:38 +02:00
sh 'chmod +x ./service.sh'
2020-04-21 21:44:51 +02:00
sh './service.sh'
2020-04-21 22:40:42 +02:00
sh 'chmod +x ./metrics_service.sh'
sh './metrics_service.sh'
2020-04-21 21:44:51 +02:00
}
2020-04-21 21:07:38 +02:00
}
2020-04-21 21:51:59 +02:00
stage('Archive artifacts') {
steps {
archiveArtifacts 'lines_count.txt'
2020-04-22 14:32:11 +02:00
archiveArtifacts 'wikinews_results.tsv'
archiveArtifacts 'wer.txt'
archiveArtifacts 'srr.txt'
2020-04-21 21:51:59 +02:00
}
}
2020-04-22 16:54:13 +02:00
stage('Build the plots project') {
steps {
build 's452111-plots'
}
}
2020-04-03 14:50:49 +02:00
}
}