ium_434788/Jenkinsfile_evaluation

61 lines
2.2 KiB
Plaintext
Raw Normal View History

2021-05-14 20:25:24 +02:00
pipeline {
2021-05-15 15:33:42 +02:00
agent {docker { image 'snowycocoon/ium_434788:3'}}
2021-05-14 20:25:24 +02:00
parameters{
2021-05-15 15:33:42 +02:00
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying data artifacts',
name: 'WHICH_BUILD_DATA'
)
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying train artifacts',
name: 'WHICH_BUILD_TRAIN'
)
2021-05-14 20:25:24 +02:00
buildSelector(
defaultSelector: lastSuccessful(),
2021-05-15 15:33:42 +02:00
description: 'Which build to use for copying current project artifacts',
name: 'WHICH_BUILD_THIS'
2021-05-14 20:25:24 +02:00
)
}
stages {
stage('copy artifacts')
{
steps
{
2021-05-14 20:34:00 +02:00
copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-create-dataset', selector: buildParameter('WHICH_BUILD'))
2021-05-15 15:33:42 +02:00
copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training/master', selector: buildParameter('WHICH_BUILD_TRAIN'))
copyArtifacts(fingerprintArtifacts: true, optional: true, projectName: 's434788-evaluation/master', selector: buildParameter('WHICH_BUILD_THIS'))
}
}
stage('evaluate')
{
steps
{
catchError {
sh 'python3.8 Zadanie_06_evaluate.py'
}
}
}
stage('archive artifacts') {
steps {
archiveArtifacts 'results.txt,evaluation.png'
2021-05-14 20:25:24 +02:00
}
}
}
post {
success {
mail body: 'SUCCESS', subject: 's434788 evaluate', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
unstable {
mail body: 'UNSTABLE', subject: 's434788 evaluate', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
mail body: 'FAILURE', subject: 's434788 evaluate', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
changed {
mail body: 'CHANGED', subject: 's434788 evaluate', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}