diff --git a/Jenkinsfile_predict b/Jenkinsfile_predict index dfd7496..d52e959 100644 --- a/Jenkinsfile_predict +++ b/Jenkinsfile_predict @@ -8,7 +8,7 @@ pipeline { stages { stage('Script') { steps { - copyArtifacts filter: '*', projectName: 's444409-training/main', selector: lastSuccessful() + copyArtifacts projectName: 's444409-training/main', selector: lastSuccessful() sh 'ls -al' sh "python predict.py" } diff --git a/predict.py b/predict.py index 8e524f2..bb051dc 100644 --- a/predict.py +++ b/predict.py @@ -4,7 +4,7 @@ import pandas as pd #logged_model = 'mlruns/1/d5b6f9c1784a4d2dbb8592cd4ad364d7/artifacts/model' -logged_model = 'mlruns/1/fa3e620f03e64d888c364827907fb6f5/artifacts/s444409' +logged_model = 'mlruns/1/fa3e620f03e64d888c364827907fb6f5/artifacts/s444409/' loaded_model = mlflow.pyfunc.load_model(logged_model)