From 693dd19e223ff6bb152ade2eaeffbb8caa039dfd Mon Sep 17 00:00:00 2001 From: Karolina Oparczyk Date: Thu, 20 May 2021 18:19:54 +0200 Subject: [PATCH] copy artifacts metrics --- JenkinsfileEval | 4 +++- evaluate_network.py | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/JenkinsfileEval b/JenkinsfileEval index 07f31f6..f855126 100644 --- a/JenkinsfileEval +++ b/JenkinsfileEval @@ -15,17 +15,19 @@ node { } stage('Clone repo') { - docker.image("karopa/ium:12").inside { + docker.image("karopa/ium:13").inside { stage('Test') { checkout([$class: 'GitSCM', branches: [[name: '*/evaluation']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434765/ium_434765']]]) copyArtifacts fingerprintArtifacts: true, projectName: 's434765-create-dataset', selector: buildParameter("BUILD_DATASET") copyArtifacts fingerprintArtifacts: true, projectName: 's434765-training/master/', selector: buildParameter("BUILD_MODEL") + copyArtifacts fingerprintArtifacts: true, projectName: 's434765-evaluation/evaluation/', selector: buildParameter("BUILD_EVALUATION") sh ''' #!/usr/bin/env bash chmod 777 evaluate_network.py python3 evaluate_network.py | tee output.txt ''' archiveArtifacts 'output.txt' + archiveArtifacts 'rmse.txt' } } } diff --git a/evaluate_network.py b/evaluate_network.py index 52421ab..1579118 100644 --- a/evaluate_network.py +++ b/evaluate_network.py @@ -36,3 +36,6 @@ for (pred, test) in zip(prediction_denormalized, y_test.values): error = mean_squared_error(y_test, prediction_denormalized) print(error) + +with open("rmse.txt", "a") as file: + file.write(error)