ium_430705/Jenkinsfile_evaluation

63 lines
2.3 KiB
Plaintext
Raw Normal View History

2021-05-10 19:42:26 +02:00
pipeline {
agent {
dockerfile true
}
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'WHICH_BUILD_DATA'
)
buildSelector(
2021-05-10 19:42:26 +02:00
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'WHICH_BUILD_TRAIN'
)
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'WHICH_BUILD_EVAL'
)
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
}
2021-05-10 19:42:26 +02:00
stages {
stage('copyArtifacts') {
2021-05-10 19:42:26 +02:00
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's430705-create-dataset', selector: buildParameter('WHICH_BUILD_DATA')
copyArtifacts fingerprintArtifacts: true, projectName: 's430705-training/master', selector: buildParameter('WHICH_BUILD_TRAIN')
copyArtifacts optional: true, fingerprintArtifacts: true, projectName: 's430705-evaluation/master', selector: buildParameter('WHICH_BUILD_EVAL')
2021-05-10 19:42:26 +02:00
}
}
stage('Evaluation') {
steps {
2021-05-13 12:52:46 +02:00
sh 'buildNumber=$(echo $BUILD_NUMBER)'
2021-05-13 13:02:40 +02:00
sh "python3 ./lab06-eval.py $BUILD_NUMBER"
sh 'python3 "./lab06-plot.py"'
2021-05-12 09:56:18 +02:00
sh 'python3 "./lab07_sacred01.py"'
sh 'python3 "./lab07_sacred02.py"'
2021-05-10 19:42:26 +02:00
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'eval.txt'
2021-05-10 21:10:41 +02:00
archiveArtifacts 'lab07/**'
archiveArtifacts 'evaluation_plot.png'
2021-05-10 19:42:26 +02:00
}
}
}
post {
success {
mail body: 'SUCCESS', subject: 's430705', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
unstable {
mail body: 'UNSTABLE', subject: 's430705', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
mail body: 'FAILURE', subject: 's430705', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
changed {
mail body: 'CHANGED', subject: 's430705', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
2021-05-10 19:42:26 +02:00
}
}
}