ium_434704/Jenkinsfile_coop

29 lines
745 B
Plaintext
Raw Normal View History

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