ium_444356/Jenkinsfile_predict

28 lines
677 B
Plaintext
Raw Normal View History

pipeline {
agent {
2022-05-11 18:56:36 +02:00
docker {
image 'maciejczajka'
}
}
2022-05-11 19:33:00 +02:00
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts for predict',
name: 'BUILD_SELECTOR')
2022-05-11 19:33:00 +02:00
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')
2022-05-11 19:34:54 +02:00
sh 'python3 ./predict.py $INPUT'
}
}
}
}