ium_444356/Jenkinsfile_predict
Maciej Czajka b16fce0beb
Some checks failed
s444356-evaluation/pipeline/head This commit looks good
s444356-training/pipeline/head There was a failure building this commit
update jenkinsfile_train-sacred, jenkinsfile_predict
2022-05-11 20:31:48 +02:00

28 lines
677 B
Plaintext

pipeline {
agent {
docker {
image 'maciejczajka'
}
}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts for predict',
name: 'BUILD_SELECTOR')
string(
defaultValue: 'input_example.json',
description: 'Input file name',
name: 'INPUT',
trim: false
)
}
stages {
stage('Script') {
steps {
copyArtifacts projectName: 's444409-training/main', selector: buildParameter('BUILD_SELECTOR')
sh 'python3 ./predict.py $INPUT'
}
}
}
}