From cee296967fd7c6f45794e8e87a960debb550fa52 Mon Sep 17 00:00:00 2001 From: s430705 Date: Thu, 13 May 2021 11:33:28 +0200 Subject: [PATCH] Add plot for evaluation, add parameters to jenkins and fix mail sending --- Jenkinsfile_evaluation | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile_evaluation b/Jenkinsfile_evaluation index 05a2eac..0211f68 100644 --- a/Jenkinsfile_evaluation +++ b/Jenkinsfile_evaluation @@ -30,9 +30,11 @@ pipeline { } } stage('Evaluation') { - steps{ - build = ${env.BUILD_ID} - sh 'python3 "./lab06-eval.py build"' + steps { + script { + def build_number = Jenkins.instance.getitem("s430705-training/master").lastSuccessfulBuild.number + } + sh 'python3 "./lab06-eval.py build_number"' sh 'python3 "./lab06-plot.py"' sh 'python3 "./lab07_sacred01.py"' sh 'python3 "./lab07_sacred02.py"'