ium_434704/Jenkinsfile_eval
Wojciech Jarmosz 2a3a047b7a
Some checks failed
s434704-evaluation/pipeline/head There was a failure building this commit
Cleanup Jenkinsfile
2021-05-15 02:53:11 +02:00

47 lines
1.9 KiB
Plaintext

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