metric fix
Some checks failed
s444417-training/pipeline/head This commit looks good
s444417-evaluation/pipeline/head There was a failure building this commit

This commit is contained in:
s444417 2022-05-07 12:00:05 +02:00
parent ee8c2808d1
commit 436ae7baf2

View File

@ -34,17 +34,10 @@ pipeline {
copyArtifacts projectName: "s444417-training/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true copyArtifacts projectName: "s444417-training/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true
sh 'python3 ./src/evalScript.py' sh 'python3 ./src/evalScript.py'
archiveArtifacts 'trainResults.csv' archiveArtifacts 'trainResults.csv'
sh "ls -la" metric = sh (
} script: 'trainResults.csv',
} returnStdout: true
stage('get eval value') { ).trim()
steps {
script {
metric = sh (
script: 'trainResults.csv',
returnStdout: true
).trim()
}
} }
} }
} }