From 228a96adfb9c5d4709ec551741bfeab6506ae839 Mon Sep 17 00:00:00 2001 From: AdamOsiowy123 Date: Wed, 4 May 2022 20:29:38 +0200 Subject: [PATCH] fix --- Jenkins/Jenkinsfile.evaluation | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkins/Jenkinsfile.evaluation b/Jenkins/Jenkinsfile.evaluation index c6b55fb..b9a3932 100644 --- a/Jenkins/Jenkinsfile.evaluation +++ b/Jenkins/Jenkinsfile.evaluation @@ -57,8 +57,11 @@ def notifyBuild(String buildStatus = 'STARTED') { buildStatus = buildStatus ?: 'SUCCESS' def subject = "Job: ${env.JOB_NAME}" - def lines= new File("./neural_network_evaluation.csv").readLines() + + def filePath = readFile "${WORKSPACE}/neural_network_evaluation.csv" + def lines = filePath.readLines() def lastline=lines.get(lines.size()-1) + def details = "Build nr: ${env.BUILD_NUMBER}, status: ${buildStatus} \n url: ${env.BUILD_URL} \n build params: ${params.TEST_PARAMS} \n metrics: ${lastline}" emailext (