From 4c816f3506179cecba072dd7cb5202529ec565bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Parafin=CC=81ski?= Date: Mon, 9 May 2022 01:24:28 +0200 Subject: [PATCH] fix --- Dockerfile | 1 + Jenkinsfile_eval | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0ada682..faa5ab9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,7 @@ WORKDIR /app COPY lab2/download.sh . COPY biblioteka_DL/dllib.py . +COPY biblioteka_DL/evaluate.py . COPY biblioteka_DL/imdb_top_1000.csv . RUN chmod +x ./download.sh diff --git a/Jenkinsfile_eval b/Jenkinsfile_eval index 87eacbe..5386277 100644 --- a/Jenkinsfile_eval +++ b/Jenkinsfile_eval @@ -22,8 +22,20 @@ pipeline { archiveArtifacts artifacts: 'mae.txt, rmse.txt, mse.txt, evr.txt, metrics.png', followSymlinks: false script { ACC = sh ( - script: 'tail -1 metrics.txt', - returnStdout: true + script: 'tail -1 mae.txt', + returnStdout: true + ).trim() + ACC = sh ( + script: 'tail -1 rmse.txt', + returnStdout: true + ).trim() + ACC = sh ( + script: 'tail -1 mse.txt', + returnStdout: true + ).trim() + ACC = sh ( + script: 'tail -1 evr.txt', + returnStdout: true ).trim() } }