From 8ce89f6d9c222f26d8865514523aa6e6969b6335 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Thu, 5 May 2022 23:02:43 +0200 Subject: [PATCH] Run evaluation pipeline after training --- Jenkinsfile-train | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile-train b/Jenkinsfile-train index 604cd31..92d5fcf 100644 --- a/Jenkinsfile-train +++ b/Jenkinsfile-train @@ -26,6 +26,12 @@ pipeline { sh "python train_model.py -e ${params.EPOCHS} -b ${params.BATCHSIZE}" } } + stage('Archive model and evaluate it') { + steps { + archiveArtifacts artifacts: 'model_out', onlyIfSuccessful: true + build job: 's444409-evaluation/main/' + } + } } environment { @@ -33,11 +39,6 @@ pipeline { } post { - always { - archiveArtifacts artifacts: 'model_out', - onlyIfSuccessful: true - } - success { emailext body: 'SUCCESS', subject: "${env.JOB_NAME}", to: "${env.NOTIFICATION_ADDRESS}" }