ium_434784/eval.Jenkinsfile

48 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2021-05-16 21:19:00 +02:00
pipeline {
2021-05-16 22:10:37 +02:00
agent {
dockerfile true
}
2021-05-16 21:35:29 +02:00
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
2021-05-16 21:19:00 +02:00
)
2021-05-16 21:43:40 +02:00
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying model artifacts',
name: 'BUILD_SELECTOR_MODEL'
)
2021-05-16 21:53:41 +02:00
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
2021-05-16 21:35:29 +02:00
}
stages{
stage('copy-artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434784-create-dataset', selector: buildParameter('BUILD_SELECTOR')
2021-05-16 21:54:48 +02:00
copyArtifacts(fingerprintArtifacts: true, projectName: 's434784-training/${BRANCH}', selector: buildParameter('BUILD_SELECTOR_MODEL'))
2021-05-16 21:35:29 +02:00
}
}
2021-05-16 21:19:00 +02:00
stage('evaluation') {
steps {
2021-05-16 21:35:29 +02:00
script {
sh 'chmod +x evaluation.py'
sh 'python3 evaluation.py'
2021-05-16 21:19:00 +02:00
}
}
}
2021-05-16 22:58:56 +02:00
stage('archive-artifacts') {
steps{
archiveArtifacts 'results.txt'
2021-05-16 23:11:06 +02:00
archiveArtifacts 'plot.png'
}
}
stage('send-mail') {
steps{
emailext body: currentBuild.result ?: 'SUCCESS',
subject: 's434784-evaluation',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
2021-05-16 22:58:56 +02:00
}
}
2021-05-16 21:19:00 +02:00
}
}