ium_434766/pytorch-training-eval/Jenkinsfile-eval
s434766 9b0398a978
Some checks failed
s434766-training/pipeline/head There was a failure building this commit
sacred3
2021-05-13 23:14:39 +02:00

45 lines
1.3 KiB
Plaintext

pipeline {
agent {
dockerfile true
}
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'
)
}
stages {
stage('checkout') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434766-create-dataset', selector: buildParameter('WHICH_BUILD_DATA')
}
}
stage('Docker'){
steps{
copyArtifacts fingerprintArtifacts: true, projectName: 's434766-training/master', selector: buildParameter('WHICH_BUILD_TRAIN')
sh 'python3 "./stroke-pytorch-eval.py" >> eval.txt'
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'eval.txt'
}
}
}
post {
success {
mail body: 'SUCCESS EVALUATION', subject: 's434766', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
mail body: 'FAILURE EVALUATION', subject: 's434766', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}