diff --git a/Jenkinsfile_eval b/Jenkinsfile_eval index 311d4bf..f7b291f 100644 --- a/Jenkinsfile_eval +++ b/Jenkinsfile_eval @@ -21,17 +21,13 @@ pipeline { sh "python3 evaluation.py" } } - stage('Archive single metrics') { - steps{ - archiveArtifacts 'rmse.txt' - } - } - stage('Save metrics to bulk file & create chart') { + stage('Save metrics & create chart') { steps{ sh "python3 save_metrics.py ${env.BUILD_ID}" - archiveArtifacts 'bulk_metrics.txt' sh "python3 create_chart.py" archiveArtifacts 'chart.png' + archiveArtifacts 'bulk_metrics.txt' + archiveArtifacts 'rmse.txt' } } } diff --git a/save_metrics.py b/save_metrics.py index f2b994e..cc415a3 100644 --- a/save_metrics.py +++ b/save_metrics.py @@ -13,5 +13,5 @@ if os.path.exists("rmse.txt"): for line in file.readlines(): result = line - with open("bulk_metrics.txt", "w") as file: + with open("bulk_metrics.txt", "a") as file: file.write(build_no + " " + result)