ium_434742/predict-s434704.Jenkinsfile
patrycjalazna 00fcfd4d1c
Some checks failed
s434742-training/pipeline/head There was a failure building this commit
s434742-evaluation/pipeline/head This commit looks good
added model to registry, prediction on s434704
2021-05-23 23:01:50 +02:00

40 lines
1.0 KiB
Plaintext

pipeline {
agent {
dockerfile true
}
parameters {
string(
defaultValue: 'input_example.json',
description: 'Input name',
name: 'INPUT_EXAMPLE',
trim: false
)
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts for predict',
name: 'BUILD_SELECTOR_s434704')
}
stages{
stage('copy artifacts from s434704') {
steps {
copyArtifacts filter: 'movies_on_streaming_platforms_model/**/*', fingerprintArtifacts: false, projectName: 's434704-training/master', selector: buildParameter('BUILD_SELECTOR_s434704')
}
}
stage('predict data from s434704') {
steps {
script {
sh 'chmod +x predict-s434704.py'
sh 'python3 predict-s434704.py $INPUT_EXAMPLE'
}
}
}
}
}