ium_434784/eval.Jenkinsfile
Maciej Sobkowiak 39de53d780 eval mail
2021-05-16 23:11:06 +02:00

48 lines
1.5 KiB
Plaintext

pipeline {
agent {
dockerfile true
}
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying model artifacts',
name: 'BUILD_SELECTOR_MODEL'
)
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
}
stages{
stage('copy-artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434784-create-dataset', selector: buildParameter('BUILD_SELECTOR')
copyArtifacts(fingerprintArtifacts: true, projectName: 's434784-training/${BRANCH}', selector: buildParameter('BUILD_SELECTOR_MODEL'))
}
}
stage('evaluation') {
steps {
script {
sh 'chmod +x evaluation.py'
sh 'python3 evaluation.py'
}
}
}
stage('archive-artifacts') {
steps{
archiveArtifacts 'results.txt'
archiveArtifacts 'plot.png'
}
}
stage('send-mail') {
steps{
emailext body: currentBuild.result ?: 'SUCCESS',
subject: 's434784-evaluation',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}
}