ium_434742/Jenkinsfile-evaluation

64 lines
1.8 KiB
Plaintext
Raw Normal View History

2021-05-08 13:28:34 +02:00
pipeline {
agent any
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
2021-05-11 21:00:04 +02:00
description: 'Which build to use for copying data artifacts',
name: 'BUILD_SELECTOR_DATASET'
2021-05-08 13:28:34 +02:00
)
buildSelector(
defaultSelector: lastSuccessful(),
2021-05-11 21:00:04 +02:00
description: 'Which build to use for copying training artifacts',
name: 'BUILD_SELECTOR_TRAINING'
2021-05-08 13:28:34 +02:00
)
buildSelector(
defaultSelector: lastSuccessful(),
2021-05-11 21:00:04 +02:00
description: 'Which build to use for copying evaluation artifacts',
name: 'BUILD_SELECTOR_EVALUATION'
2021-05-08 13:28:34 +02:00
)
}
2021-05-11 21:13:54 +02:00
stages {
2021-05-08 13:28:34 +02:00
stage('copy artifacts')
{
steps
{
2021-05-11 21:00:04 +02:00
copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-create-dataset', selector: buildParameter('BUILD_SELECTOR_DATASET'))
2021-05-13 17:05:07 +02:00
copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-training/master', selector: buildParameter('BUILD_SELECTOR_TRAINING'))
copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-evaluation/master', selector: buildParameter('BUILD_SELECTOR_EVALUATION', optional=true))
2021-05-08 13:28:34 +02:00
}
}
2021-05-13 17:05:07 +02:00
stage('evaluation') {
2021-05-08 13:28:34 +02:00
steps {
script {
2021-05-13 17:05:07 +02:00
sh 'chmod +x avocado-evaluation.py'
sh 'python3 avocado-evaluation.py'
2021-05-08 13:28:34 +02:00
}
}
}
2021-05-13 17:05:07 +02:00
stage('archiveArtifacts') {
steps{
archiveArtifacts 'eval_results.txt'
archiveArtifacts 'eval_plot.png'
}
}
2021-05-08 13:28:34 +02:00
stage('sendMail') {
steps{
emailext body: currentBuild.result ?: 'SUCCESS',
subject: 's434742 evaluation',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
2021-05-11 21:13:54 +02:00
}
2021-05-11 21:07:44 +02:00
}