diff --git a/pytorch-training-eval/Jenkinsfile b/pytorch-training-eval/Jenkinsfile-train similarity index 72% rename from pytorch-training-eval/Jenkinsfile rename to pytorch-training-eval/Jenkinsfile-train index 11a36ff..5ad9009 100644 --- a/pytorch-training-eval/Jenkinsfile +++ b/pytorch-training-eval/Jenkinsfile-train @@ -19,6 +19,7 @@ pipeline { name: 'EPOCHS' ) + } stages { stage('checkout') { steps { @@ -32,17 +33,19 @@ pipeline { } } stage('archiveArtifacts') { - steps { - archiveArtifacts 'pred.txt' + steps{ + archiveArtifacts 'pred.txt' archiveArtifacts 'stroke.pkl' - } - post { - success { - emailext body: 'Training of stroke predictions is finished', - subject: 's434766 training finished', - to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' - } + } + } + + stage('sendMail') { + steps{ + emailext body: currentBuild.result ?: 'SUCCESS', + subject: 's434766 training', + to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' } - } - } -} \ No newline at end of file + } + } + +}