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