40 lines
1.0 KiB
Plaintext
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'
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
} |