ium_444463/predict.Jenkinsfile
2022-05-22 21:37:36 +02:00

26 lines
704 B
Plaintext

pipeline {
agent {
dockerfile true
}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts for predict',
name: 'BUILD_SELECTOR')
string(
defaultValue: '{\\"inputs\\": [400.0]}',
description: '',
name: 'EXAMPLE',
trim: true
)
}
stages {
stage('Script') {
steps {
copyArtifacts projectName: 's444409-training/main', selector: buildParameter('BUILD_SELECTOR')
sh "python3 predict_other.py ${params.EXAMPLE}"
}
}
}
}