Run evaluation pipeline after training

This commit is contained in:
Marcin Kostrzewski 2022-05-05 23:02:43 +02:00
parent 2656dc2f91
commit 8ce89f6d9c

View File

@ -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}"
}