This commit is contained in:
Wojciech Jarmosz 2021-05-15 02:50:40 +02:00
parent c25ca20a40
commit 9e16be7a3e
2 changed files with 4 additions and 8 deletions

View File

@ -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'
}
}
}

View File

@ -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)