From 9b0398a9786b6ce8ac2c216e37f97962db1d2631 Mon Sep 17 00:00:00 2001 From: s434766 Date: Thu, 13 May 2021 23:14:39 +0200 Subject: [PATCH] sacred3 --- pytorch-training-eval/Jenkinsfile-eval | 15 +++++++++------ pytorch-training-eval/Jenkinsfile-train | 20 ++++++++++++-------- 2 files changed, 21 insertions(+), 14 deletions(-) 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' + } + + } }