From 209efd905c1878192f3d52b0a5c91a28dcaf4666 Mon Sep 17 00:00:00 2001 From: s444417 Date: Sat, 21 May 2022 12:23:28 +0200 Subject: [PATCH] fix eval --- Jenkinsfile.eval | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile.eval b/Jenkinsfile.eval index 224c0b6..a9f2f92 100644 --- a/Jenkinsfile.eval +++ b/Jenkinsfile.eval @@ -1,6 +1,9 @@ pipeline { - agent { - dockerfile true + agent { + docker { + image 'mikolajk/ium:mlflow' + args '-v /mlruns:/mlruns' + } } parameters{ gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH' @@ -35,10 +38,10 @@ pipeline { sh 'python3 ./src/evalScript.py' archiveArtifacts 'trainResults.csv, metrics.png' script { - metric = sh ''' + metric = sh ( script: 'tail -1 trainResults.csv', returnStdout: true - ).trim()''' + ).trim() } }