ium_434704/Jenkinsfile_coop_registry
Wojciech Jarmosz 180e589cbb
Some checks reported errors
s434704-predict-s426206-from-registry/pipeline/head Something is wrong with the build of this commit
Fix Jenkinsfile for mlflow registry
2021-05-23 21:46:07 +02:00

21 lines
419 B
Plaintext

pipeline {
agent {dockerfile {
args '-v /tmp/mlruns:/tmp/mlruns'
}}
parameters {
string(
defaultValue: 'input_example.json',
description: 'Input name',
name: 'INPUT_NAME',
trim: false
)
}
stages {
stage('Load model and run prediction') {
steps {
sh 'python3 mlflow_prediction_registry.py $INPUT_NAME'
}
}
}
}