add mae to email
This commit is contained in:
parent
4c816f3506
commit
0a760292ae
@ -21,38 +21,26 @@ pipeline {
|
|||||||
sh 'python3 ./biblioteka_DL/evaluate.py'
|
sh 'python3 ./biblioteka_DL/evaluate.py'
|
||||||
archiveArtifacts artifacts: 'mae.txt, rmse.txt, mse.txt, evr.txt, metrics.png', followSymlinks: false
|
archiveArtifacts artifacts: 'mae.txt, rmse.txt, mse.txt, evr.txt, metrics.png', followSymlinks: false
|
||||||
script {
|
script {
|
||||||
ACC = sh (
|
MAE = sh (
|
||||||
script: 'tail -1 mae.txt',
|
script: 'tail -1 mae.txt',
|
||||||
returnStdout: true
|
returnStdout: true
|
||||||
).trim()
|
).trim()
|
||||||
ACC = sh (
|
|
||||||
script: 'tail -1 rmse.txt',
|
|
||||||
returnStdout: true
|
|
||||||
).trim()
|
|
||||||
ACC = sh (
|
|
||||||
script: 'tail -1 mse.txt',
|
|
||||||
returnStdout: true
|
|
||||||
).trim()
|
|
||||||
ACC = sh (
|
|
||||||
script: 'tail -1 evr.txt',
|
|
||||||
returnStdout: true
|
|
||||||
).trim()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
emailext body: "SUCCESS, ACC = ${ACC}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
emailext body: "SUCCESS, MAE = ${MAE}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
||||||
}
|
}
|
||||||
failure {
|
failure {
|
||||||
emailext body: "FAILURE, ACC = ${ACC}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
emailext body: "FAILURE, MAE = ${MAE}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
||||||
}
|
}
|
||||||
unstable {
|
unstable {
|
||||||
emailext body: "UNSTABLE, ACC = ${ACC}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
emailext body: "UNSTABLE, MAE = ${MAE}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
||||||
}
|
}
|
||||||
changed {
|
changed {
|
||||||
emailext body: "CHANGED, ACC = ${ACC}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
emailext body: "CHANGED, MAE = ${MAE}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user