Volume mapping

This commit is contained in:
MatOgr 2022-05-15 12:31:22 +02:00
parent 17379f6457
commit 6ad202ae8e

View File

@ -1,6 +1,9 @@
pipeline { pipeline {
agent { agent {
docker { image 's478841-image:latest' } docker {
image 's478841-image:latest'
args '-v /mlruns:/mlruns'
}
} }
parameters { parameters {
string( string(
@ -41,6 +44,7 @@ pipeline {
} }
stage('Archive artifacts') { stage('Archive artifacts') {
steps { steps {
archiveArtifacts artifacts: 'mlruns/**', onlyIfSuccessful: true
archiveArtifacts artifacts: '*data/predictions.csv', onlyIfSuccessful: true archiveArtifacts artifacts: '*data/predictions.csv', onlyIfSuccessful: true
archiveArtifacts artifacts: '*data/model_scripted*', onlyIfSuccessful: true archiveArtifacts artifacts: '*data/model_scripted*', onlyIfSuccessful: true
dir('data/training_runs') { dir('data/training_runs') {
@ -52,20 +56,20 @@ pipeline {
post { post {
success { success {
emailext body: 'SUCCESS', subject: 's478841-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' emailext body: 'SUCCESS', subject: "${env.JOB_NAME}", to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
build job: 's478841-evaluation/develop' build job: 's478841-evaluation/develop'
} }
failure { failure {
emailext body: 'FAILURE', subject: 's478841-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' emailext body: 'FAILURE', subject: "${env.JOB_NAME}", to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
} }
unstable { unstable {
emailext body: 'UNSTABLE', subject: 's478841-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' emailext body: 'UNSTABLE', subject: "${env.JOB_NAME}", to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
} }
changed { changed {
emailext body: 'CHANGED', subject: 's478841-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' emailext body: 'CHANGED', subject: "${env.JOB_NAME}", to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
} }
} }
} }