1b9f078196
Some checks failed
s434704-predict-s426206/pipeline/head There was a failure building this commit
29 lines
746 B
Plaintext
29 lines
746 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: false, projectName: 's426206-training/master', selector: buildParameter('BUILD_SELECTOR')
|
|
}
|
|
}
|
|
stage('Run prediction') {
|
|
steps {
|
|
sh 'python3 mlflow_prediction.py $INPUT_NAME'
|
|
}
|
|
}
|
|
|
|
}
|
|
} |