ium_444018/Jenkinsfile_predict
Szymon Parafiński bcf2dd1c65
Some checks failed
s444018-training/pipeline/head There was a failure building this commit
s444018-evaluation/pipeline/head This commit looks good
python -> python3
2022-05-16 02:33:56 +02:00

29 lines
739 B
Plaintext

pipeline {
agent {
docker {
image 'docker_image'
}
}
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 "python3 predict.py"
}
}
}
}