2021-05-07 21:30:35 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
2021-05-10 10:56:36 +02:00
|
|
|
parameters{
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'WHICH_BUILD_DATA'
|
|
|
|
)
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'WHICH_BUILD_TRAIN'
|
|
|
|
)
|
|
|
|
}
|
2021-05-07 21:30:35 +02:00
|
|
|
stages {
|
|
|
|
stage('checkout') {
|
|
|
|
steps {
|
2021-05-10 10:56:36 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434766-create-dataset', selector: buildParameter('WHICH_BUILD_DATA')
|
2021-05-07 21:30:35 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Docker'){
|
|
|
|
steps{
|
2021-05-10 11:34:52 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434766-training/master', selector: buildParameter('WHICH_BUILD_TRAIN')
|
2021-05-10 10:56:36 +02:00
|
|
|
sh 'python3 "./stroke-pytorch-eval.py" >> eval.txt'
|
2021-05-07 21:30:35 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('archiveArtifacts') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'eval.txt'
|
|
|
|
}
|
|
|
|
}
|
2021-05-10 10:56:36 +02:00
|
|
|
stage('sendMail') {
|
|
|
|
steps{
|
|
|
|
emailext body: currentBuild.result ?: 'SUCCESS',
|
2021-05-11 21:53:49 +02:00
|
|
|
subject: 's434766 evaluation',
|
2021-05-10 10:56:36 +02:00
|
|
|
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
}
|
2021-05-07 21:30:35 +02:00
|
|
|
}
|
|
|
|
}
|