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: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 {
|
|
|
|
sh "python predict_s444356.py"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|