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