Change plot (JenkinsfileEvaluation)

This commit is contained in:
PawelDopierala 2024-05-15 01:43:14 +02:00
parent aa45e2b730
commit cade934db3
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ pipeline {
}
stage('CreateArtifacts') {
steps {
archiveArtifacts artifacts: 'hp_test_predictions.csv,hp_test_metrics.csv,metrics_plt.png'
archiveArtifacts artifacts: 'hp_test_predictions.csv,hp_test_metrics.csv,plot_mae.png, plot_r2.png, plot_rmse.png'
}
}
}

View File

@ -46,6 +46,6 @@ for metric in metrics:
plt.xlabel('Build Number')
plt.ylabel(metric)
plt.grid(True)
plot_file = f'{metric.lower()}_plt.png'
plot_file = f'plot_{metric.lower()}.png'
plt.savefig(plot_file)
plt.close()