fix eval
This commit is contained in:
parent
7e548f8e6c
commit
209efd905c
@ -1,6 +1,9 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
dockerfile true
|
docker {
|
||||||
|
image 'mikolajk/ium:mlflow'
|
||||||
|
args '-v /mlruns:/mlruns'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
parameters{
|
parameters{
|
||||||
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
|
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
|
||||||
@ -35,10 +38,10 @@ pipeline {
|
|||||||
sh 'python3 ./src/evalScript.py'
|
sh 'python3 ./src/evalScript.py'
|
||||||
archiveArtifacts 'trainResults.csv, metrics.png'
|
archiveArtifacts 'trainResults.csv, metrics.png'
|
||||||
script {
|
script {
|
||||||
metric = sh '''
|
metric = sh (
|
||||||
script: 'tail -1 trainResults.csv',
|
script: 'tail -1 trainResults.csv',
|
||||||
returnStdout: true
|
returnStdout: true
|
||||||
).trim()'''
|
).trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user