Mock fix
This commit is contained in:
parent
c25ca20a40
commit
9e16be7a3e
@ -21,17 +21,13 @@ pipeline {
|
|||||||
sh "python3 evaluation.py"
|
sh "python3 evaluation.py"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Archive single metrics') {
|
stage('Save metrics & create chart') {
|
||||||
steps{
|
|
||||||
archiveArtifacts 'rmse.txt'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Save metrics to bulk file & create chart') {
|
|
||||||
steps{
|
steps{
|
||||||
sh "python3 save_metrics.py ${env.BUILD_ID}"
|
sh "python3 save_metrics.py ${env.BUILD_ID}"
|
||||||
archiveArtifacts 'bulk_metrics.txt'
|
|
||||||
sh "python3 create_chart.py"
|
sh "python3 create_chart.py"
|
||||||
archiveArtifacts 'chart.png'
|
archiveArtifacts 'chart.png'
|
||||||
|
archiveArtifacts 'bulk_metrics.txt'
|
||||||
|
archiveArtifacts 'rmse.txt'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,5 +13,5 @@ if os.path.exists("rmse.txt"):
|
|||||||
for line in file.readlines():
|
for line in file.readlines():
|
||||||
result = line
|
result = line
|
||||||
|
|
||||||
with open("bulk_metrics.txt", "w") as file:
|
with open("bulk_metrics.txt", "a") as file:
|
||||||
file.write(build_no + " " + result)
|
file.write(build_no + " " + result)
|
||||||
|
Loading…
Reference in New Issue
Block a user