diff --git a/pytorch-training-eval/Jenkinsfile-eval b/pytorch-training-eval/Jenkinsfile-eval index 343fed3..a326b6f 100644 --- a/pytorch-training-eval/Jenkinsfile-eval +++ b/pytorch-training-eval/Jenkinsfile-eval @@ -31,12 +31,15 @@ pipeline { archiveArtifacts 'eval.txt' } } - stage('sendMail') { - steps{ - emailext body: currentBuild.result ?: 'SUCCESS', - subject: 's434766 evaluation', - to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' - } + } + 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' + } + } } \ No newline at end of file diff --git a/pytorch-training-eval/Jenkinsfile-train b/pytorch-training-eval/Jenkinsfile-train index 6485c46..11077ad 100644 --- a/pytorch-training-eval/Jenkinsfile-train +++ b/pytorch-training-eval/Jenkinsfile-train @@ -29,22 +29,26 @@ pipeline { stage('Docker'){ steps{ sh 'python3 "./stroke-pytorch.py" ${BATCH_SIZE} ${EPOCHS} > pred.txt' + sh 'python3 "./sacred-pytorch1.py" + sh 'python3 "./sacred-pytorch2.py" } } stage('archiveArtifacts') { steps{ + archiveArtifacts 'ium_s434766/**' archiveArtifacts 'pred.txt' 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' + } + + } }