Add plot for evaluation, add parameters to jenkins and fix mail sending
Some checks failed
s430705-training/pipeline/head There was a failure building this commit

This commit is contained in:
s430705 2021-05-13 11:47:21 +02:00
parent cee296967f
commit d3ca041db4
2 changed files with 9 additions and 5 deletions

View File

@ -18,6 +18,13 @@ pipeline {
description: 'Which build to use for copying artifacts',
name: 'WHICH_BUILD_EVAL'
)
string(
defaultValue: '0',
description: 'Build number of s430705-training',
name: 'buildNumber',
trim: false
)
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
}
@ -31,10 +38,7 @@ pipeline {
}
stage('Evaluation') {
steps {
script {
def build_number = Jenkins.instance.getitem("s430705-training/master").lastSuccessfulBuild.number
}
sh 'python3 "./lab06-eval.py build_number"'
sh 'python3 "./lab06-eval.py ${buildNumber}"'
sh 'python3 "./lab06-plot.py"'
sh 'python3 "./lab07_sacred01.py"'
sh 'python3 "./lab07_sacred02.py"'

View File

@ -30,7 +30,7 @@ pipeline {
post {
success {
build job: 's430705-evaluation/master'
build job: 's430705-evaluation/master', parameters: [string(name: 'buildNumber', value: $BUILD_NUMBER)]
mail body: 'SUCCESS',
subject: 's430705',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'