ium_434704/Jenkinsfile_coop
Wojciech Jarmosz d701d365ec
Some checks failed
s434704-predict-s426206/pipeline/head There was a failure building this commit
Add mlflow prediction
2021-05-23 16:21:50 +02:00

29 lines
745 B
Plaintext

pipeline {
agent {dockerfile true}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Last successfull artifact',
name: 'BUILD_SELECTOR'
)
string(
defaultValue: 'input_example.json',
description: 'Input name',
name: 'INPUT_NAME',
trim: false
)
}
stages {
stage('Copy model artifacts from s426206') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's426206-training/master', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('Run prediction') {
steps {
sh 'python3 mlflow_prediction.py $INPUT_NAME'
}
}
}
}