sacred3
Some checks failed
s434766-training/pipeline/head There was a failure building this commit

This commit is contained in:
s434766 2021-05-13 23:14:39 +02:00
parent 148a1f4e17
commit 9b0398a978
2 changed files with 21 additions and 14 deletions

View File

@ -31,12 +31,15 @@ pipeline {
archiveArtifacts 'eval.txt' archiveArtifacts 'eval.txt'
} }
} }
stage('sendMail') { }
steps{ post {
emailext body: currentBuild.result ?: 'SUCCESS', success {
subject: 's434766 evaluation', mail body: 'SUCCESS EVALUATION', subject: 's434766', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
} }
failure {
mail body: 'FAILURE EVALUATION', subject: 's434766', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
} }
} }

View File

@ -29,22 +29,26 @@ pipeline {
stage('Docker'){ stage('Docker'){
steps{ steps{
sh 'python3 "./stroke-pytorch.py" ${BATCH_SIZE} ${EPOCHS} > pred.txt' sh 'python3 "./stroke-pytorch.py" ${BATCH_SIZE} ${EPOCHS} > pred.txt'
sh 'python3 "./sacred-pytorch1.py"
sh 'python3 "./sacred-pytorch2.py"
} }
} }
stage('archiveArtifacts') { stage('archiveArtifacts') {
steps{ steps{
archiveArtifacts 'ium_s434766/**'
archiveArtifacts 'pred.txt' archiveArtifacts 'pred.txt'
archiveArtifacts 'stroke.pth' archiveArtifacts 'stroke.pth'
} }
} }
stage('sendMail') {
steps{
emailext body: currentBuild.result ?: 'SUCCESS',
subject: 's434766 training',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
} }
post {
success {
mail body: 'SUCCESS TRAINING', subject: 's434766', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
mail body: 'FAILURE TRAINING', subject: 's434766', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
} }