70 lines
2.1 KiB
Groovy
70 lines
2.1 KiB
Groovy
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
|
|
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 training artifacts',
|
|
name: 'WHICH_BUILD_TRAIN'
|
|
)
|
|
|
|
buildSelector(
|
|
defaultSelector: lastSuccessful(),
|
|
description: 'Which build to use for copying evaluation artifacts',
|
|
name: 'WHICH_BUILD_THIS'
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('copy artifacts')
|
|
{
|
|
steps
|
|
{
|
|
copyArtifacts(fingerprintArtifacts: true, projectName: 's434695-create-dataset', selector: buildParameter('WHICH_BUILD_DATA'))
|
|
copyArtifacts(fingerprintArtifacts: true, projectName: 's434695-training/train', selector: buildParameter('WHICH_BUILD_TRAIN'))
|
|
copyArtifacts(fingerprintArtifacts: true, optional:true, projectName: 's434742-evaluation/evaluation', selector: buildParameter('WHICH_BUILD_THIS'))
|
|
}
|
|
}
|
|
|
|
stage('evaluate')
|
|
{
|
|
steps
|
|
{
|
|
catchError {
|
|
sh 'python3 evaluation.py'
|
|
}
|
|
}
|
|
}
|
|
|
|
stage('archiveArtifacts') {
|
|
steps{
|
|
archiveArtifacts 'results.txt'
|
|
archiveArtifacts 'plot.png'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
success {
|
|
mail body: 'SUCCESS', subject: 's434695 evaluate', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
unstable {
|
|
mail body: 'UNSTABLE', subject: 's434695 evaluate', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
failure {
|
|
mail body: 'FAILURE', subject: 's434695 evaluate', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
changed {
|
|
mail body: 'CHANGED', subject: 's434695 evaluate', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
}
|
|
} |