From 436ae7baf25be7ef88dd24b4bf43f47f9736f745 Mon Sep 17 00:00:00 2001 From: s444417 Date: Sat, 7 May 2022 12:00:05 +0200 Subject: [PATCH] metric fix --- Jenkinsfile.eval | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile.eval b/Jenkinsfile.eval index f353528..8b0d663 100644 --- a/Jenkinsfile.eval +++ b/Jenkinsfile.eval @@ -34,17 +34,10 @@ pipeline { copyArtifacts projectName: "s444417-training/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true sh 'python3 ./src/evalScript.py' archiveArtifacts 'trainResults.csv' - sh "ls -la" - } - } - stage('get eval value') { - steps { - script { - metric = sh ( - script: 'trainResults.csv', - returnStdout: true - ).trim() - } + metric = sh ( + script: 'trainResults.csv', + returnStdout: true + ).trim() } } }