ium_434788/Jenkinsfile_evaluation
Dominik Strzako 3c968505d3 eqweqw
2021-05-15 15:37:11 +02:00

61 lines
2.2 KiB
Plaintext

pipeline {
agent {docker { image 'snowycocoon/ium_434788:3'}}
parameters{
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'
)
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying current project artifacts',
name: 'WHICH_BUILD_THIS'
)
}
stages {
stage('copy artifacts')
{
steps
{
copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-create-dataset', selector: buildParameter('WHICH_BUILD_DATA'))
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'
}
}
}
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'
}
}
}