ium_434704/Jenkinsfile_eval

47 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

2021-05-14 04:01:11 +02:00
pipeline {
agent {
dockerfile true
}
parameters {
2021-05-14 15:31:03 +02:00
buildSelector(defaultSelector: lastSuccessful(), description: 'Use latest build training', name: 'BUILD_SELECTOR_TRAINING')
2021-05-14 23:58:58 +02:00
buildSelector(defaultSelector: lastSuccessful(), description: 'Use latest build evaluation', name: 'BUILD_SELECTOR_EVALUATION')
buildSelector(defaultSelector: lastSuccessful(), description: 'Use latest build training', name: 'BUILD_SELECTOR_CREATE')
2021-05-14 15:31:03 +02:00
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
2021-05-14 04:01:11 +02:00
}
stages {
stage("Copy artifacts"){
steps {
2021-05-14 23:03:19 +02:00
copyArtifacts fingerprintArtifacts: true, projectName: "s434704-training/${params.BRANCH}", selector: buildParameter('BUILD_SELECTOR_TRAINING')
2021-05-14 23:58:58 +02:00
copyArtifacts fingerprintArtifacts: true, projectName: "s434704-evaluation/${params.BRANCH}", optional: true, selector: buildParameter('BUILD_SELECTOR_EVALUATION')
2021-05-15 00:46:07 +02:00
copyArtifacts fingerprintArtifacts: true, projectName: "s434704-create-dataset", selector: buildParameter('BUILD_SELECTOR_CREATE')
2021-05-14 04:01:11 +02:00
}
}
stage("Run evaluation"){
steps {
sh "python3 evaluation.py"
}
}
2021-05-15 02:53:11 +02:00
stage("Generate metrics"){
steps {
2021-05-14 22:26:47 +02:00
sh "python3 save_metrics.py ${env.BUILD_ID}"
2021-05-15 02:53:11 +02:00
}
}
stage("Generate chart"){
steps {
2021-05-14 04:01:11 +02:00
sh "python3 create_chart.py"
2021-05-15 02:53:11 +02:00
}
}
stage("Save artifacts") {
steps{
2021-05-14 04:01:11 +02:00
archiveArtifacts 'chart.png'
2021-05-15 02:50:40 +02:00
archiveArtifacts 'bulk_metrics.txt'
archiveArtifacts 'rmse.txt'
2021-05-14 04:01:11 +02:00
}
}
}
post {
always {
mail body: "EVALUATION - ${currentBuild.currentResult}", subject: 's434704', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}