2022-05-11 18:19:02 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 's444409-create-dataset'
|
|
|
|
}
|
|
|
|
}
|
2022-05-11 20:19:44 +02:00
|
|
|
parameters {
|
2022-05-11 20:35:10 +02:00
|
|
|
file(
|
|
|
|
name: 'input_example.json',
|
|
|
|
description: 'Example input file for the model'
|
|
|
|
)
|
2022-05-11 20:30:33 +02:00
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR'
|
|
|
|
)
|
2022-05-11 20:19:44 +02:00
|
|
|
}
|
2022-05-11 18:19:02 +02:00
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Get dataset from artifact') {
|
|
|
|
steps {
|
2022-05-11 20:30:33 +02:00
|
|
|
copyArtifacts projectName: 's444356-training/master', selector: buildParameter('BUILD_SELECTOR')
|
2022-05-11 18:19:02 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Predict values using model from artifact') {
|
|
|
|
steps {
|
2022-05-11 20:35:10 +02:00
|
|
|
sh "cat input_example.json"
|
2022-05-11 18:19:02 +02:00
|
|
|
sh "python predict_s444356.py"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|