Zaktualizuj 'Jenkinsfile_training'
Some checks failed
s430705-training/pipeline/head There was a failure building this commit

Add mount mlflow folder
This commit is contained in:
Michał Zaręba 2021-05-27 13:14:33 +02:00
parent 08accfc904
commit bb3e3ae545

View File

@ -1,5 +1,8 @@
pipeline {
agent {dockerfile true}
environment {
img = docker.build('s430705/ium:4')
}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
@ -13,11 +16,17 @@ pipeline {
}
stages {
stage('MLFLOW mounted'){
img.inside('-v /tmp/mlruns:/tmp/mlruns -v /mlruns:/mlruns ') {
sh "export MLFLOW_TRACKING_URI=http://172.17.0.1:5000"
sh "python3 lab08_mfl.py"
}
}
stage('copyArtifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's430705-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh "python3 lab08_mfl.py"
sh "export MLFLOW_TRACKING_URI=http://172.17.0.1:5000"
sh "rm -rf movies_imdb"
sh "python3 lab08_mfl.py"
sh "python3 lab06_training.py ${epochs}"
}