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'
|
2021-05-13 10:48:52 +02:00
|
|
|
)
|
|
|
|
buildSelector(
|
2021-05-10 19:42:26 +02:00
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'WHICH_BUILD_TRAIN'
|
2021-05-13 10:48:52 +02:00
|
|
|
)
|
|
|
|
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 {
|
2021-05-13 10:48:52 +02:00
|
|
|
stage('copyArtifacts') {
|
2021-05-10 19:42:26 +02:00
|
|
|
steps {
|
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's430705-create-dataset', selector: buildParameter('WHICH_BUILD_DATA')
|
2021-05-13 10:48:52 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|
2021-05-13 11:06:09 +02:00
|
|
|
stage('Evaluation') {
|
2021-05-13 11:33:28 +02:00
|
|
|
steps {
|
2021-05-13 12:52:46 +02:00
|
|
|
sh 'buildNumber=$(echo $BUILD_NUMBER)'
|
2021-05-13 12:54:57 +02:00
|
|
|
sh "python3 ./lab06-eval.py $buildNumber"
|
2021-05-13 10:48:52 +02:00
|
|
|
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/**'
|
2021-05-13 10:48:52 +02:00
|
|
|
archiveArtifacts 'evaluation_plot.png'
|
2021-05-10 19:42:26 +02:00
|
|
|
}
|
|
|
|
}
|
2021-05-13 10:48:52 +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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|