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
Some checks failed
s430705-training/pipeline/head There was a failure building this commit
This commit is contained in:
parent
cee296967f
commit
d3ca041db4
@ -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"'
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user