From f88423fac781cd348701aaef8ccd2f6f13cc17d3 Mon Sep 17 00:00:00 2001 From: Adam Wojdyla Date: Mon, 16 May 2022 10:11:05 +0200 Subject: [PATCH] stop publishing to mlflow --- Jenkinsfile_training | 5 +++++ lab08_deepLearining_mlflow.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile_training b/Jenkinsfile_training index 2ca08ef..8b5df89 100644 --- a/Jenkinsfile_training +++ b/Jenkinsfile_training @@ -12,6 +12,11 @@ pipeline { stage('Get artifacts') { steps { copyArtifacts fingerprintArtifacts: true, projectName: 's444507-create-dataset', selector: lastSuccessful() + archiveArtifacts artifacts: 'CarPrices_pytorch_model.pkl' + archiveArtifacts artifacts: 'mlruns/**' + archiveArtifacts artifacts: 'my_model/**' + sh 'rm -r mlruns' + sh 'rm -r my_model' } } stage('Run mlflow script and save artifacts') { diff --git a/lab08_deepLearining_mlflow.py b/lab08_deepLearining_mlflow.py index be84002..b16ffe7 100644 --- a/lab08_deepLearining_mlflow.py +++ b/lab08_deepLearining_mlflow.py @@ -20,7 +20,7 @@ import mlflow.pytorch logging.basicConfig(level=logging.WARN) logger = logging.getLogger(__name__) -mlflow.set_tracking_uri("http://172.17.0.1:5000") +# mlflow.set_tracking_uri("http://172.17.0.1:5000") mlflow.set_experiment("s444507")