ium_444356/Jenkinsfile_predict
Maciej Czajka 02994c4af7
Some checks reported errors
s444356-training/pipeline/head Something is wrong with the build of this commit
s444356-evaluation/pipeline/head This commit looks good
update jenkinsfile_predict
2022-05-11 21:39:56 +02:00

29 lines
713 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: '{\"inputs\": [900.0]}',
description: 'Input file',
name: 'INPUT',
trim: true
)
}
stages {
stage('Script') {
steps {
copyArtifacts projectName: 's444409-training/main', selector: buildParameter('BUILD_SELECTOR')
sh "echo ${params.INPUT} > input_example.json"
sh "python predict.py"
}
}
}
}