From adbd3f47fd292d0a5ca4668b426bc86b83d3bfb1 Mon Sep 17 00:00:00 2001 From: s444417 Date: Sat, 7 May 2022 12:01:19 +0200 Subject: [PATCH] metric fix --- Jenkinsfile.eval | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile.eval b/Jenkinsfile.eval index 8b0d663..a026e28 100644 --- a/Jenkinsfile.eval +++ b/Jenkinsfile.eval @@ -34,10 +34,13 @@ pipeline { copyArtifacts projectName: "s444417-training/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true sh 'python3 ./src/evalScript.py' archiveArtifacts 'trainResults.csv' - metric = sh ( + script { + metric = sh ( script: 'trainResults.csv', returnStdout: true ).trim() + } + } } }