ium_434742/Jenkinsfile-evaluation

69 lines
2.0 KiB
Plaintext
Raw Normal View History

2021-05-08 13:28:34 +02:00
pipeline {
2021-05-13 17:32:38 +02:00
agent {
dockerfile true
}
2021-05-08 13:28:34 +02:00
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-13 17:32:38 +02:00
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
}
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'))
2021-05-13 17:32:38 +02:00
copyArtifacts(fingerprintArtifacts: true, optional=true, projectName: 's434742-evaluation/master', selector: buildParameter('BUILD_SELECTOR_EVALUATION'))
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
}