ium_478841/jenkins/predict_s444356.Jenkinsfile

35 lines
938 B
Plaintext
Raw Normal View History

2022-05-15 12:33:21 +02:00
pipeline {
agent {
docker {
image 's478841-image:latest'
}
}
parameters {
string(
defaultValue: '{\\"inputs\\": [[0.76, 0.71], [0.6, 0.73], [0.75, 0.75], [0.91, 0.85]]}',
description: 'Input data',
name: 'INPUT',
trim: true
)
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Build used for artifacts copying',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Load artifacts') {
steps {
copyArtifacts projectName: 's444356-training/master', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('Predict using artifact') {
steps {
sh "echo ${params.INPUT} > scripts/input_example.json"
sh 'python3 scripts/predict_s444356.py'
}
}
}
}