Zaktualizuj 'Jenkinsfile_training'
Some checks failed
s430705-training/pipeline/head There was a failure building this commit
Some checks failed
s430705-training/pipeline/head There was a failure building this commit
This commit is contained in:
parent
bb3e3ae545
commit
fc3c76e52c
@ -1,7 +1,9 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {dockerfile true}
|
agent {
|
||||||
environment {
|
docker {
|
||||||
img = docker.build('s430705/ium:4')
|
image 's430705/ium:4'
|
||||||
|
args '-v /tmp/mlruns:/tmp/mlruns -v /mlruns:/mlruns '
|
||||||
|
}
|
||||||
}
|
}
|
||||||
parameters {
|
parameters {
|
||||||
buildSelector(
|
buildSelector(
|
||||||
@ -16,17 +18,12 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
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') {
|
stage('copyArtifacts') {
|
||||||
steps {
|
steps {
|
||||||
copyArtifacts fingerprintArtifacts: true, projectName: 's430705-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
copyArtifacts fingerprintArtifacts: true, projectName: 's430705-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||||
sh "rm -rf movies_imdb"
|
sh "rm -rf movies_imdb"
|
||||||
|
sh "python3 lab08_mfl.py"
|
||||||
|
sh "export MLFLOW_TRACKING_URI=http://172.17.0.1:5000"
|
||||||
sh "python3 lab08_mfl.py"
|
sh "python3 lab08_mfl.py"
|
||||||
sh "python3 lab06_training.py ${epochs}"
|
sh "python3 lab06_training.py ${epochs}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user